wesmiler hace 2 años
padre
commit
6c65b4b7cb
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/Services/LiveService.php

+ 2 - 2
app/Services/LiveService.php

@@ -236,8 +236,8 @@ class LiveService extends BaseService
 
             // 结束直播
             $createTime = $info['create_time']? strtotime($info['create_time']) : time();
-            if($createTime <= time() - 1 * 86400 && $info['status'] == 1){
-                $this->model->where(['id'=> $id])->update(['status'=>2,'update_time'=>time()]);
+            if($createTime <= time() - 1.5 * 86400 && $info['status'] == 1){
+                $this->model->where(['id'=> $id])->update(['status'=>2,'end_time'=>time(),'update_time'=>time()]);
                 $info['status'] = 2;
             }
         }