|
|
@ -290,7 +290,7 @@ class PromoteGameRatioController extends ThinkController
|
|
|
|
$promoteGameRatio['end_time'] = $promoteGameRatio['end_time'] ? date('Y-m', $promoteGameRatio['end_time']) : '';
|
|
|
|
$promoteGameRatio['end_time'] = $promoteGameRatio['end_time'] ? date('Y-m', $promoteGameRatio['end_time']) : '';
|
|
|
|
$promoteGameRatio['turnover_ratio'] = $promoteGameRatio['turnover_ratio'] ? json_decode($promoteGameRatio['turnover_ratio'], true) : $promoteGameRatio['turnover_ratio'];
|
|
|
|
$promoteGameRatio['turnover_ratio'] = $promoteGameRatio['turnover_ratio'] ? json_decode($promoteGameRatio['turnover_ratio'], true) : $promoteGameRatio['turnover_ratio'];
|
|
|
|
if ($promoteGameRatio['last_ratio_status'] == 1) {
|
|
|
|
if ($promoteGameRatio['last_ratio_status'] == 1) {
|
|
|
|
$lastRatio = $promoteGameRatio['last_ratio'];
|
|
|
|
$lastRatio = $promoteGameRatio['last_ratio'] . '%';
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$gameRatio = M('game', 'tab_')->where(array(['id' => $promoteGameRatio['game_id']]))->getField('ratio');
|
|
|
|
$gameRatio = M('game', 'tab_')->where(array(['id' => $promoteGameRatio['game_id']]))->getField('ratio');
|
|
|
|
$lastRatio = ($gameRatio ?? '0.00') . '%';
|
|
|
|
$lastRatio = ($gameRatio ?? '0.00') . '%';
|
|
|
|