锁号优化

master
yulingwei 5 years ago
parent 88e5ec6db9
commit 7a767466ef

@ -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) {

@ -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=='') {

Loading…
Cancel
Save