更新短信通知用户收货
This commit is contained in:
parent
1d4547b8f3
commit
f414e55cb7
@ -155,6 +155,7 @@ class paySuccessOrder
|
|||||||
//发生短信
|
//发生短信
|
||||||
$phone = User::where('uid', $uid)->value('phone');
|
$phone = User::where('uid', $uid)->value('phone');
|
||||||
if ($phone) {
|
if ($phone) {
|
||||||
|
Log::info("发送短信 {$phone}, orderId: {$orderId}");
|
||||||
SmsService::create()->send($phone, 'TAKEGOOD_CODE', ['number' => substr($orderSn, -6), 'number2' => $code, 'phone' => $logisticsPhone]);
|
SmsService::create()->send($phone, 'TAKEGOOD_CODE', ['number' => substr($orderSn, -6), 'number2' => $code, 'phone' => $logisticsPhone]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -178,7 +179,8 @@ class paySuccessOrder
|
|||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
$logisticsInfo = json_decode($data, true);
|
$logisticsInfo = json_decode($data, true);
|
||||||
$phone = $logisticsInfo['data']['phone'] ?? '';
|
$phone = $logisticsInfo['data']['phone'] ?? '';
|
||||||
Log::record("发送物流信息 orderId: {$orderId}, orderSn: {$orderSn}");
|
Log::info("发送物流信息 orderId: {$orderId}, orderSn: {$orderSn}");
|
||||||
|
Log::info("物流联系信息" . json_encode($logisticsInfo));
|
||||||
return $phone;
|
return $phone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user