作者 王智

daima

@@ -425,7 +425,7 @@ class Index extends Api @@ -425,7 +425,7 @@ class Index extends Api
425 ]; 425 ];
426 } else { 426 } else {
427 $sum = array_sum(array_column($count, 'num')); 427 $sum = array_sum(array_column($count, 'num'));
428 - $list['num'] = ($sum + 5) / count($count) + 1; 428 + $list['num'] = ($sum + 5) / (count($count) + 1);
429 foreach ($talk_arr as $k => $v) { 429 foreach ($talk_arr as $k => $v) {
430 $talkList[$k]['id'] = $v['id']; 430 $talkList[$k]['id'] = $v['id'];
431 $talkList[$k]['num'] = $v['num']; 431 $talkList[$k]['num'] = $v['num'];