推广提现--更新

master
chenxiaojun 5 years ago
parent 843c54ced5
commit 9b47108400

@ -227,9 +227,6 @@ class PromoteGameRatioController extends ThinkController
$this->error('参数异常'); $this->error('参数异常');
} }
if ($promoteGameRatio['status'] == -1 || $save['begin_time'] != $promoteGameRatio['begin_time'] || $save['end_time'] != $promoteGameRatio['end_time'] || $save['ratio'] != $promoteGameRatio['ratio'] || $save['remark'] != $promoteGameRatio['remark'] || $save['turnover_ratio'] != $promoteGameRatio['turnover_ratio']) { if ($promoteGameRatio['status'] == -1 || $save['begin_time'] != $promoteGameRatio['begin_time'] || $save['end_time'] != $promoteGameRatio['end_time'] || $save['ratio'] != $promoteGameRatio['ratio'] || $save['remark'] != $promoteGameRatio['remark'] || $save['turnover_ratio'] != $promoteGameRatio['turnover_ratio']) {
$promoteId = $promoteGameRatio['promote_id'];
$this->isWithdraw($promoteId, $save['begin_time']);//是否存在开始时间后已提现数据
if ($promoteGameRatio['status'] == 1) { if ($promoteGameRatio['status'] == 1) {
$save['last_turnover_ratio'] = $promoteGameRatio['turnover_ratio']; $save['last_turnover_ratio'] = $promoteGameRatio['turnover_ratio'];
$save['last_ratio'] = $promoteGameRatio['ratio']; $save['last_ratio'] = $promoteGameRatio['ratio'];
@ -249,7 +246,6 @@ class PromoteGameRatioController extends ThinkController
} }
$promoteId = intval($params['promote_id']); $promoteId = intval($params['promote_id']);
$gameId = intval($params['game_id']); $gameId = intval($params['game_id']);
$this->isWithdraw($promoteId, $save['begin_time']);//是否存在开始时间后已提现数据
$promote = M('promote', 'tab_')->find($promoteId); $promote = M('promote', 'tab_')->find($promoteId);
if (empty($promote) || $promote['level'] != 1) { if (empty($promote) || $promote['level'] != 1) {

Loading…
Cancel
Save