作者 lyh

更新项目搜索

@@ -74,7 +74,7 @@ class RemainDay extends Command @@ -74,7 +74,7 @@ class RemainDay extends Command
74 } 74 }
75 } 75 }
76 $item->remain_day = $remain_day > 0 ? $remain_day : 0; 76 $item->remain_day = $remain_day > 0 ? $remain_day : 0;
77 - if($item->remain_day == 0){ 77 + if($item->remain_day == 0){//TODO::未续费网站禁止登录及通知C端禁止网站
78 $item->extend_type = Project::TYPE_FIVE; 78 $item->extend_type = Project::TYPE_FIVE;
79 } 79 }
80 $item->save(); 80 $item->save();
@@ -257,6 +257,9 @@ class UserLoginLogic @@ -257,6 +257,9 @@ class UserLoginLogic
257 $info = $this->model->read(['mobile'=>$mobile,'project_id'=>$project_id],['id','mobile','status','role_id','token','name','wechat','project_id']); 257 $info = $this->model->read(['mobile'=>$mobile,'project_id'=>$project_id],['id','mobile','status','role_id','token','name','wechat','project_id']);
258 //获取项目详情 258 //获取项目详情
259 $project = $this->getProjectInfo($project_id); 259 $project = $this->getProjectInfo($project_id);
  260 + if($project['type'] == Project::TYPE_FIVE){
  261 + $this->fail('当前网站已过期,请联系管理员及时续费。');
  262 + }
260 $info['title'] = $project['title'] ?? ''; 263 $info['title'] = $project['title'] ?? '';
261 $info['company'] = $project['company'] ?? ''; 264 $info['company'] = $project['company'] ?? '';
262 $info['from_order_id'] = $project['from_order_id'] ?? ''; 265 $info['from_order_id'] = $project['from_order_id'] ?? '';