Update RebateService.php

This commit is contained in:
邹景立 2021-09-16 15:28:08 +08:00
parent a06fb7feb1
commit c5890d40f1

View File

@ -172,8 +172,8 @@ class RebateService extends Service
*/
private function checkPrizeStatus(string $prize, int $level): bool
{
$model = BaseUserUpgrade::mk()->where(['number' => $level]);
return $model->whereLike('rebate_rule', "%,{$prize},%")->count() > 0;
$query = BaseUserUpgrade::mk()->where(['number' => $level]);
return $query->whereLike('rebate_rule', "%,{$prize},%")->count() > 0;
}
/**