Compare commits

...

3 Commits

3 changed files with 8 additions and 5 deletions

View File

@ -112,6 +112,7 @@ class Facebook
match ($type) { match ($type) {
1 => self::PageView($access_token, $pixel_id, $client_ip), 1 => self::PageView($access_token, $pixel_id, $client_ip),
2 => self::CompleteRegistration($access_token, $pixel_id, $client_ip), 2 => self::CompleteRegistration($access_token, $pixel_id, $client_ip),
3 => self::Lead($access_token, $pixel_id, $client_ip),
default => error_log("Invalid event type: " . $type), default => error_log("Invalid event type: " . $type),
}; };
} }

View File

@ -82,7 +82,7 @@ class PaymentNew
"PayeeAccountNumber" => $payeeAccountNumber, "PayeeAccountNumber" => $payeeAccountNumber,
"PayeeBankName" => $payeeBankName, "PayeeBankName" => $payeeBankName,
"PaymentChannelId" => $PaymentChannelId, "PaymentChannelId" => $PaymentChannelId,
"ShopInformUrl" => "http://38.54.94.131/api/withdraw/callback", "ShopInformUrl" => "https://v8job.online/api/withdraw/callback",
"ShopOrderId" => $orderId . "", "ShopOrderId" => $orderId . "",
"ShopUserLongId" => "776ae472-d4fc-435c-9639-be5763138d95" "ShopUserLongId" => "776ae472-d4fc-435c-9639-be5763138d95"
]; ];

View File

@ -24,6 +24,8 @@ class SendCode
{ {
if (self::$client == null) { if (self::$client == null) {
self::$client = new Client([ self::$client = new Client([
'timeout' => 60, // 设置请求超时时间为60秒
'connect_timeout' => 30, // 设置连接超时时间为30秒
'curl' => [ 'curl' => [
CURLOPT_FRESH_CONNECT => false, CURLOPT_FRESH_CONNECT => false,
CURLOPT_FORBID_REUSE => false, CURLOPT_FORBID_REUSE => false,
@ -96,7 +98,7 @@ class SendCode
$client = self::get_client(); $client = self::get_client();
$url = "https://dx1.rocketgo.vip/ex-api/biz/api/wsStatus?wsNumber=" . $phone . "&token=".self::$token; $url = "https://dx1.rocketgo.vip/ex-api/biz/api/wsStatus?wsNumber=" . $phone . "&token=" . self::$token;
// 发送 POST 请求 // 发送 POST 请求
$response = $client->get("$url"); $response = $client->get("$url");
$body = $response->getBody(); $body = $response->getBody();
@ -104,11 +106,11 @@ class SendCode
if ($responseData['code'] == 0) { if ($responseData['code'] == 0) {
return $responseData['status']; return $responseData['status'];
} }
if($responseData['code'] == 1){ if ($responseData['code'] == 1) {
// Log::warning("号商api token无效"); // Log::warning("号商api token无效");
return 2; return 2;
} }
if($responseData['code'] == 2){ if ($responseData['code'] == 2) {
// Log::warning("ws 在第三方api不存在 ws号".$phone); // Log::warning("ws 在第三方api不存在 ws号".$phone);
return 3; return 3;
} }
@ -138,7 +140,7 @@ class SendCode
$body = $response->getBody(); $body = $response->getBody();
$responseData = json_decode($body, true); // 如果返回的是 JSON 格式,解析它 $responseData = json_decode($body, true); // 如果返回的是 JSON 格式,解析它
if ($responseData['code'] != 0) { if ($responseData['code'] != 0) {
Log::warning("ws:".$phone."删除失败 Code:".$responseData['code']); Log::warning("ws:" . $phone . "删除失败 Code:" . $responseData['code'].' msg:'.$responseData['msg']);
} }
} }
} }