作者 李小龙

返回

@@ -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