作者 李宇航

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

Lyh server



查看合并请求 !3223
@@ -176,7 +176,7 @@ class TicketUploadDataLogic extends BaseLogic @@ -176,7 +176,7 @@ class TicketUploadDataLogic extends BaseLogic
176 }else{ 176 }else{
177 if($this->param['status'] == $this->model::STATUS_SUCCESS){ 177 if($this->param['status'] == $this->model::STATUS_SUCCESS){
178 $ticketProjectMdoel = new TicketProject(); 178 $ticketProjectMdoel = new TicketProject();
179 - $projectInfo = $ticketProjectMdoel->read(['post_id' => $info['post_id']]); 179 + $projectInfo = $ticketProjectMdoel->read(['post_id' => $info['project_id']]);
180 if($projectInfo === false){ 180 if($projectInfo === false){
181 $this->fail('当前项目不存在或数据未同步'); 181 $this->fail('当前项目不存在或数据未同步');
182 } 182 }
@@ -212,8 +212,10 @@ class TicketUploadDataLogic extends BaseLogic @@ -212,8 +212,10 @@ class TicketUploadDataLogic extends BaseLogic
212 'short_description'=>$info['text']['short_description'] ?? '', 212 'short_description'=>$info['text']['short_description'] ?? '',
213 'images'=>$info['text']['images'] ?? '', 213 'images'=>$info['text']['images'] ?? '',
214 ]); 214 ]);
  215 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($response, true) . PHP_EOL, FILE_APPEND);
215 if ($response->successful()) { 216 if ($response->successful()) {
216 $result = $response->json(); // 获取 JSON 响应体 217 $result = $response->json(); // 获取 JSON 响应体
  218 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($result, true) . PHP_EOL, FILE_APPEND);
217 if ($result && $result['status'] == 200) { 219 if ($result && $result['status'] == 200) {
218 return $this->success(); 220 return $this->success();
219 } 221 }