Jonlin 6 éve
szülő
commit
679db05288

+ 1 - 1
application/admin/controller/Accounts.php

@@ -96,7 +96,7 @@ class Accounts extends Base
                 return json(['code' => -6, 'data' => '', 'msg' => $e->getMessage()]);
             }
 
-            return json(['code' => 1, 'data' => '', 'msg' => '编辑用户成功']);
+            return json(['code' => 1, 'data' => url('accounts/index'), 'msg' => '编辑用户成功']);
         }
 
         $id = input('param.id/d');

+ 1 - 1
application/admin/controller/System.php

@@ -165,7 +165,7 @@ class System extends Base
             $temp = db('service_log');
             $countTmp = db('service_log');
             if(!empty($param['searchText'])){
-                $user = db('users')->where('user_name', $param['searchText'])->find();
+                $user = db('users')->where('user_name', '%'.$param['searchText'].'%')->select();
                 $temp = $temp->where('kf_id', $user['id']);
                 $countTmp = $countTmp->where('kf_id', $user['id']);
             }

+ 1 - 1
application/admin/controller/Users.php

@@ -148,7 +148,7 @@ class Users extends Base
             }catch(\Exception $e){
                 return json(['code' => -6, 'data' => '', 'msg' => $e->getMessage()]);
             }
-            return json(['code' => 1, 'data' => 'accounts/index', 'msg' => '编辑客服成功']);
+            return json(['code' => 1, 'data' => 'users/index', 'msg' => '编辑客服成功']);
         }
         $id = input('param.id/d');
         $info = db('users')->where('id', $id)->find();

+ 1 - 1
application/admin/view/users/edituser.html

@@ -160,7 +160,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = '/admin/index/index.html';
+                   window.location.href = '/admin/users/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();