作者 zhl

'添加删除条件'

@@ -278,7 +278,7 @@ class LoginController extends BaseController @@ -278,7 +278,7 @@ class LoginController extends BaseController
278 ]; 278 ];
279 }else{ 279 }else{
280 //有from_order_id, 找到对应的项目并登录主账号 280 //有from_order_id, 找到对应的项目并登录主账号
281 - $project = (new Project())->read(['from_order_id'=>$arr['from_order_id']]); 281 + $project = (new Project())->read(['from_order_id'=>$arr['from_order_id'], 'delete_status' => Project::IS_DEL_FALSE]);
282 if(!$project){ 282 if(!$project){
283 $this->response('项目不存在,请联系管理员',Code::USER_ERROR); 283 $this->response('项目不存在,请联系管理员',Code::USER_ERROR);
284 } 284 }
@@ -35,6 +35,9 @@ class Project extends Base @@ -35,6 +35,9 @@ class Project extends Base
35 const IS_UPGRADE_FALSE = 0; 35 const IS_UPGRADE_FALSE = 0;
36 const IS_UPGRADE_TRUE = 1; 36 const IS_UPGRADE_TRUE = 1;
37 37
  38 + const IS_DEL_FALSE = 0;
  39 + const IS_DEL_TRUE = 1;
  40 +
38 /** 41 /**
39 * 星级客户 42 * 星级客户
40 * @return string[] 43 * @return string[]