瀏覽代碼

批发店

shish 7 月之前
父節點
當前提交
118286fcb5
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      app-hd/controllers/GhsController.php

+ 5 - 2
app-hd/controllers/GhsController.php

@@ -320,8 +320,11 @@ class GhsController extends BaseController
         if (!empty($this->shopId)) {
 
             $current = ShopClass::getById($shopId, true);
-            if (!isset($current->ptStyle) || $current->ptStyle != dict::getDict('ptStyle', 'ghs')) {
-                util::fail('没有找到批发店');
+            if (empty($current)) {
+                util::fail('没有找到批发店,rid-186');
+            }
+            if ($current->ptStyle != dict::getDict('ptStyle', 'ghs')) {
+                util::fail('没有找到批发店,rid-195');
             }
 
             $ghs = GhsClass::build($shopId, $this->shopId);