在webman中引入 think-validate后 ,验证过程中 找不到think\lang 类

weywey

按手册进行了think-validate 引入
在验证过程中,提示 找不到 think\Lang 类

Error: Class 'think\Lang' not found in /www/wwwroot/webman_map/webman/vendor/topthink/think-validate/src/Validate.php:1318Stack trace:#0 /www/wwwroot/webman_map/webman/vendor/topthink/think-validate/src/Validate.php(424): think\Validate->getRuleMsg('id', 'id', 'require', 'require')#1 /www/wwwroot/webman_map/webman/vendor/topthink/think-validate/src/Validate.php(323): think\Validate->checkItem('id', NULL, Array, Array, 'id', Array)#2 /www/wwwroot/webman_map/webman/app/adminuser/validate/BaseValidate.php(62): think\Validate->check(Array)#3 /www/wwwroot/webman_map/webman/app/adminuser/controller/Region.php(24): app\adminuser\validate\BaseValidate->goCheck()#4 /www/wwwroot/webman_map/webman/vendor/workerman/webman-framework/src/App.php(319): app\adminuser\controller\Region->index(Object(support\Request))#5 /www/wwwroot/webman_map/webman/vendor/workerman/webman-framework/src/App.php(349): Webman\App::Webman\{closure}(Object(support\Request))#6 /www/wwwroot/webman_map/webman/app/middleware/AccessControlTest.php(13): Webman\App::Webman\{closure}(Object(support\Request))#7 /www/wwwroot/webman_map/webman/vendor/workerman/webman-framework/src/App.php(341): app\middleware\AccessControlTest->process(Object(support\Request), Object(Closure))#8 /www/wwwroot/webman_map/webman/vendor/workerman/webman-framework/src/App.php(168): Webman\App::Webman\{closure}(Object(support\Request))#9 /www/wwwroot/webman_map/webman/vendor/workerman/workerman/Connection/TcpConnection.php(646): Webman\App->onMessage(Object(Workerman\Connection\TcpConnection), Object(support\Request))#10 /www/wwwroot/webman_map/webman/vendor/workerman/workerman/Events/Select.php(311): Workerman\Connection\TcpConnection->baseRead(Resource id #353)#11 /www/wwwroot/webman_map/webman/vendor/workerman/workerman/Worker.php(1629): Workerman\Events\Select->loop()#12 /www/wwwroot/webman_map/webman/vendor/workerman/workerman/Worker.php(1423): Workerman\Worker::forkOneWorkerForLinux(Object(Workerman\Worker))#13 /www/wwwroot/webman_map/webman/vendor/workerman/workerman/Worker.php(1397): Workerman\Worker::forkWorkersForLinux()#14 /www/wwwroot/webman_map/webman/vendor/workerman/workerman/Worker.php(1779): Workerman\Worker::forkWorkers()#15 /www/wwwroot/webman_map/webman/vendor/workerman/workerman/Worker.php(1715): Workerman\Worker::monitorWorkersForLinux()#16 /www/wwwroot/webman_map/webman/vendor/workerman/workerman/Worker.php(562): Workerman\Worker::monitorWorkers()#17 /www/wwwroot/webman_map/webman/vendor/workerman/webman-framework/src/support/App.php(131): Workerman\Worker::runAll()#18 /www/wwwroot/webman_map/webman/start.php(4): support\App::run()#19 {main}
757 1 0
1个回答

weywey

https://github.com/yzh52521/webman-validate 用这个,在社区里看到

年代过于久远,无法发表回答
×
🔝