Explorar el Código

0号线-修改-添加方法

sunxbiao hace 1 año
padre
commit
8294e34a4f
Se han modificado 1 ficheros con 5 adiciones y 4 borrados
  1. 5 4
      app/controller/admin/user/User.php

+ 5 - 4
app/controller/admin/user/User.php

@@ -1912,10 +1912,11 @@ class User extends BaseController
1912 1912
 
1913 1913
         Db::startTrans();
1914 1914
         try {
1915
-            Db::name('user')
1916
-                ->where('uid', '=', $team_uid)
1917
-                ->where('is_del', '=', 0)
1918
-                ->update(['level_id' => 0]);
1915
+            // 0 号线可以有上级
1916
+            // Db::name('user')
1917
+            //     ->where('uid', '=', $team_uid)
1918
+            //     ->where('is_del', '=', 0)
1919
+            //     ->update(['level_id' => 0]);
1919 1920
             if ($isExist) {
1920 1921
                 $result = Db::name('user_zero_line')
1921 1922
                     ->where('team_uid', '=', $team_uid)