|
|
|
@ -1194,11 +1194,10 @@ class QueryController extends ThinkController
|
|
|
|
|
$this->ajaxReturn(['msg' => $msg]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function set_withdraw_status()
|
|
|
|
|
public function set_withdraw_status($status = 1)
|
|
|
|
|
{
|
|
|
|
|
$withdraw = M('withdraw', "tab_");
|
|
|
|
|
$ids = I('ids', 0);
|
|
|
|
|
$status = 1;
|
|
|
|
|
if (empty($ids)) {
|
|
|
|
|
$this->error('参数异常');
|
|
|
|
|
}
|
|
|
|
@ -1207,14 +1206,21 @@ class QueryController extends ThinkController
|
|
|
|
|
} else {
|
|
|
|
|
$map['id'] = $ids;
|
|
|
|
|
}
|
|
|
|
|
switch ($status) {
|
|
|
|
|
case 1:
|
|
|
|
|
$map['status'] = 0;
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
$map['status'] = 1;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
$save['audit_time'] = time();
|
|
|
|
|
$save['status'] = $status;
|
|
|
|
|
$res = $withdraw->where($map)->save($save);
|
|
|
|
|
if ($res === false) {
|
|
|
|
|
$this->error('审核失败');
|
|
|
|
|
$this->error('操作失败');
|
|
|
|
|
} else {
|
|
|
|
|
$this->success('审核成功', U('withdraw'));
|
|
|
|
|
$this->success('操作成功', U('withdraw'));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|