...
|
...
|
@@ -484,14 +484,14 @@ public function transmit($request, $type = self::TYPEVISIT, $traffic = self::TRA |
|
|
//转发接口
|
|
|
$transmitUrl = env("TRANSMIT_URL");
|
|
|
$resp = $this->httpPost($transmitUrl . "api/selfSiteApi/", json_encode($req));
|
|
|
if ($resp["status"] != self::SUCCESS) {
|
|
|
if (($resp["status"]??0) != self::SUCCESS) {
|
|
|
$dataJson = json_encode($req);
|
|
|
if (!file_exists(storage_path('logs/fail_req'))) {
|
|
|
mkdir(storage_path('logs/fail_req', 0777, true));
|
|
|
}
|
|
|
@file_put_contents(storage_path('logs/fail_req/' . date('Y-m-d') . '.log'), var_export($dataJson, true) . PHP_EOL, FILE_APPEND);
|
|
|
}
|
|
|
return $this->success();
|
|
|
return $this->success($resp['data']??[]);
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|