作者 lyh

gx

... ... @@ -155,6 +155,11 @@ class PrivateController extends BaseController
* @time :2024/3/29 16:19
*/
public function getAutoToken(){
$this->request->validate([
'project_id' => 'required',
], [
'project_id.required' => '项目id不能为空',
]);
//获取当前用户的草鸡管理员
$userModel = new User();
$userInfo = $userModel->read(['project_id'=>$this->param['project_id'],'role_id'=>0]);
... ...