|
|
@ -837,8 +837,8 @@ class MemberController extends ThinkController
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function lock_status($id="", $lock_status, $accounts = "")
|
|
|
|
public function lock_status($id="", $lock_status, $accounts = "")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ($accounts) $map['account'] = ['in', array_unique(explode(',', $accounts))];
|
|
|
|
if ($accounts) $map['account'] = ['in', array_unique(explode("\n", $accounts))];
|
|
|
|
if ($id) $map['id'] = ['in', array_unique(explode(',', $id))];
|
|
|
|
if ($id) $map['id'] = ['in', array_unique(explode("\n", $id))];
|
|
|
|
$users = M('user', 'tab_')->where($map)->field('id')->select();
|
|
|
|
$users = M('user', 'tab_')->where($map)->field('id')->select();
|
|
|
|
$res = M('user', 'tab_')->where($map)->setField(['lock_status' => $lock_status]);
|
|
|
|
$res = M('user', 'tab_')->where($map)->setField(['lock_status' => $lock_status]);
|
|
|
|
if ($res) {
|
|
|
|
if ($res) {
|
|
|
|