|
|
|
@ -349,17 +349,7 @@ class GameController extends ThinkController
|
|
|
|
|
$this->error($game->getError());
|
|
|
|
|
} else {
|
|
|
|
|
\Think\Log::actionLog('Game/edit', 'Game', 1);
|
|
|
|
|
$thisGameRatio = I('post.ratio', 0);
|
|
|
|
|
if ($gameRatio != $thisGameRatio) {
|
|
|
|
|
$spendRes = M('Spend', 'tab_')->where(array('game_id' => $id, 'pay_status' => 1, 'selle_status' => 0))->save(array('selle_ratio' => $thisGameRatio));
|
|
|
|
|
if ($spendRes === false) {
|
|
|
|
|
$this->error('更新成功,推广充值分成比例同步失败');
|
|
|
|
|
} else {
|
|
|
|
|
$this->success($res['id'] ? '更新成功' : '新增成功', U('lists', array('type' => I('post.type'), 'p' => I('request.p'))));
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
$this->success($res['id'] ? '更新成功' : '新增成功', U('lists', array('type' => I('post.type'), 'p' => I('request.p'))));
|
|
|
|
|
}
|
|
|
|
|
$this->success($res['id'] ? '更新成功' : '新增成功', U('lists', array('type' => I('post.type'), 'p' => I('request.p'))));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|