diff --git a/Application/Admin/Controller/MemberController.class.php b/Application/Admin/Controller/MemberController.class.php index fd7a178c4..afde5599c 100644 --- a/Application/Admin/Controller/MemberController.class.php +++ b/Application/Admin/Controller/MemberController.class.php @@ -837,8 +837,8 @@ class MemberController extends ThinkController */ public function lock_status($id="", $lock_status, $accounts = "") { - if ($accounts) $map['account'] = ['in', array_unique(explode(',', $accounts))]; - if ($id) $map['id'] = ['in', array_unique(explode(',', $id))]; + if ($accounts) $map['account'] = ['in', array_unique(explode("\n", $accounts))]; + if ($id) $map['id'] = ['in', array_unique(explode("\n", $id))]; $users = M('user', 'tab_')->where($map)->field('id')->select(); $res = M('user', 'tab_')->where($map)->setField(['lock_status' => $lock_status]); if ($res) { diff --git a/Application/Admin/View/Member/user_info.html b/Application/Admin/View/Member/user_info.html index 1dfdca0d9..62cb6dc49 100644 --- a/Application/Admin/View/Member/user_info.html +++ b/Application/Admin/View/Member/user_info.html @@ -501,7 +501,7 @@ $(function(){ function shenhe(status){ var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) { return $(elem).val(); - }).get().join(','); + }).get().join("\n"); var desc = ''; if (status == 0) { desc = '锁定'; @@ -511,8 +511,8 @@ $(function(){ layer.prompt({ formType: 2, value: text, - placeholder : '玩家账号(英文逗号隔开)', - title: '请输入要'+desc+'的玩家账号(英文逗号隔开)', + placeholder : '玩家账号(一个账号一行)', + title: '请输入要'+desc+'的玩家账号(一个账号一行)', area: ['800px', '350px'] //自定义文本域宽高 }, function(value, index, elem){ if(value=='') {