wupengfei 2 years ago
parent
commit
5714c27201
1 changed files with 2 additions and 1 deletions
  1. 2 1
      application/api/controller/Index.php

+ 2 - 1
application/api/controller/Index.php

@@ -101,6 +101,7 @@ class Index extends Base
             ->where('is_deleted',0)
             ->where('status',1)
             ->whereIn('type',$in_type)
+            ->where('sell_time','< time',date("Y-m-d 23:59:59"))
             ->when($issue_mode,function ($query)use($issue_mode){ if($issue_mode) $query->where('issue_mode',$issue_mode);})
             ->field('id,cover,name,type,label,price,inventory,now_inventory,state,sell_time,advance_info,auth_name,auth_img,issue_mode,apply_st,before_time')
             ->order('state asc,sell_time asc')
@@ -155,7 +156,7 @@ class Index extends Base
             ->where('status',1)
             ->where('state',2)
             ->whereIn('type',$in_type)
-            ->where('date','>=',date('Y-m-d',time()))
+            ->where('date','>=',date('Y-m-d',time()+86400))
             ->group('date')
             ->order('date asc')
             ->column('date');