|
|
@@ -19,6 +19,19 @@ use linslin\yii2\curl;
|
|
|
class MtController extends Controller
|
|
|
{
|
|
|
|
|
|
+ public function actionCs()
|
|
|
+ {
|
|
|
+ $thirdOrderId = '82628691127252763';
|
|
|
+ $ext = ShopExtClass::getByCondition(['shopId' => 764], true);
|
|
|
+ $config = dict::getDict('mtConfig');
|
|
|
+ $app = new Application($config);
|
|
|
+ $accessToken = mtUtil::getAccessToken($ext);
|
|
|
+ $params = ['order_id' => $thirdOrderId, 'access_token' => $accessToken];
|
|
|
+ $mtRes = $app->order->logisticsPush($params);
|
|
|
+ $mtRes = json_decode($mtRes, true);
|
|
|
+ print_r($mtRes);
|
|
|
+ }
|
|
|
+
|
|
|
//同步商品 ssh 20220801
|
|
|
public function actionSyncGoods()
|
|
|
{
|