...
|
...
|
@@ -287,10 +287,13 @@ class LoginController extends Controller{ |
|
|
$this->error('非管理员不可进行该操作');
|
|
|
}
|
|
|
if ($param['type']=1) {
|
|
|
$re = Db::name('user')->where('id', $param['user_id'])->setInc('money', $param['money']);
|
|
|
}elseif ($param['type']=2){
|
|
|
$re = Db::name('user')->where('id', $param['user_id'])->setDec('money' ,$param['money']);
|
|
|
$re = Db::name('user')->where('id', $param['user_id'])->setInc('money',$param['money']);
|
|
|
}
|
|
|
if ($param['type']=2){
|
|
|
$re = Db::name('user')->where('id', $param['user_id'])->setDec('money',$param['money']);
|
|
|
}
|
|
|
|
|
|
|
|
|
if ($re) {
|
|
|
$this->success('操作成功');
|
|
|
}else{
|
...
|
...
|
|