mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-08-10 15:39:45 +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
|
private function checkPrizeStatus(string $prize, int $level): bool
|
||||||
{
|
{
|
||||||
$model = BaseUserUpgrade::mk()->where(['number' => $level]);
|
$query = BaseUserUpgrade::mk()->where(['number' => $level]);
|
||||||
return $model->whereLike('rebate_rule', "%,{$prize},%")->count() > 0;
|
return $query->whereLike('rebate_rule', "%,{$prize},%")->count() > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user