|
|
@@ -475,7 +475,7 @@ class UserExchangeServices extends BaseServices
|
|
|
}
|
|
|
/** @var UserBillServices $userBillServices */
|
|
|
$userBillServices = app()->make(UserBillServices::class);
|
|
|
- $trans_times = $userBillServices->getCount(['uid' => $uid, 'type' => 'energy_to_money', 'time' => 'month']);
|
|
|
+ $trans_times = $userBillServices->getCount(['uid' => $uid, 'type' => 'energy_to_money', 'time' => 'month'],true);
|
|
|
if ($trans_times >= $times && $times > 0) {
|
|
|
throw new ValidateException('已达到最大转换次数');
|
|
|
}
|