Update Transfer.php

This commit is contained in:
邹景立 2021-03-17 18:43:47 +08:00
parent 83de9c0b85
commit c11f83d011

View File

@ -80,7 +80,7 @@ class Transfer extends Auth
[$total, $count] = UserRebateService::instance()->amount($this->uuid);
if ($total - $count < $data['amount']) $this->error('可提现余额不足!');
// 当日提现次数限制
$map = ['mid' => $this->uuid, 'type' => $data['type'], 'date' => $data['date']];
$map = ['uid' => $this->uuid, 'type' => $data['type'], 'date' => $data['date']];
$count = $this->app->db->name($this->table)->where($map)->count();
if ($count >= $transfers[$data['type']]['dayNumber']) $this->error("当日提现次数受限");
// 提现金额范围控制