xieruidong 2 anni fa
parent
commit
542490a305
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      application/common/model/UserCoupon.php

+ 1 - 1
application/common/model/UserCoupon.php

@@ -62,7 +62,7 @@ class UserCoupon extends Model
         if($notExpire) {
             $query->where('time_start', '<', $time)->where('time_end', '>', $time);
         }else{
-            $query->where('time_end','>',$time)->where('is_use',0);
+            $query->where('time_end','<',$time)->where('is_use',0);
         }
     }