kevin_zhangl 2 سال پیش
والد
کامیت
a94544b9b8
1فایلهای تغییر یافته به همراه12 افزوده شده و 12 حذف شده
  1. 12 12
      common/helpers/Logistics.php

+ 12 - 12
common/helpers/Logistics.php

@@ -15,27 +15,27 @@ class Logistics
     // 2.创建订单和产品(以前不存在/已提交的产品).
     const createOrderUrl = 'https://warehouse.taoplus.com.my/index.php?route=rest/warehouse_api/add_order';
     // 3.获取产品/包裹的重量和状态.
-    const getProductUrl = '/index.php?route=rest/warehouse_api/get_order_product';
+    const getProductUrl = 'http://warehouse.worldsyntech.com/index.php?route=rest/warehouse_api/get_order_product';
     // 4.获取订单重量,m3,包装的包裹数量,费用跟踪号码和状态.
-    const getOrderUrl = '/index.php?route=rest/warehouse_api/get_order';
+    const getOrderUrl = 'http://warehouse.worldsyntech.com/index.php?route=rest/warehouse_api/get_order';
     // 5.通知仓库已经付款,包裹可以投递.
-    const notifyDeliveryUrl = '/index.php?route=rest/ warehouse_api/notify_delivery';
+    const notifyDeliveryUrl = 'http://warehouse.worldsyntech.com/index.php?route=rest/ warehouse_api/notify_delivery';
     // 6.创建产品/包裹.
-    const addProductUrl = '/index.php?route=rest/warehouse_api/add_order_product';
+    const addProductUrl = 'http://warehouse.worldsyntech.com/index.php?route=rest/warehouse_api/add_order_product';
     // 7.创建交付订单并将现有产品绑定到订单.需要先调用接口6创建商品.
-    const createOrderSimpleUrl = '/index.php?route=rest/warehouse_api/add_order_simple';
+    const createOrderSimpleUrl = 'http://warehouse.worldsyntech.com/index.php?route=rest/warehouse_api/add_order_simple';
     // 8.计算订单费用,并将订单状态改为待付款.
-    const stockOutUrl = '/index.php?route=rest/warehouse_api/stock_out';
+    const stockOutUrl = 'http://warehouse.worldsyntech.com/index.php?route=rest/warehouse_api/stock_out';
     // 9.通知物流系统订单不可删除.error包含错误的订单ID.
-    const notifyOrderUndeletableUrl = '/index.php?route=rest/warehouse_api/notify_order_undeletable';
+    const notifyOrderUndeletableUrl = 'http://warehouse.worldsyntech.com/index.php?route=rest/warehouse_api/notify_order_undeletable';
     // 10.取消订单产品/包裹。它将状态更改为无效,并保留订单产品/包裹.
-    const cancelOrderProductUrl = ' /index.php?route=rest/warehouse_api/cancel_order_product';
+    const cancelOrderProductUrl = 'http://warehouse.worldsyntech.com/index.php?route=rest/warehouse_api/cancel_order_product';
     // 11.从数据库中删除订购产品/包裹.
-    const deleteOrderProductUrl = '/index.php?route=rest/warehouse_api/delete_order_product';
+    const deleteOrderProductUrl = 'http://warehouse.worldsyntech.com/index.php?route=rest/warehouse_api/delete_order_product';
     // 12.取消订单,状态改为无效,保留订单不删除.
-    const cancelOrderUrl = '/index.php?route=rest/warehouse_api/cancel_order';
+    const cancelOrderUrl = 'http://warehouse.worldsyntech.com/index.php?route=rest/warehouse_api/cancel_order';
     // 13.从数据库中删除订单.
-    const deleteOrderUrl = '/index.php?route=rest/warehouse_api/delete_order';
+    const deleteOrderUrl = 'http://warehouse.worldsyntech.com/index.php?route=rest/warehouse_api/delete_order';
     // 14.运单追踪.
     const trackOrderUrl = 'https://taoplus.com.my/index.php?route=information/order_tracking/json&order_tracking_search=';
 
@@ -101,7 +101,7 @@ class Logistics
         curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
         $response = curl_exec($ch);
 
-        LoggerTool::info(['getAuthentication', $response]);
+        LoggerTool::info(['Authentication', $request, $response, Yii::$app->params['wst']['baseToken']]);
 
         curl_close($ch);