微调
This commit is contained in:
@@ -79,7 +79,7 @@ class Coupon extends Model
|
||||
public function profit()
|
||||
{
|
||||
$log = AccountLog::where('source->coupon_id', $this->id)->first();
|
||||
if (!$log && $this->user) {
|
||||
if (!$log && $this->user && $this->profit) {
|
||||
return $this->user->account->rule('freeze', $this->profit, false, [
|
||||
'coupon_id' => $this->id,
|
||||
'redemptionCode' => $this->redemptionCode,
|
||||
|
||||
Reference in New Issue
Block a user