shish 3 лет назад
Родитель
Сommit
635c1f01eb
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app-hd/controllers/GhsController.php

+ 1 - 1
app-hd/controllers/GhsController.php

@@ -102,7 +102,7 @@ class GhsController extends BaseController
         if (isset($this->shopId) && !empty($this->shopId)) {
 
             $current = ShopClass::getById($shopId, true);
-            if (isset($current->ptStyle) && $current->ptStyle != dict::getDict('ptStyle', 'ghs')) {
+            if (isset($current->ptStyle) == false || $current->ptStyle != dict::getDict('ptStyle', 'ghs')) {
                 util::fail('没有找到批发店');
             }