|
|
@@ -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;
|
|
|
|