作者 lyh

gx

... ... @@ -458,9 +458,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 +473,7 @@ class SyncProject extends Command
];
$userModel->add($data);
}
}
// }
return true;
}
}
... ...
... ... @@ -120,8 +120,8 @@ class ProjectLogic extends BaseLogic
* @time :2023/8/30 11:57
*/
public function projectSave(){
DB::beginTransaction();
try {
// DB::beginTransaction();
// try {
if($this->param['type'] == Project::TYPE_SEVEN){
//错误单直接返回,单独处理
$this->setTypeSevenEdit($this->param);
... ... @@ -141,11 +141,11 @@ class ProjectLogic extends BaseLogic
//创建站点
// $this->createSite($this->param);
}
DB::commit();
}catch (\Exception $e){
DB::rollBack();
$this->fail('请填写完整后再提交');
}
// DB::commit();
// }catch (\Exception $e){
// DB::rollBack();
// $this->fail('请填写完整后再提交');
// }
(new SyncService())->projectAcceptAddress($this->param['id']);
return $this->success();
}
... ...