作者 刘锟

update

@@ -484,14 +484,14 @@ public function transmit($request, $type = self::TYPEVISIT, $traffic = self::TRA @@ -484,14 +484,14 @@ public function transmit($request, $type = self::TYPEVISIT, $traffic = self::TRA
484 //转发接口 484 //转发接口
485 $transmitUrl = env("TRANSMIT_URL"); 485 $transmitUrl = env("TRANSMIT_URL");
486 $resp = $this->httpPost($transmitUrl . "api/selfSiteApi/", json_encode($req)); 486 $resp = $this->httpPost($transmitUrl . "api/selfSiteApi/", json_encode($req));
487 - if ($resp["status"] != self::SUCCESS) { 487 + if (($resp["status"]??0) != self::SUCCESS) {
488 $dataJson = json_encode($req); 488 $dataJson = json_encode($req);
489 if (!file_exists(storage_path('logs/fail_req'))) { 489 if (!file_exists(storage_path('logs/fail_req'))) {
490 mkdir(storage_path('logs/fail_req', 0777, true)); 490 mkdir(storage_path('logs/fail_req', 0777, true));
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 - return $this->success(); 494 + return $this->success($resp['data']??[]);
495 } 495 }
496 496
497 /** 497 /**