Commit 4f7c2b99 by 冷斌

踢人

parent e3185192
......@@ -979,7 +979,11 @@ class Api_User extends PhalApi_Api {
$rs['code'] = 1007;
$rs['msg'] = '提现账号信息不正确';
return $rs;
}else if(!$info){
}else if($info==1008){
$rs['code'] = 1008;
$rs['msg'] = '禁止提现';
return $rs;
}else if(!$info){
$rs['code'] = 1002;
$rs['msg'] = '提现失败,请重试';
return $rs;
......
......@@ -176,6 +176,14 @@ class Model_User extends PhalApi_Model_NotORM
return 1005;
}
$info = DI()->notorm->users->select("ban_cash")
->where('id=? and user_type="2"', $uid)
->fetchOne();
if ($info['ban_cash']) {
return 1008;
}
//本月第一天
$month = date('Y-m-d', strtotime(date("Ym", $nowtime) . '01'));
$month_start = strtotime(date("Ym", $nowtime) . '01');
......
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