wesmiler 2 vuotta sitten
vanhempi
commit
54697ecee9
1 muutettua tiedostoa jossa 0 lisäystä ja 1 poistoa
  1. 0 1
      app/Services/LiveService.php

+ 0 - 1
app/Services/LiveService.php

@@ -256,7 +256,6 @@ class LiveService extends BaseService
         if(!RedisService::get("caches:live:player:{$userId}_{$id}")){
             $this->model->where(['id'=> $id])->update(['views'=>DB::raw('views + 1'),'update_time'=>time()]);
             RedisService::set("caches:live:player:{$userId}_{$id}", ['user_id'=> $userId,'id'=>$id], rand(600, 1800));
-            $info['views'] += 1;
         }
         $this->error = 1010;
         return true;