|
|
|
@ -202,6 +202,12 @@ class PromoteGameRatioController extends ThinkController
|
|
|
|
|
'applicant' => '申请人',
|
|
|
|
|
'reviewer' => '确认人',
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
$GetData = $_GET;
|
|
|
|
|
unset($GetData['export']);
|
|
|
|
|
|
|
|
|
|
addOperationLog(['op_type'=>3,'key'=>getNowDate(),'op_name'=>'导出公会分成管理','url'=>U('PromoteGameRatio/lists',$GetData),'menu'=>'统计-结算管理-公会分成管理']);
|
|
|
|
|
|
|
|
|
|
data2csv($records,$csvTitle, $field);
|
|
|
|
|
exit;
|
|
|
|
|
}
|
|
|
|
@ -330,6 +336,9 @@ class PromoteGameRatioController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
addOperationLog(['op_type'=>1,'key'=>getPromoteName($promoteGameRatio['promote_id']).getrelationGameName($promoteGameRatio['game_id']),'op_name'=>'修改游戏分成比例申请','url'=>U('PromoteGameRatio/applyRatio',['id'=>$promoteGameRatio['id']]),'menu'=>'推广员-结算单管理-公会分成管理']);
|
|
|
|
|
|
|
|
|
|
} else {//新增
|
|
|
|
|
if (empty($params['promote_id'])) {
|
|
|
|
|
$this->error('请选择会长账号');
|
|
|
|
@ -382,6 +391,9 @@ class PromoteGameRatioController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
M()->commit();
|
|
|
|
|
|
|
|
|
|
addOperationLog(['op_type'=>0,'key'=>getPromoteName($promoteId).getrelationGameName($relationGameId),'op_name'=>'生成游戏分成比例申请','url'=>U('PromoteGameRatio/lists'),'menu'=>'推广员-结算单管理-公会分成管理-生成游戏分成比例申请']);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$this->success('保存成功', U('lists'));
|
|
|
|
@ -504,6 +516,7 @@ class PromoteGameRatioController extends ThinkController
|
|
|
|
|
$save['remark'] = $remark;
|
|
|
|
|
}
|
|
|
|
|
$result = D(self::MODEL_NAME)->where($map)->save($save);
|
|
|
|
|
// dump($result);die();
|
|
|
|
|
if ($result) {
|
|
|
|
|
$model = new PromoteGameRatioModel();
|
|
|
|
|
$promoteGameRatios = D(self::MODEL_NAME)->where(array('relation_game_id' => ['in', $relationGameIds]))->select();
|
|
|
|
@ -528,8 +541,12 @@ class PromoteGameRatioController extends ThinkController
|
|
|
|
|
|
|
|
|
|
$spendSave['selle_ratio'] = $promoteGameRatio['ratio'];
|
|
|
|
|
M('spend', 'tab_')->where($spendMap)->save($spendSave);
|
|
|
|
|
addOperationLog(['op_type'=>1,'key'=>getPromoteName($promoteGameRatio['promote_id']).getrelationGameName($promoteGameRatio['relation_game_id']),'op_name'=>'审核游戏分成比例订单','url'=>U('PromoteGameRatio/lists'),'menu'=>'推广员-结算单管理-公会分成管理-审核通过']);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
addOperationLog(['op_type'=>1,'key'=>getPromoteName($promoteGameRatio['promote_id']).getrelationGameName($promoteGameRatio['relation_game_id']),'op_name'=>'审核游戏分成比例订单','url'=>U('PromoteGameRatio/lists'),'menu'=>'推广员-结算单管理-公会分成管理-审核拒绝']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$this->success('操作成功');
|
|
|
|
|