Browse Source

增加平台

shish 5 years ago
parent
commit
915bb15542
1 changed files with 4 additions and 4 deletions
  1. 4 4
      app-pt/controllers/WxOpenController.php

+ 4 - 4
app-pt/controllers/WxOpenController.php

@@ -66,11 +66,11 @@ class WxOpenController extends PublicController
         $open = [];
         if ($id == 'hd') {
             $open = \biz\wx\classes\WxOpenClass::getByCondition(['style' => \biz\wx\classes\WxOpenClass::OPEN_STYLE_HD]);
-        }
-        if ($id == 'ghs') {
+        } elseif ($id == 'ghs') {
             $open = \biz\wx\classes\WxOpenClass::getByCondition(['style' => \biz\wx\classes\WxOpenClass::OPEN_STYLE_GHS]);
-        }
-        if (empty($open)) {
+        } elseif ($id == 'mall') {
+            $open = \biz\wx\classes\WxOpenClass::getByCondition(['style' => \biz\wx\classes\WxOpenClass::OPEN_STYLE_MALL]);
+        } else {
             util::stop('没有找到平台信息');
         }