shish 10 luni în urmă
părinte
comite
0c52c700d5
1 a modificat fișierele cu 9 adăugiri și 0 ștergeri
  1. 9 0
      common/components/IntraCityExpress.php

+ 9 - 0
common/components/IntraCityExpress.php

@@ -344,6 +344,15 @@ class IntraCityExpress
 
         $accessToken = self::getAccessToken($merchant, $ptStyle);
 
+        //开发环境只能使用沙箱 ssh
+        if (getenv('YII_ENV') != 'production') {
+            $orderData['use_sandbox'] = 1;
+            $orderData['user_name'] = '顺丰同城';
+            $orderData['user_phone'] = (string)13881979410;
+            $orderData['user_address'] = '北京市海淀区学清嘉创大厦A座15层';
+            $orderData['user_lng'] = (double)116.352954;
+            $orderData['user_lat'] = (double)40.014747;
+        }
         // 请求体
         $data = $orderData;