Commit f9741c06 by 冷斌

fix bug

parent 54624435
......@@ -976,6 +976,12 @@ class Api_User extends PhalApi_Api {
return $rs;
}
if($info==1008){
$rs['code'] = 1008;
$rs['msg'] = '禁止提现';
return $rs;
}
$rs['info'][0]=[];
return $rs;
}
......
......@@ -392,6 +392,13 @@ class Model_User extends PhalApi_Model_NotORM
if (empty($rechange)) {
return 1;
}
$info = DI()->notorm->users->select("ban_cash")->where('id=? and user_type="2"', $uid)->fetchOne();
if ($info['ban_cash']) {
return 1008;
}
$cashvotes = $rechange['money'];
$user = DI()->notorm->users->select('votes')->where('id=?', $uid)->fetchOne();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment