Explorar o código

update count bugs

zz %!s(int64=5) %!d(string=hai) anos
pai
achega
78076cfd98
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Http/Controllers/Wap/User/UserController.php

+ 1 - 1
app/Http/Controllers/Wap/User/UserController.php

@@ -381,7 +381,7 @@ class UserController extends BaseController
                             $value['update_count'] = DB::table('book_updates')
                                 ->where('bid',$val->bid)->where('update_type','add_chapter')
                                 ->where('created_at','>=',date('Y-m-d H:i:s',$value['time']))
-                                ->count();
+                                ->sum('update_chapter_count');
                         }
                         break;
                     }