shish 3 年之前
父節點
當前提交
3fbd997591
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      app-hd/controllers/MtController.php

+ 11 - 0
app-hd/controllers/MtController.php

@@ -34,6 +34,17 @@ class MtController extends PublicController
 
     public function actionGoodsAdd()
     {
+
+        $ext = ShopExtClass::getByCondition(['shopId' => 36524], true);
+        $config = dict::getDict('mtConfig');
+        $app = new Application($config);
+        $accessToken = mtUtil::getAccessToken($ext);
+        $shopId = 36524;
+        $appSpuCode = 'mtcode_1574599377215959079';
+        $params = ['app_poi_code' => $shopId, 'app_spu_code' => $appSpuCode, 'access_token' => $accessToken];
+        $goodsInfo = $app->retail->getDetail($params);
+        print_r($goodsInfo);die;
+
         $post = Yii::$app->request->post();
         $connection = Yii::$app->db;//事务处理
         $transaction = $connection->beginTransaction();