浏览代码

update fix

ssvfdn 3 月之前
父节点
当前提交
ae2634f9fa
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      app/controller/PlayerControl.php

+ 4 - 0
app/controller/PlayerControl.php

@@ -267,6 +267,10 @@ class PlayerControl extends BaseController
             $item['old_rtp'] = bcdiv($item['old_rtp'], 100, 2) . "%";
             $item['now_rtp'] = bcdiv($rtpConfigList[$one_key] ?? 0, 100, 2) . "%";
 
+            if(!empty($item['auto_cancel_rtp'])) {
+                $item['auto_cancel_rtp'] = bcdiv($item['auto_cancel_rtp'], 100, 2) . "%";
+            }
+
             $playerInfo = $playerConfig[$player_id] ?? [];
             $item['uname'] = $playerInfo['uname'] ?? '';
             $item['nickname'] = $playerInfo['nickname'] ?? '';