shish 5 anni fa
parent
commit
c00afd2d8b
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 4 3
      app-pt/controllers/WxOpenController.php

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

@@ -204,10 +204,11 @@ class WxOpenController extends PublicController
                     //零售商公众号
                     $wxBaseId = $open['wxBaseId'] ?? 0;
                     $msg = '零售商公众号绑定成功';
+                } elseif ($id == 'mall') {
+                    //商城公众号
+                    $wxBaseId = $open['wxBaseId'] ?? 0;
+                    $msg = '商城公众号绑定成功';
                 } else {
-
-                }
-                if (empty($wxBaseId)) {
                     util::stop('没有公众号信息...');
                 }
                 WxBaseClass::updateById($wxBaseId, [