正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
@@ -491,7 +491,11 @@ public function transmit($request, $type = self::TYPEVISIT, $traffic = self::TRA | @@ -491,7 +491,11 @@ public function transmit($request, $type = self::TYPEVISIT, $traffic = self::TRA | ||
491 | } | 491 | } |
492 | @file_put_contents(storage_path('logs/fail_req/' . date('Y-m-d') . '.log'), var_export($dataJson, true) . PHP_EOL, FILE_APPEND); | 492 | @file_put_contents(storage_path('logs/fail_req/' . date('Y-m-d') . '.log'), var_export($dataJson, true) . PHP_EOL, FILE_APPEND); |
493 | } | 493 | } |
494 | - $this->response("success",self::SUCCESS,$resp); | 494 | + if (isset($resp["data"])){ |
495 | + $this->response("success",self::SUCCESS,$resp["data"]); | ||
496 | + }else{ | ||
497 | + $this->success(); | ||
498 | + } | ||
495 | return; | 499 | return; |
496 | } | 500 | } |
497 | 501 |
-
请 注册 或 登录 后发表评论