作者 李宇航

合并分支 'lyh-server' 到 'master'

Lyh server



查看合并请求 !3105
@@ -112,12 +112,13 @@ class GeoController extends BaseController @@ -112,12 +112,13 @@ class GeoController extends BaseController
112 } 112 }
113 $content = explode("\n", $data->content); 113 $content = explode("\n", $data->content);
114 $confirm = explode("\n", $data->confirm); 114 $confirm = explode("\n", $data->confirm);
  115 + $max_num = $data->max_num;
115 $type = $data->type; 116 $type = $data->type;
116 $status = $data->status; 117 $status = $data->status;
117 $projectModel = new Project(); 118 $projectModel = new Project();
118 $projectInfo = $projectModel->read(['id' => $data->project_id],['title','version']); 119 $projectInfo = $projectModel->read(['id' => $data->project_id],['title','version']);
119 $project_title = $projectInfo['title'] ?? ''; 120 $project_title = $projectInfo['title'] ?? '';
120 - $result = compact('content', 'confirm', 'type', 'status', 'project_title'); 121 + $result = compact('content', 'confirm', 'type', 'status', 'project_title','max_num');
121 $this->response('success',Code::SUCCESS,$result); 122 $this->response('success',Code::SUCCESS,$result);
122 } 123 }
123 124
@@ -71,9 +71,6 @@ class GeoConfirmLogic extends BaseLogic @@ -71,9 +71,6 @@ class GeoConfirmLogic extends BaseLogic
71 if($data === false){ 71 if($data === false){
72 return $this->success(); 72 return $this->success();
73 } 73 }
74 - if(empty($data['confirm'])){  
75 - $data['confirm'] = $data['content'];  
76 - }  
77 return $this->success($data); 74 return $this->success($data);
78 } 75 }
79 76