浏览代码

排行榜返回字段统一

duqinya 5 年之前
父节点
当前提交
939e193cb8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Repositories/BeanRepository.php

+ 1 - 1
app/Repositories/BeanRepository.php

@@ -169,7 +169,7 @@ class BeanRepository
                 $i = 0;
                 foreach ($all_beans as $key => $val) {
                     $new_arr[$i]['uid'] = $key;
-                    $new_arr[$i]['bean'] = $val;
+                    $new_arr[$i]['count'] = $val;
                     $i++;
                 }
             $uids = implode(',', array_column($new_arr,'uid'));