|
...
|
...
|
@@ -800,10 +800,26 @@ class ProjectController extends BaseController |
|
|
|
],[
|
|
|
|
'project_id.required' => 'project_id不能为空',
|
|
|
|
]);
|
|
|
|
|
|
|
|
$token = $logic->getSiteToken($this->map);
|
|
|
|
|
|
|
|
$this->response('success',Code::SUCCESS,['site_token' => $token]);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :单独保存其他项目配置
|
|
|
|
* @name :saveOtherProject
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/11/17 15:23
|
|
|
|
*/
|
|
|
|
public function saveOtherProject(ProjectLogic $logic){
|
|
|
|
$this->request->validate([
|
|
|
|
'project_id'=>'required',
|
|
|
|
'other_project'=>'required'
|
|
|
|
],[
|
|
|
|
'project_id.required' => 'project_id不能为空',
|
|
|
|
'other_project.required' => '其他项目设置不能为空',
|
|
|
|
]);
|
|
|
|
$logic->saveOtherProject();
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|