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