WIN-2308041133\Administrator 10 месяцев назад
Родитель
Сommit
b8eaced866
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      application/api/controller/Platform.php

+ 1 - 1
application/api/controller/Platform.php

@@ -66,7 +66,7 @@ class Platform extends Api
         $count = model('VideoShare')
             ->where($map)
             ->group('vid')
-            ->field('vid,SUM(num)')
+            ->field('vid,sum(num) as count')
             ->select();
         return $count;
     }