|
@@ -62,9 +62,13 @@ class Withdraw extends Api
|
|
|
$this->error('提现金额不能小于'.$min);
|
|
|
}
|
|
|
|
|
|
- $check = Db::name('withdraw')->where(['user_id'=>$this->auth->id,'status'=>0])->find();
|
|
|
+ /*$check = Db::name('withdraw')->where(['user_id'=>$this->auth->id,'status'=>0])->find();
|
|
|
if($check){
|
|
|
$this->error('您已经申请了提现,请等待审核');
|
|
|
+ }*/
|
|
|
+ $check = Db::name('withdraw')->where('user_id',$this->auth->id)->whereTime('createtime','today')->find();
|
|
|
+ if($check){
|
|
|
+ $this->error('您今天已经申请了提现,明天再来吧');
|
|
|
}
|
|
|
|
|
|
$user_money = model('wallet')->getwallet($this->auth->id,'agentjewel');
|