mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update RebateService.php
This commit is contained in:
parent
a06fb7feb1
commit
c5890d40f1
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user