|
|
@@ -5,6 +5,7 @@ namespace common\components;
|
|
|
use hd\models\IntraCity\StoreFeeForm;
|
|
|
use Yii;
|
|
|
use yii\helpers\Json;
|
|
|
+
|
|
|
//use linslin\yii2\curl;
|
|
|
use bizHd\wx\classes\WxOpenClass;
|
|
|
use phpseclib\Crypt\RSA;
|
|
|
@@ -343,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;
|
|
|
|