作者 lyh

gx

@@ -23,7 +23,7 @@ class ProjectCountryLogic extends BaseLogic @@ -23,7 +23,7 @@ class ProjectCountryLogic extends BaseLogic
23 public function country_info(){ 23 public function country_info(){
24 $lists = $this->model->read(['project_id'=>$this->user['project_id']]); 24 $lists = $this->model->read(['project_id'=>$this->user['project_id']]);
25 if (empty($lists)){ 25 if (empty($lists)){
26 - $this->fail('当前数据不存在'); 26 + $lists = [];
27 } 27 }
28 return $this->success($lists); 28 return $this->success($lists);
29 } 29 }
@@ -25,6 +25,7 @@ class ProofreadingLogic extends BaseLogic @@ -25,6 +25,7 @@ class ProofreadingLogic extends BaseLogic
25 * @time :2023/6/12 11:06 25 * @time :2023/6/12 11:06
26 */ 26 */
27 public function proofreadingList($map,$p,$row,$order = 'created_at',$filed = ['*']){ 27 public function proofreadingList($map,$p,$row,$order = 'created_at',$filed = ['*']){
  28 + $map['project_id'] = $this->user['project_id'];
28 $list = $this->model->lists($map,$p,$row,$order,$filed); 29 $list = $this->model->lists($map,$p,$row,$order,$filed);
29 return $this->success($list); 30 return $this->success($list);
30 } 31 }