shish il y a 4 ans
Parent
commit
f7ebcc8b8a
1 fichiers modifiés avec 13 ajouts et 0 suppressions
  1. 13 0
      console/controllers/MtController.php

+ 13 - 0
console/controllers/MtController.php

@@ -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()
     {