作者 李宇航

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

Lyh server



查看合并请求 !3207
@@ -108,6 +108,18 @@ class Project5CateController extends BaseController @@ -108,6 +108,18 @@ class Project5CateController extends BaseController
108 if ($response->successful()) { 108 if ($response->successful()) {
109 $result = $response->json(); // 获取 JSON 响应体 109 $result = $response->json(); // 获取 JSON 响应体
110 if($result && $result['status'] == 200){ 110 if($result && $result['status'] == 200){
  111 + //todo::更新分类数据
  112 + $action1 = $project5CateModel->getCateTypeAction($this->param['type']);
  113 + $url1 = $projectInfo['website'].'wp-admin/admin-ajax.php?action='.$action1;
  114 + $data = http_get($url1);
  115 + if($data && $data['status'] == 200){
  116 + $resultData = $data['data'];
  117 + $saveData = [
  118 + 'text'=>json_encode($data['data']),
  119 + ];
  120 + $project5CateModel->edit($saveData,['project_id' => $projectInfo['post_id'],'type'=>$this->param['type']]);
  121 + $this->response('success', Code::SUCCESS,$resultData);
  122 + }
111 $this->response('success'); 123 $this->response('success');
112 } 124 }
113 } 125 }
@@ -24,7 +24,7 @@ class GeoQuestionResLogic extends BaseLogic @@ -24,7 +24,7 @@ class GeoQuestionResLogic extends BaseLogic
24 parent::__construct(); 24 parent::__construct();
25 $this->model = new GeoQuestionResult(); 25 $this->model = new GeoQuestionResult();
26 $this->param = $this->requestAll; 26 $this->param = $this->requestAll;
27 - if($this->user['project_id'] == 5172){ 27 + if(isset($this->user['project_id']) && $this->user['project_id'] == 5172){
28 $this->user['project_id'] = 3298; 28 $this->user['project_id'] = 3298;
29 } 29 }
30 } 30 }