shish 4 лет назад
Родитель
Сommit
89aabbb32f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app-pt/controllers/MtController.php

+ 1 - 1
app-pt/controllers/MtController.php

@@ -61,7 +61,7 @@ class MtController extends BaseController
     {
         $shopId = Yii::$app->request->get('id');
         $shopExt = ShopExtClass::getByCondition(['shopId' => $shopId], true);
-        if (empty($ext)) {
+        if (empty($shopExt)) {
             util::fail('没有找到门店相信息');
         }
         $accessToken = mtUtil::getAccessToken($shopExt);