xieruidong 2 years ago
parent
commit
542490a305
1 changed files with 1 additions and 1 deletions
  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);
         }
     }