设置测试环境URL

This commit is contained in:
yaooo 2023-08-12 09:16:58 +08:00
parent 2f5c98d340
commit 5cbd009368

View File

@ -13,7 +13,7 @@ use think\facade\Log;
class DeliveryGoods class DeliveryGoods
{ {
public $event; public $event;
public function handle($event) public function handle($event)
{ {
$this->event = $event; $this->event = $event;
@ -45,7 +45,8 @@ class DeliveryGoods
public function sendLogistics($orderId, $orderSn) public function sendLogistics($orderId, $orderSn)
{ {
Log::info("发送物流信息 orderId: {$orderId}, orderSn: {$orderSn}"); Log::info("发送物流信息 orderId: {$orderId}, orderSn: {$orderSn}");
$postUrl = 'http://logistics.lihaink.cn/api/lstSet'; $postUrl = env('LOGISTICS_URL');
/*
$curlPost = [ $curlPost = [
'order_id' => $orderId, 'order_id' => $orderId,
'order_sn' => $orderSn, 'order_sn' => $orderSn,
@ -64,6 +65,8 @@ class DeliveryGoods
$phone = $logisticsInfo['data']['phone']; $phone = $logisticsInfo['data']['phone'];
Log::info("物流联系信息" . json_encode($logisticsInfo)); Log::info("物流联系信息" . json_encode($logisticsInfo));
} }
*/
$phone = '';
return $phone; return $phone;
} }