浏览代码

1,修复部分环境下验证码加载问题。
2,其他细节。

magicblack 4 年之前
父节点
当前提交
0e17d41b81
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      application/index/controller/User.php
  2. 1 1
      application/index/controller/Verify.php

+ 2 - 2
application/index/controller/User.php

@@ -571,7 +571,7 @@ class User extends Base
             unset($type_tree[$k1]['type_extend']);
             foreach ($ids as $a => $b) {
                 $n++;
-                if ($v1['type_mid'] == 2 && $a > 2) {
+                if ($v1['type_mid'] != 1 && $a > 2) {
                     break;
                 }
                 $type_tree[$k1]['popedom'][$b] = model('User')->popedom($v1['type_id'], $a, $GLOBALS['user']['group_id']);
@@ -580,7 +580,7 @@ class User extends Base
                 unset($type_tree[$k1]['child'][$k2]['type_extend']);
                 foreach ($ids as $a => $b) {
                     $n++;
-                    if ($v2['type_mid'] == 2 && $a > 2) {
+                    if ($v2['type_mid'] != 1 && $a > 2) {
                         break;
                     }
                     $type_tree[$k1]['child'][$k2]['popedom'][$b] = model('User')->popedom($v2['type_id'], $a, $GLOBALS['user']['group_id']);

+ 1 - 1
application/index/controller/Verify.php

@@ -1,7 +1,7 @@
 <?php
 namespace app\index\controller;
 use think\captcha\Captcha;
-use think\config;
+use think\Config;
 use think\Controller;
 
 class Verify extends Controller