WIN-2308041133\Administrator 8 months ago
parent
commit
b8eaced866
1 changed files with 1 additions and 1 deletions
  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')
         $count = model('VideoShare')
             ->where($map)
             ->where($map)
             ->group('vid')
             ->group('vid')
-            ->field('vid,SUM(num)')
+            ->field('vid,sum(num) as count')
             ->select();
             ->select();
         return $count;
         return $count;
     }
     }