|
|
@ -22,22 +22,44 @@ class PromoteGameRatioController extends ThinkController
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$params = I('get.');
|
|
|
|
$params = I('get.');
|
|
|
|
$group = $params['group'] ?? 1;
|
|
|
|
$group = $params['group'] ?? 1;
|
|
|
|
|
|
|
|
$companyId = $params['company_id'] ?? 0;
|
|
|
|
|
|
|
|
$companyBelong = $params['company_belong'] ?? '';
|
|
|
|
$promoteId = $params['promote_id'] ?? 0;
|
|
|
|
$promoteId = $params['promote_id'] ?? 0;
|
|
|
|
$gameId = $params['game_id'] ?? 0;
|
|
|
|
$gameId = $params['game_id'] ?? 0;
|
|
|
|
|
|
|
|
$gameTypeId = $params['game_type_id'] ?? 0;
|
|
|
|
$status = $params['status'] ?? '';
|
|
|
|
$status = $params['status'] ?? '';
|
|
|
|
$page = $params['p'] ? intval($params['p']) : 1;
|
|
|
|
$page = $params['p'] ? intval($params['p']) : 1;
|
|
|
|
$row = $params['row'] ? intval($params['row']) : 10;
|
|
|
|
$row = $params['row'] ? intval($params['row']) : 10;
|
|
|
|
|
|
|
|
|
|
|
|
$map['_string'] = 'game_id = relation_game_id';
|
|
|
|
$map['_string'] = 'game_id = relation_game_id';
|
|
|
|
|
|
|
|
$where['_string'] = '1 = 1';
|
|
|
|
|
|
|
|
if ($companyId || ($companyBelong !== '' && in_array($companyBelong, [0, 1]))) {
|
|
|
|
|
|
|
|
$promoteMap['_string'] = '1 = 1';
|
|
|
|
|
|
|
|
if ($companyId) {
|
|
|
|
|
|
|
|
$promoteMap['company_id'] = $companyId;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($companyBelong !== '' && in_array($companyBelong, [0, 1])) {
|
|
|
|
|
|
|
|
$promoteMap['company_belong'] = $companyBelong;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$promoteIds = D('promote')->where($promoteMap)->getField('id', true);
|
|
|
|
|
|
|
|
$promoteIds = $promoteIds ?? [-1];
|
|
|
|
|
|
|
|
$where['promote_id'] = ['in', $promoteIds];
|
|
|
|
|
|
|
|
}
|
|
|
|
if ($promoteId) {
|
|
|
|
if ($promoteId) {
|
|
|
|
$map['promote_id'] = intval($promoteId);
|
|
|
|
$map['promote_id'] = intval($promoteId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($gameTypeId) {
|
|
|
|
|
|
|
|
$gameIds = D('game')->where(['game_type_id' => $gameTypeId])->getField('id', true);
|
|
|
|
|
|
|
|
$gameIds = $gameIds ?? [-1];
|
|
|
|
|
|
|
|
$where['game_id'] = ['in', $gameIds];
|
|
|
|
|
|
|
|
}
|
|
|
|
if ($gameId) {
|
|
|
|
if ($gameId) {
|
|
|
|
$map['game_id'] = intval($gameId);
|
|
|
|
$map['game_id'] = intval($gameId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($status !== '') {
|
|
|
|
if ($status !== '') {
|
|
|
|
$map['status'] = intval($status);
|
|
|
|
$map['status'] = intval($status);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$map['_complex'] = $where;
|
|
|
|
|
|
|
|
|
|
|
|
$field = 'create_time, update_time';
|
|
|
|
$field = 'create_time, update_time';
|
|
|
|
if ($group == 1) {
|
|
|
|
if ($group == 1) {
|
|
|
@ -68,8 +90,8 @@ class PromoteGameRatioController extends ThinkController
|
|
|
|
if ($promoteGameRatios) {
|
|
|
|
if ($promoteGameRatios) {
|
|
|
|
$promoteIds = array_column($promoteGameRatios, 'promote_id');
|
|
|
|
$promoteIds = array_column($promoteGameRatios, 'promote_id');
|
|
|
|
$gameIds = array_column($promoteGameRatios, 'game_id');
|
|
|
|
$gameIds = array_column($promoteGameRatios, 'game_id');
|
|
|
|
$promoteFiled = 'id, account, mobile_phone, create_time, status, ver_status';
|
|
|
|
$promoteFiled = 'id, account, mobile_phone, create_time, status, ver_status, company_id, company_belong';
|
|
|
|
$gameFiled = 'id, relation_game_name, ratio';
|
|
|
|
$gameFiled = 'id, relation_game_name, ratio, game_type_name';
|
|
|
|
$promotes = M('promote', 'tab_')->where(array('id' => ['in', $promoteIds]))->getField($promoteFiled, true);
|
|
|
|
$promotes = M('promote', 'tab_')->where(array('id' => ['in', $promoteIds]))->getField($promoteFiled, true);
|
|
|
|
$games = M('game', 'tab_')->where(array('id' => ['in', $gameIds]))->getField($gameFiled, true);
|
|
|
|
$games = M('game', 'tab_')->where(array('id' => ['in', $gameIds]))->getField($gameFiled, true);
|
|
|
|
|
|
|
|
|
|
|
@ -83,14 +105,22 @@ class PromoteGameRatioController extends ThinkController
|
|
|
|
$thisPromoteCreateTime = '未知';
|
|
|
|
$thisPromoteCreateTime = '未知';
|
|
|
|
$thisPromoteStatus = '待审核';
|
|
|
|
$thisPromoteStatus = '待审核';
|
|
|
|
$thisPromoteVerStatus = '未知';
|
|
|
|
$thisPromoteVerStatus = '未知';
|
|
|
|
|
|
|
|
$thisCompanyName = '未知';
|
|
|
|
|
|
|
|
$thisCompanyBelong = '未知';
|
|
|
|
|
|
|
|
$thisGameTypeName = '未知';
|
|
|
|
$thisGameName = '未知';
|
|
|
|
$thisGameName = '未知';
|
|
|
|
$thisGameRatio = '0.00%';
|
|
|
|
$thisGameRatio = '0.00%';
|
|
|
|
$thisLastRatio = $promoteGameRatio['last_ratio'] . '%';
|
|
|
|
$thisLastRatio = $promoteGameRatio['last_ratio'] . '%';
|
|
|
|
$thisLastTurnoverRatio = $promoteGameRatio['last_turnover_ratio'] ? json_decode($promoteGameRatio['last_turnover_ratio'], true) : [];
|
|
|
|
$thisLastTurnoverRatio = $promoteGameRatio['last_turnover_ratio'] ? json_decode($promoteGameRatio['last_turnover_ratio'], true) : [];
|
|
|
|
$thisLastRatio = $thisLastTurnoverRatio ? "{$thisLastRatio} - " . $thisLastTurnoverRatio[count($thisLastTurnoverRatio) - 1]['ratio'] . '%' : $thisLastRatio;
|
|
|
|
$thisLastRatio = $thisLastTurnoverRatio ? "{$thisLastRatio} - " . $thisLastTurnoverRatio[count($thisLastTurnoverRatio) - 1]['ratio'] . '%' : $thisLastRatio;
|
|
|
|
$thisRatio = $promoteGameRatio['ratio'] . '%';
|
|
|
|
$thisTurnoverRatios = $promoteGameRatio['turnover_ratio'] ? json_decode($promoteGameRatio['turnover_ratio'], true) : [];
|
|
|
|
$thisTurnoverRatio = $promoteGameRatio['turnover_ratio'] ? json_decode($promoteGameRatio['turnover_ratio'], true) : [];
|
|
|
|
$thisRatioDtl = "默认:{$promoteGameRatio['ratio']}%";
|
|
|
|
$thisRatio = $thisTurnoverRatio ? "{$thisRatio} - " . $thisTurnoverRatio[count($thisTurnoverRatio) - 1]['ratio'] . '%' : $thisRatio;
|
|
|
|
if ($thisTurnoverRatios) {
|
|
|
|
|
|
|
|
$thisIntervalClosedStatusText = ($promoteGameRatio['interval_closed_status'] == 1 ? '≥' : '>');
|
|
|
|
|
|
|
|
foreach ($thisTurnoverRatios as $thisTurnoverRatio) {
|
|
|
|
|
|
|
|
$thisRatioDtl .= "<br>月流水{$thisIntervalClosedStatusText}{$thisTurnoverRatio['turnover']},比例:{$thisTurnoverRatio['ratio']}%";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
$thisLastRatioStatus = $promoteGameRatio['last_ratio_status'];
|
|
|
|
$thisLastRatioStatus = $promoteGameRatio['last_ratio_status'];
|
|
|
|
$thisStatusText = self::$statusList[$promoteGameRatio['status']];
|
|
|
|
$thisStatusText = self::$statusList[$promoteGameRatio['status']];
|
|
|
|
$thisStatusText = ($promoteGameRatio['status'] == -1) ? '<span style="color: red;">' . $thisStatusText . '</span>' : $thisStatusText;
|
|
|
|
$thisStatusText = ($promoteGameRatio['status'] == -1) ? '<span style="color: red;">' . $thisStatusText . '</span>' : $thisStatusText;
|
|
|
@ -106,11 +136,14 @@ class PromoteGameRatioController extends ThinkController
|
|
|
|
$thisPromoteStatus = get_info_status($promotes[$thisPromoteId]['status'], 3);
|
|
|
|
$thisPromoteStatus = get_info_status($promotes[$thisPromoteId]['status'], 3);
|
|
|
|
$thisPromoteStatus = $thisPromoteStatus ?? '待审核';
|
|
|
|
$thisPromoteStatus = $thisPromoteStatus ?? '待审核';
|
|
|
|
$thisPromoteVerStatus = getPromoteVerStatus($promotes[$thisPromoteId]['ver_status'], 2);
|
|
|
|
$thisPromoteVerStatus = getPromoteVerStatus($promotes[$thisPromoteId]['ver_status'], 2);
|
|
|
|
|
|
|
|
$thisCompanyName = getPromoteCompanyName($promotes[$thisPromoteId]['company_id']);
|
|
|
|
|
|
|
|
$thisCompanyBelong = $promotes[$thisPromoteId]['company_belong'] == 1 ? '外团' : '内团';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($issetGame) {
|
|
|
|
if ($issetGame) {
|
|
|
|
$thisGameName = $games[$thisGameId]['relation_game_name'];
|
|
|
|
$thisGameName = $games[$thisGameId]['relation_game_name'];
|
|
|
|
$thisGameRatio = $games[$thisGameId]['ratio'];
|
|
|
|
$thisGameRatio = $games[$thisGameId]['ratio'];
|
|
|
|
$thisGameRatio = ($thisGameRatio ?? '0.00') . '%';
|
|
|
|
$thisGameRatio = ($thisGameRatio ?? '0.00') . '%';
|
|
|
|
|
|
|
|
$thisGameTypeName = $games[$thisGameId]['game_type_name'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$record = [
|
|
|
|
$record = [
|
|
|
@ -121,9 +154,12 @@ class PromoteGameRatioController extends ThinkController
|
|
|
|
'promote_create_time' => $thisPromoteCreateTime,
|
|
|
|
'promote_create_time' => $thisPromoteCreateTime,
|
|
|
|
'promote_status_text' => $thisPromoteStatus,
|
|
|
|
'promote_status_text' => $thisPromoteStatus,
|
|
|
|
'promote_ver_status_text' => $thisPromoteVerStatus,
|
|
|
|
'promote_ver_status_text' => $thisPromoteVerStatus,
|
|
|
|
|
|
|
|
'company_name' => $thisCompanyName,
|
|
|
|
|
|
|
|
'company_belong' => $thisCompanyBelong,
|
|
|
|
'game_name' => $thisGameName,
|
|
|
|
'game_name' => $thisGameName,
|
|
|
|
|
|
|
|
'game_type_name' => $thisGameTypeName,
|
|
|
|
'last_ratio' => (($thisLastRatioStatus == 1 || $group != 1) ? $thisLastRatio : $thisGameRatio),
|
|
|
|
'last_ratio' => (($thisLastRatioStatus == 1 || $group != 1) ? $thisLastRatio : $thisGameRatio),
|
|
|
|
'ratio' => $thisRatio,
|
|
|
|
'ratio_dtl' => $thisRatioDtl,
|
|
|
|
'valid_date' => $validDate,
|
|
|
|
'valid_date' => $validDate,
|
|
|
|
'remark' => $promoteGameRatio['remark'],
|
|
|
|
'remark' => $promoteGameRatio['remark'],
|
|
|
|
'status_text' => $thisStatusText,
|
|
|
|
'status_text' => $thisStatusText,
|
|
|
@ -158,16 +194,20 @@ class PromoteGameRatioController extends ThinkController
|
|
|
|
exit;
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$gameTypelist = getGameTypes();
|
|
|
|
|
|
|
|
$companys = getPromoteCompanys();
|
|
|
|
$reviewRule = $this->getReviewRule();
|
|
|
|
$reviewRule = $this->getReviewRule();
|
|
|
|
$page = set_pagination($count, $row);
|
|
|
|
$page = set_pagination($count, $row);
|
|
|
|
if($page) {
|
|
|
|
if($page) {
|
|
|
|
$this->assign('_page', $page);
|
|
|
|
$this->assign('_page', $page);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->assign('companys', $companys);
|
|
|
|
|
|
|
|
$this->assign('gameTypeList', $gameTypelist);
|
|
|
|
$this->assign('group', $group);
|
|
|
|
$this->assign('group', $group);
|
|
|
|
$this->assign('records', $records);
|
|
|
|
$this->assign('records', $records);
|
|
|
|
$this->assign('count', $count);
|
|
|
|
$this->assign('count', $count);
|
|
|
|
$this->assign('gameList', getAllGameList(true));
|
|
|
|
$this->assign('gameList', getAllGameList(true));
|
|
|
|
$this->assign('promoteList', getPromoteByLevel(1));
|
|
|
|
$this->assign('promoteList', getPromoteByLevel(1, intval(I('company_id', 0))));
|
|
|
|
$this->assign('statusList', self::$statusList);
|
|
|
|
$this->assign('statusList', self::$statusList);
|
|
|
|
$this->assign('reviewRule', $reviewRule);
|
|
|
|
$this->assign('reviewRule', $reviewRule);
|
|
|
|
$this->assign('is_admin', is_administrator());
|
|
|
|
$this->assign('is_admin', is_administrator());
|
|
|
@ -231,6 +271,7 @@ class PromoteGameRatioController extends ThinkController
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$save['interval_closed_status'] = ($params['interval_closed_status'] ? ($params['interval_closed_status'] == 1 ? 1 : 2) : 1);
|
|
|
|
$save['ratio'] = $params['ratio'] ?? 0;
|
|
|
|
$save['ratio'] = $params['ratio'] ?? 0;
|
|
|
|
$save['begin_time'] = strtotime($params['begin_time']);
|
|
|
|
$save['begin_time'] = strtotime($params['begin_time']);
|
|
|
|
$save['end_time'] = $params['end_time'] ? (strtotime('+1 month', strtotime($params['end_time'])) - 1) : 0;
|
|
|
|
$save['end_time'] = $params['end_time'] ? (strtotime('+1 month', strtotime($params['end_time'])) - 1) : 0;
|
|
|
@ -243,8 +284,8 @@ class PromoteGameRatioController extends ThinkController
|
|
|
|
if (empty($promoteGameRatio)) {
|
|
|
|
if (empty($promoteGameRatio)) {
|
|
|
|
$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['interval_closed_status'] != $promoteGameRatio['interval_closed_status'] || $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']) {
|
|
|
|
$this->isWithdraw($promoteGameRatio['promote_id'], $save['begin_time']);
|
|
|
|
$this->isWithdraw($promoteGameRatio['promote_id'], $save['begin_time'], $save['end_time']);
|
|
|
|
|
|
|
|
|
|
|
|
if ($promoteGameRatio['status'] == 1) {
|
|
|
|
if ($promoteGameRatio['status'] == 1) {
|
|
|
|
$save['last_turnover_ratio'] = $promoteGameRatio['turnover_ratio'];
|
|
|
|
$save['last_turnover_ratio'] = $promoteGameRatio['turnover_ratio'];
|
|
|
@ -293,7 +334,7 @@ class PromoteGameRatioController extends ThinkController
|
|
|
|
$this->error('参数异常');
|
|
|
|
$this->error('参数异常');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$this->isWithdraw($promoteId, $save['begin_time']);
|
|
|
|
$this->isWithdraw($promoteId, $save['begin_time'], $save['end_time']);
|
|
|
|
|
|
|
|
|
|
|
|
$map['promote_id'] = $promoteId;
|
|
|
|
$map['promote_id'] = $promoteId;
|
|
|
|
$save['promote_id'] = $promoteId;
|
|
|
|
$save['promote_id'] = $promoteId;
|
|
|
@ -329,6 +370,7 @@ class PromoteGameRatioController extends ThinkController
|
|
|
|
$params = I('get.');
|
|
|
|
$params = I('get.');
|
|
|
|
$id = $params['id'] ?? 0;
|
|
|
|
$id = $params['id'] ?? 0;
|
|
|
|
$id = intval($id);
|
|
|
|
$id = intval($id);
|
|
|
|
|
|
|
|
$companyId = 0;
|
|
|
|
$metaTitle = '游戏分成比例申请';
|
|
|
|
$metaTitle = '游戏分成比例申请';
|
|
|
|
if ($id) {
|
|
|
|
if ($id) {
|
|
|
|
$metaTitle .= '--修改';
|
|
|
|
$metaTitle .= '--修改';
|
|
|
@ -347,18 +389,30 @@ class PromoteGameRatioController extends ThinkController
|
|
|
|
$lastRatio = ($gameRatio ?? '0.00') . '%';
|
|
|
|
$lastRatio = ($gameRatio ?? '0.00') . '%';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$companyId = $promoteGameRatio['company_id'];
|
|
|
|
|
|
|
|
$promoteGameRatio['company_id'] = D('promote')->where(['id' => $promoteGameRatio['promote_id']])->getField('company_id');
|
|
|
|
$this->assign('record', $promoteGameRatio);
|
|
|
|
$this->assign('record', $promoteGameRatio);
|
|
|
|
$this->assign('lastRatio', $lastRatio);
|
|
|
|
$this->assign('lastRatio', $lastRatio);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$companys = getPromoteCompanys();
|
|
|
|
|
|
|
|
$this->assign('companys', $companys);
|
|
|
|
$this->assign('gameList', getAllGameList(true));
|
|
|
|
$this->assign('gameList', getAllGameList(true));
|
|
|
|
$this->assign('promoteList', getPromoteByLevel(1));
|
|
|
|
$this->assign('promoteList', getPromoteByLevel(1, $companyId));
|
|
|
|
$this->meta_title = $metaTitle;
|
|
|
|
$this->meta_title = $metaTitle;
|
|
|
|
$this->display();
|
|
|
|
$this->display();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private function isWithdraw($promoteId, $beginTime)
|
|
|
|
public function getPromotes()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$level = 1;
|
|
|
|
|
|
|
|
$companyId = intval(I('company_id', 0));
|
|
|
|
|
|
|
|
$promotes = getPromoteByLevel($level, $companyId);
|
|
|
|
|
|
|
|
$this->ajaxReturn($promotes);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private function isWithdraw($promoteId, $beginTime, $endTime)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$promote = M('promote', 'tab_')->find($promoteId);
|
|
|
|
$promote = M('promote', 'tab_')->find($promoteId);
|
|
|
|
if (empty($promote)) {
|
|
|
|
if (empty($promote)) {
|
|
|
@ -370,11 +424,38 @@ class PromoteGameRatioController extends ThinkController
|
|
|
|
|
|
|
|
|
|
|
|
$withdrawMap['promote_id'] = $promoteId;
|
|
|
|
$withdrawMap['promote_id'] = $promoteId;
|
|
|
|
$withdrawMap['status'] = ['neq', -2];
|
|
|
|
$withdrawMap['status'] = ['neq', -2];
|
|
|
|
|
|
|
|
if (empty($endTime)) {
|
|
|
|
|
|
|
|
$withdrawWhere['settlement_begin_time'] = ['egt', $beginTime];
|
|
|
|
|
|
|
|
$withdrawWhere['settlement_end_time'] = ['egt', $beginTime];
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$withdrawWhere['settlement_begin_time'] = ['between', [$beginTime, $endTime]];
|
|
|
|
|
|
|
|
$withdrawWhere['settlement_end_time'] = ['between', [$beginTime, $endTime]];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$withdrawWhere['_logic'] = 'or';
|
|
|
|
|
|
|
|
$withdrawMap['_complex'] = $withdrawWhere;
|
|
|
|
$withdrawMap['settlement_begin_time'] = ['egt', $beginTime];
|
|
|
|
$withdrawMap['settlement_begin_time'] = ['egt', $beginTime];
|
|
|
|
$withdraw = M('withdraw', 'tab_')->where($withdrawMap)->order('create_time desc')->find();
|
|
|
|
$withdraws = M('withdraw', 'tab_')->field('settlement_begin_time, settlement_end_time')
|
|
|
|
if (!empty($withdraw) && $withdraw['status'] != -2) {
|
|
|
|
->where($withdrawMap)
|
|
|
|
$time = date('Y-m', $beginTime);
|
|
|
|
->order('settlement_begin_time asc, settlement_end_time asc')
|
|
|
|
$this->error("{$time}月已有订单申请提现, 无法变更分成比例,请重新选择开始时间");
|
|
|
|
->select();
|
|
|
|
|
|
|
|
if (!empty($withdraws)) {
|
|
|
|
|
|
|
|
$times = [];
|
|
|
|
|
|
|
|
$text = '';
|
|
|
|
|
|
|
|
foreach ($withdraws as $withdraw) {
|
|
|
|
|
|
|
|
$settlementBeginTime = !empty($withdraw['settlement_begin_time']) ? date('Y-m', $withdraw['settlement_begin_time']) : '';
|
|
|
|
|
|
|
|
$settlementEndTime = date('Y-m', $withdraw['settlement_end_time']);
|
|
|
|
|
|
|
|
if ($settlementBeginTime && !in_array($settlementBeginTime, $times)) {
|
|
|
|
|
|
|
|
$times[] = $settlementBeginTime;
|
|
|
|
|
|
|
|
$text .= "{$settlementBeginTime}月、";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!in_array($settlementEndTime, $times)) {
|
|
|
|
|
|
|
|
$times[] = $settlementEndTime;
|
|
|
|
|
|
|
|
$text .= "{$settlementEndTime}月、";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$text = rtrim($text, '、');
|
|
|
|
|
|
|
|
$text .= '已有订单申请提现, 无法变更分成比例,请重新选择开始时间';
|
|
|
|
|
|
|
|
$this->error($text);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|