|
...
|
...
|
@@ -174,8 +174,6 @@ class ProjectLogic extends BaseLogic |
|
|
|
}
|
|
|
|
}
|
|
|
|
$param['notice_file'] = Arr::a2s($param['notice_file']);
|
|
|
|
}else{
|
|
|
|
unset($param['notice_file']);
|
|
|
|
}
|
|
|
|
if(isset($param['confirm_file']) && !empty($param['confirm_file'])){
|
|
|
|
foreach ($param['confirm_file'] as &$v2) {
|
|
...
|
...
|
@@ -184,11 +182,8 @@ class ProjectLogic extends BaseLogic |
|
|
|
}
|
|
|
|
}
|
|
|
|
$param['confirm_file'] = Arr::a2s($param['confirm_file']);
|
|
|
|
}else{
|
|
|
|
unset($param['confirm_file']);
|
|
|
|
}
|
|
|
|
unset($param['payment'],$param['deploy_build'],$param['deploy_optimize'],$param['online_check'],$param['project_after']);
|
|
|
|
|
|
|
|
//文件上传默认值
|
|
|
|
if($param['is_upload_manage']){
|
|
|
|
$param['upload_config'] = [
|
|
...
|
...
|
@@ -382,8 +377,8 @@ class ProjectLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function createUser($mobile,$project_id,$lead_name){
|
|
|
|
$userModel = new UserModel();
|
|
|
|
//查看当前用户是否存在
|
|
|
|
$info = $userModel->read(['mobile'=>$mobile,'project_id'=>$project_id]);
|
|
|
|
//查看当前项目是否存在超级管理员
|
|
|
|
$info = $userModel->read(['role_id'=>0,'project_id'=>$project_id]);
|
|
|
|
if($info === false){
|
|
|
|
$data = [
|
|
|
|
'mobile'=>$mobile,
|
|
...
|
...
|
@@ -395,6 +390,8 @@ class ProjectLogic extends BaseLogic |
|
|
|
'create_id'=>$this->manager['id'] ?? 0,
|
|
|
|
];
|
|
|
|
$userModel->add($data);
|
|
|
|
}else{
|
|
|
|
$userModel->edit(['mobile'=>$mobile,'name'=>$lead_name],['id'=>$info['id']]);
|
|
|
|
}
|
|
|
|
return $this->success();
|
|
|
|
}
|
...
|
...
|
|