作者 lyh

gx

... ... @@ -353,6 +353,7 @@ class SyncProject extends Command
if($info !== false){
$deployBuildModel->edit($param,['id'=>$info['id']]);
}else{
$param['service_duration'] = isset($param['service_duration']) ? $param['service_duration'] : 0;
$deployBuildModel->add($param);
}
}
... ... @@ -458,9 +459,9 @@ class SyncProject extends Command
public function createUser($mobile,$project_id,$lead_name){
$userModel = new UserModel();
//查看当前项目是否存在号码库中
// $mobileModel = new Mobile();
// $mobileInfo = $mobileModel->read(['mobile'=>$mobile]);
// if($mobileInfo === false){
$mobileModel = new Mobile();
$mobileInfo = $mobileModel->read(['mobile'=>$mobile]);
if($mobileInfo === false){
//查看当前用户是否存在
$info = $userModel->read(['mobile'=>$mobile,'project_id'=>$project_id]);
if($info === false){
... ... @@ -473,7 +474,7 @@ class SyncProject extends Command
];
$userModel->add($data);
}
// }
}
return true;
}
}
... ...