正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
| @@ -173,10 +173,12 @@ class ComController extends BaseController | @@ -173,10 +173,12 @@ class ComController extends BaseController | ||
| 173 | } | 173 | } |
| 174 | } | 174 | } |
| 175 | arsort($countryArr); | 175 | arsort($countryArr); |
| 176 | - | 176 | + |
| 177 | $top20 = array_slice($countryArr, 0, 20, true); | 177 | $top20 = array_slice($countryArr, 0, 20, true); |
| 178 | 178 | ||
| 179 | $arr['country'] = json_encode($top20); | 179 | $arr['country'] = json_encode($top20); |
| 180 | + var_dump(json_decode($arr['country'])); | ||
| 181 | + die(); | ||
| 180 | } | 182 | } |
| 181 | $arr['date'] = $yesterday; | 183 | $arr['date'] = $yesterday; |
| 182 | $rank_info = DB::table('gl_rank_data')->where(['updated_date'=>$yesterday,'lang'=>''])->select(['compliance_day'])->first(); | 184 | $rank_info = DB::table('gl_rank_data')->where(['updated_date'=>$yesterday,'lang'=>''])->select(['compliance_day'])->first(); |
-
请 注册 或 登录 后发表评论