...
|
...
|
@@ -621,7 +621,8 @@ class User extends Api |
|
|
->select();
|
|
|
foreach ($data['info'] as &$v){
|
|
|
if($v['status'] == 1){
|
|
|
$v['proportion'] = floor($v['playtime']/$v['duration']*100).'%';
|
|
|
$proportion = floor($v['playtime']/$v['duration']*100);
|
|
|
$v['proportion'] = ($proportion >= 100 ? 99 : $proportion).'%';
|
|
|
}else{
|
|
|
$v['proportion'] = '100%';
|
|
|
}
|
...
|
...
|
|