管理后台->游戏编辑--更新推广充值CPS比例时同步未提现订单的分成比例

推广平台->数据管理->每日概况|数据汇总--检索日期间隔调整为31天
推广平台->财务管理->结算中心->提现--权限更新
master
chenxiaojun 5 years ago
parent b2df7e0fe3
commit 773ffb5160

@ -186,7 +186,7 @@ class GameController extends ThinkController
} }
$content = $_POST['content']; $content = $_POST['content'];
if(!empty($content)) { if (!empty($content)) {
$_POST['detail_content'] = $content; $_POST['detail_content'] = $content;
} else { } else {
$_POST['detail_content'] = ''; $_POST['detail_content'] = '';
@ -301,6 +301,7 @@ class GameController extends ThinkController
$_POST['display_site'] = ''; $_POST['display_site'] = '';
} }
$content = $_POST['content']; $content = $_POST['content'];
$gameRatio = M('Game', 'tab_')->where(array('id' => I('post.id', 0)))->getField('ratio');//游戏推广分成比例
$game = D(self::model_name);//M('$this->$model_name','tab_'); $game = D(self::model_name);//M('$this->$model_name','tab_');
$_POST['discount'] == '' ? $_POST['discount'] = 10 : $_POST['discount']; $_POST['discount'] == '' ? $_POST['discount'] = 10 : $_POST['discount'];
$_POST['detail_content'] = $content; $_POST['detail_content'] = $content;
@ -348,7 +349,17 @@ class GameController extends ThinkController
$this->error($game->getError()); $this->error($game->getError());
} else { } else {
\Think\Log::actionLog('Game/edit', 'Game', 1); \Think\Log::actionLog('Game/edit', 'Game', 1);
$this->success($res['id'] ? '更新成功' : '新增成功', U('lists', array('type' => I('post.type'), 'p' => I('request.p')))); $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'))));
}
} }
} else { } else {
@ -375,7 +386,7 @@ class GameController extends ThinkController
$data['cover_data'] = explode(',', $data['cover']); $data['cover_data'] = explode(',', $data['cover']);
} }
if (!empty($data['icon'])) { if (!empty($data['icon'])) {
$data['icon_data'] = explode(',', $data['icon']); $data['icon_data'] = explode(',', $data['icon']);
} }

@ -257,6 +257,12 @@ class FinanceController extends BaseController
$this->ajaxReturn($data); $this->ajaxReturn($data);
} }
if ($this->loginPromote['ver_status'] != 1) {
$data['status'] = 0;
$data['msg'] = '未通过资质认证审核,暂时无法提现';
$this->ajaxReturn($data);
}
$spendModel = M('spend', 'tab_'); $spendModel = M('spend', 'tab_');
$thisDay = strtotime(date('Y-m-d')); $thisDay = strtotime(date('Y-m-d'));

@ -1088,7 +1088,7 @@ class QueryController extends BaseController
$params['dayList'] = $dayList; $params['dayList'] = $dayList;
$records = []; $records = [];
if (intval($endTime - $begTime) / (24 * 3600) <= 30) { if (intval($endTime - $begTime) / (24 * 3600) <= 31) {
$userRepository = new UserRepository(); $userRepository = new UserRepository();
$spendRepository = new SpendRepository(); $spendRepository = new SpendRepository();
$roleNumList = $userRepository->getCreateRoleCountByDay($params);//创角数 $roleNumList = $userRepository->getCreateRoleCountByDay($params);//创角数
@ -1282,7 +1282,7 @@ class QueryController extends BaseController
$allData['spend_discount'] = 0; $allData['spend_discount'] = 0;
$allData['spend_voucher'] = 0; $allData['spend_voucher'] = 0;
if (!empty($data)) { if (!empty($data)) {
if (intval($endTime - $begTime) / (24 * 3600) <= 30) { if (intval($endTime - $begTime) / (24 * 3600) <= 31) {
$gameIds = []; $gameIds = [];
foreach ($data as $list) { foreach ($data as $list) {
$gameIds[] = $list['game_id']; $gameIds[] = $list['game_id'];

@ -539,8 +539,8 @@
return false; return false;
} }
if ((edate - sdate) > 2505600) { if ((edate - sdate) > 2592000) {
layer.msg('时间间隔不能超过30天,请重新选择日期'); layer.msg('时间间隔不能超过31天,请重新选择日期');
return false; return false;
} }

@ -312,8 +312,8 @@
layer.msg('开始时间必须小于等于结束时间'); layer.msg('开始时间必须小于等于结束时间');
return false; return false;
} }
if ((edate - sdate) > 2505600) { if ((edate - sdate) > 2592000) {
layer.msg('时间间隔不能超过30天,请重新选择日期'); layer.msg('时间间隔不能超过31天,请重新选择日期');
return false; return false;
} }

Loading…
Cancel
Save