wesmiler 2 年 前
コミット
54e32fe809
1 ファイル変更2 行追加2 行削除
  1. 2 2
      app/Services/LiveService.php

+ 2 - 2
app/Services/LiveService.php

@@ -279,8 +279,8 @@ class LiveService extends BaseService
                     ->value('reward_total');
                     ->value('reward_total');
                 $rankData['reward_total'] = $rewardTotal? format_num(intval($rewardTotal)) : 0;
                 $rankData['reward_total'] = $rewardTotal? format_num(intval($rewardTotal)) : 0;
             }
             }
-
-            RedisService::set($cachekey, ['current' => $rankData,'rank_limit'=> $rankNum,'total'=> $total,'list'=> $datas,], rand(3,5));
+            $totalText = $total>=10000 && $total<=100000? intval($total/10000).'万' : intval($total);
+            RedisService::set($cachekey, ['current' => $rankData,'rank_limit'=> $rankNum,'total'=> $total,'total_text'=>$totalText,'list'=> $datas], rand(3,5));
         }
         }
 
 
         return [
         return [