Ken 5 giorni fa
parent
commit
1fbe5e525b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/Http/Controllers/api/ActivityReward.php

+ 1 - 1
app/Http/Controllers/api/ActivityReward.php

@@ -113,7 +113,7 @@ class ActivityReward extends BaseController
 
 
             if(
-            !PaymentOrder::where('member_id', $memberId)->where('status', 2)->exists() &&
+            !PaymentOrder::where('member_id', $memberId)->where('type',1)->where('status', 2)->exists() &&
                 !Recharge::where('member_id', $memberId)->where('status', 1)->exists()
                     ){
                 throw new Exception('请先完成充值,再申请活动', HttpStatus::CUSTOM_ERROR);