diff --git a/Application/Admin/Common/function.php b/Application/Admin/Common/function.php index 94890ef7a..2e960f9fa 100644 --- a/Application/Admin/Common/function.php +++ b/Application/Admin/Common/function.php @@ -1091,3 +1091,20 @@ function addSubsiteWhere(&$map,$field){ $map[$field] = ["in",[0,PARTNER_TYPE]]; } } + +/** + * 获取商务专员 + */ +function getAffairMember() { + + $data = M("member") + ->field("access.uid admin_id,real_name") + ->join("left join sys_auth_group_access access on sys_member.uid = access.uid") + ->join("left join sys_auth_group auth on access.group_id=auth.id") + ->where(['title' => ['like', '%商务%']]) + ->select(); + + return $data; + +} + diff --git a/Application/Admin/Controller/BusinessAffairsAwardController.class.php b/Application/Admin/Controller/BusinessAffairsAwardController.class.php new file mode 100644 index 000000000..b398a9e50 --- /dev/null +++ b/Application/Admin/Controller/BusinessAffairsAwardController.class.php @@ -0,0 +1,311 @@ + + */ +class BusinessAffairsAwardController extends ThinkController +{ + + private $model; + + public function _initialize() + { + $this->model = M("business_affairs_award","tab_"); + parent::_initialize(); + } + + /** + *商务奖金比例列表 + */ + public function lists() + { + $params = I('get.'); + $page = $params['p'] ? intval($params['p']) : 1; + $row = $params['row'] ? intval($params['row']) : 10; + + $data = $this->model->page($page, $row)->select(); + + foreach ($data as $key => $value) { + + if($value['end_amount'] == '0') { + $data[$key]['end_amount'] = '永久'; + } + + } + + if(IS_ROOT){ + $this->assign('add_check',true); + }else { + $exportRule = strtolower(MODULE_NAME . '/' . CONTROLLER_NAME . '/' . ACTION_NAME . "_add_check"); + + $this->assign('add_check', $this->checkRule($exportRule, array('in', '1,2'))); + } + + $count = $this->model->where("1=1")->count(); + + $page = set_pagination($count, $row,$params); + if($page) { + $this->assign('_page', $page); + } + + $this->assign("list",$data); + + $this->display(); + + } + + public function add() + { + if(IS_POST) { + + if (!$_POST['ratio']) { + $this->ajaxReturn(["msg"=>"请填写抽成比例","code"=>0]); + } + + if(!$_POST['start_amount'] && $_POST['start_amount']!='0') { + $this->ajaxReturn(["msg"=>"请填写起始流水","code"=>0]); + } + + if($_POST['start_amount'] >= $_POST['end_amount']&&$_POST['end_amount']) { + $this->ajaxReturn(["msg"=>"起始流水必须小于结束流水","code"=>0]); + } + + $amount_start = $_POST['start_amount']; + $amount_end = $_POST['end_amount']; + + $busunessData = M("business_affairs_award", "tab_") + ->where("((start_amount<{$amount_start} and (end_amount >{$amount_start} or end_amount=0)) or (start_amount<{$amount_end} and (end_amount >={$amount_end} or end_amount=0)) or ((end_amount>{$amount_start} or end_amount=0) and (end_amount <={$amount_end} and end_amount!=0)))") + ->select(); + + if ($busunessData) { + $this->ajaxReturn(["msg"=>"流水段已经存在","code"=>0]); + } + $add_data = $_POST; + $add_data['create_time'] = time(); + + !$add_data['end_amount']?($add_data['end_amount']=0):''; + + $this->model->add($add_data); + + $this->ajaxReturn(["msg"=>"添加成功","code"=>1,"url"=>U("lists")]); + } else { + $this->display(); + } + } + + public function edit() + { + $id = $_REQUEST["id"]; + if(IS_POST) { + + if (!$_POST['ratio']) { + $this->ajaxReturn(["msg"=>"请填写抽成比例","code"=>0]); + } + + if(!$_POST['start_amount'] && $_POST['start_amount']!='0') { + $this->ajaxReturn(["msg"=>"请填写起始流水","code"=>0]); + } + + if($_POST['start_amount'] >= $_POST['end_amount']&&$_POST['end_amount']) { + $this->ajaxReturn(["msg"=>"起始流水必须小于结束流水","code"=>0]); + } + + $amount_start = $_POST['start_amount']; + $amount_end = $_POST['end_amount']; + + $busunessData = M("business_affairs_award", "tab_") + ->where("id != {$id} and ((start_amount<{$amount_start} and (end_amount >{$amount_start} or end_amount=0)) or (start_amount<{$amount_end} and (end_amount >={$amount_end} or end_amount=0)) or ((end_amount>{$amount_start} or end_amount=0) and (end_amount <={$amount_end} and end_amount!=0)))") + ->select(); + + if ($busunessData) { + $this->ajaxReturn(["msg"=>"流水段已经存在","code"=>0]); + } + + $add_data = $_POST; + $add_data['update_time'] = time(); + + !$add_data['end_amount']?($add_data['end_amount']=0):''; + + $this->model->where(['id'=>$id])->save($add_data); + + $this->ajaxReturn(["msg"=>"修改成功","code"=>1,"url"=>U("lists")]); + } else { + + $data = $this->model->where(['id'=>$id])->find(); + + $data['start_amount'] = round($data['start_amount'],2); + $data['end_amount'] = round($data['end_amount'],2); + + + $this->assign("data",$data); + + $this->display(); + } + } + + + public function del() + { + if(!isset($_REQUEST['id'])){ + $this->error('参数错误'); + } + $id = $_REQUEST['id']; + $res = $this->model->where("id='{$id}'")->delete(); + if($res !== false){ + + $this->success('删除成功',U("lists")); + + }else{ + $this->error('删除错误'); + } + } + + public function businessAffairsList() { + + $check_quarter = ["03","06","09","12"]; + + $map = []; + + $params = I('get.'); + $page = $params['p'] ? intval($params['p']) : 1; + $row = $params['row'] ? intval($params['row']) : 10; + + if($_REQUEST['time']) { + $map['time'] = $_REQUEST['time']; + } + + if ($_REQUEST['game_belong_name']) { + $map['game_belong_name'] = ['like',"%{$_REQUEST['game_belong_name']}%"]; + } + + if ($_REQUEST['relation_game_name']) { + $map['relation_game_name'] = ['like',"%{$_REQUEST['game_name']}%"]; + } + + if ($_REQUEST['verify_status'] || $_REQUEST['verify_status'] == '0') { + $map['verify_status'] = ['like',"%{$_REQUEST['verify_status']}%"]; + } + + $data = M("business_affairs_award_pool","tab_") + ->where($map); + + if (!$_REQUEST['export']) { + $data->page($page, $row); + } + $data = $data->order("time desc")->select(); + + foreach ($data as $key => $value) { + + $detail = '未审核'; + + if ($value['verify_status'] == 1) { + $detail = '审批通过'; + } elseif($value['verify_status'] == 2) { + $detail = '审批拒绝'; + } + + if($_REQUEST['export']) { + $data[$key]['time'] = '`'.$value['time']; + $detail .= "\n"; + }else { + $detail .= ""; + } + + $data[$key]['total_quarter_bonus_pool'] = round($value['quarter_bonus_pool'] * 0.25,2); + + $time = date("m",strtotime($value['time'])); + if (!in_array($time,$check_quarter)) { + $data[$key]["quarter_award"] = "0.00"; + } + + $data[$key]['person_award'] = $data[$key]['quarter_award'] + $value['month_award']; + + if ($value['verify_status']) { + $data[$key]['verify_detail'] = $detail.date('Y-m-d H:i:s',$value['verify_time']); + } else { + $data[$key]['verify_detail'] = '未审核'; + } + $data[$key]['ratio'] = round(($value['month_award']/$value['pay_amount']*100),2)."%"; + + } + + if ($_REQUEST['export']) { + + $title = ['time' => '月份', + 'relation_game_name' => '游戏名称', + 'pay_amount' => '产品流水', + 'ratio' => '抽成比例', + 'game_belong_name' => '奖励归属', + 'month_bonus_pool' => '本月奖金池总额', + 'total_quarter_bonus_pool'=>'本季度累计激励', + 'quarter_bonus_pool' => '个人发放激励', + 'month_award' => '流水个人奖金', + 'person_award' => '个人奖金总额', + 'verify_detail' => '审批状态']; + + data2csv($data, '商务奖金汇总', $title); + } + + $count = M("business_affairs_award_pool","tab_") + ->where($map) + ->count(); + + if(IS_ROOT){ + $this->assign('verify_check',true); + $this->assign('caculate_check',true); + }else { + $exportRule = strtolower(MODULE_NAME . '/' . CONTROLLER_NAME . '/' . ACTION_NAME . "_verify_check"); + $caculate_check = strtolower(MODULE_NAME . '/' . CONTROLLER_NAME . '/' . ACTION_NAME . "_caculate_check"); + + $this->assign('verify_check', $this->checkRule($exportRule, array('in', '1,2'))); + $this->assign('caculate_check', $this->checkRule($caculate_check, array('in', '1,2'))); + } + + $page = set_pagination($count, $row,$params); + if($page) { + $this->assign('_page', $page); + } + + $this->assign("list",$data); + + $this->display(); + + } + + public function verify() { + + $status = $_REQUEST['status']; + + $ids = $_REQUEST['ids']; + + if ($ids) { + + $is_save = M("business_affairs_award_pool","tab_") + ->where(['id'=>['in',$ids]]) + ->save(['verify_status'=>$status,'verify_time'=>time()]); + + if($is_save) { + $this->ajaxReturn(['status'=>1,'info'=>'操作成功']); + } else { + $this->ajaxReturn(['status'=>0,'info'=>'操作失败']); + } + + } else { + + $this->ajaxReturn(['status'=>0,'info'=>'数据错误']); + + } + } + + public function reCaculate() + { + + exec("source /etc/profile;cd " . ROOTTT . ";php " . SUBSITE_INDEX . " timing/setbusinessAffairsAward > /dev/null &"); + + $this->ajaxReturn(['status' => 1]); + } + +} diff --git a/Application/Admin/Controller/GameController.class.php b/Application/Admin/Controller/GameController.class.php index 416f82fd6..9ac6db3fb 100644 --- a/Application/Admin/Controller/GameController.class.php +++ b/Application/Admin/Controller/GameController.class.php @@ -224,6 +224,12 @@ class GameController extends ThinkController $_POST['download_ways'] = $gameService->getDownLoadWaysValue($downloadWays); + $realname = M("member") + ->field("real_name") + ->where(['uid' => I('post.game_belong_id')]) + ->find()['real_name']; + $_POST['game_belong_name'] =$realname; + $game = D(self::model_name);//M('$this->$model_name','tab_'); $res = $game->update(); if (!$res) { @@ -415,6 +421,15 @@ ADD COLUMN `kefu_qq` varchar(255) NULL DEFAULT '' COMMENT 'kefu_qq_type为2 时 $_POST['pay_config'] = json_encode($_POST['pay_config']); $_POST['download_ways'] = $gameService->getDownLoadWaysValue($downloadWays); + + + $realname = M("member") + ->field("real_name") + ->where(['uid' => I('post.game_belong_id')]) + ->find()['real_name']; + $_POST['game_belong_name'] =$realname; + + unset($_POST['apply_auth']); $res = $gameModel->update(); @@ -466,8 +481,11 @@ ADD COLUMN `kefu_qq` varchar(255) NULL DEFAULT '' COMMENT 'kefu_qq_type为2 时 $otherData['flooring_page_video_cover'] = $sibling['flooring_page_video_cover']; $otherData['kefu_qq'] = I('post.kefu_qq'); $otherData['kefu_qq_type'] = I('post.kefu_qq_type'); + $otherData['data_share'] = I('post.data.share'); + $otherData['game_belong_id'] = I('post.game_belong_id'); + $otherData['game_belong_name'] = $realname; $otherData['data_share'] = I('post.data_share'); - + M('Game', 'tab_')->data($otherData)->where(array('id' => $another['id']))->save(); //同时修改代充游戏折扣 $set_fidel['status'] = 1; @@ -539,7 +557,7 @@ ADD COLUMN `kefu_qq` varchar(255) NULL DEFAULT '' COMMENT 'kefu_qq_type为2 时 } } $this->assign('sociatygames',$sociatyGamesData); - + $data['introduction'] = str_replace("~~", "\r\n", $data['introduction']); $this->assign('data', $data); $this->assign('game_id', $id); diff --git a/Application/Admin/Controller/TestingResourceController.class.php b/Application/Admin/Controller/TestingResourceController.class.php index 1668dc596..6faf72c8c 100644 --- a/Application/Admin/Controller/TestingResourceController.class.php +++ b/Application/Admin/Controller/TestingResourceController.class.php @@ -13,7 +13,7 @@ use Base\Service\GameService; class TestingResourceController extends ThinkController { - public function index() + public function roles() { $params = I('get.'); $gameId = $params['game_id'] ?? 0; @@ -458,6 +458,7 @@ class TestingResourceController extends ThinkController ->find(); if ($bindingRole) { $bindingRole['binding_time'] = $binding['create_time']; + $bindingRole['share_game_ids'] = $gameIds; } } @@ -467,7 +468,6 @@ class TestingResourceController extends ThinkController $hasItf = $gameSetting ? $gameSetting['has_itf'] : 0; } - $testingResourceService = new TestingResourceService(); $quota = $testingResourceService->getRemainQuota($role, $bindingRole); diff --git a/Application/Admin/Controller/TimingController.class.php b/Application/Admin/Controller/TimingController.class.php index f106bb3ac..d167bf035 100644 --- a/Application/Admin/Controller/TimingController.class.php +++ b/Application/Admin/Controller/TimingController.class.php @@ -18,6 +18,8 @@ use Base\Factory\BaseFactory; */ class TimingController extends AdminController { + private $affairRatioList = []; + public function _initialize(){ } @@ -1555,4 +1557,234 @@ class TimingController extends AdminController { $leavePercentageInstance->leaveTiming(); } + + + public function setbusinessAffairsAward() { + + echo date("Y-m-d H:i:s")."----------------------商务奖金计算----------------------\n"; + +// dump($this->businessAffairRatio(3471300));die(); + + + if (!$_REQUEST['time']) { + $time = time(); + } else { + $time = strtotime($_REQUEST['time']); + + $time = strtotime(date('Y-m',strtotime(date('Y',$time).'-'.(date('m',$time)+1).'-01'))); + + } + + list($becomeTimeList,$becomeTimeCount) = $this->getAffairList(date('Y-m',strtotime(date('Y',$time).'-'.(date('m',$time)-1).'-01'))); +// dump([$becomeTimeList,$becomeTimeCount]);die(); + + $time1 = date('Y-m',strtotime(date('Y',$time).'-'.(date('m',$time)-1).'-01')); + $time2 = date('Y-m',strtotime(date('Y',$time).'-'.(date('m',$time)-2).'-01')); + $time3 = date('Y-m',strtotime(date('Y',$time).'-'.(date('m',$time)-3).'-01')); + + $lasttime = [$time2,$time3]; + + $tempoparyData = M("spend","tab_") + ->field("tab_spend.*,from_unixtime(payed_time,'%Y-%m') time,from_unixtime(payed_time,'%Y') year,from_unixtime(payed_time,'%m') month,relation_game_id,relation_game_name,game_belong_id,game_belong_name") + ->join("left join tab_game on tab_game.id=tab_spend.game_id") + ->where(['tab_spend.pay_status'=>1,'game_belong_id'=>['neq',0],'pay_way' => ['egt', 0]]) + ->select(false); + + $lastdata = M()->table("({$tempoparyData}) a") + ->field("*,sum(pay_amount) pay_amount") + ->where(['time'=>['in',$lasttime]]) + ->group("time,relation_game_id,game_belong_id") + ->select(); + + $handleData = []; + + foreach ($lastdata as $key => $value) { + $handleData[$value['time'].$value['game_belong_id'].$value['relation_game_id']] = $value; + } + + $data = M()->table("({$tempoparyData}) a") + ->field("sum(pay_amount) pay_amount,time,year,month,relation_game_id,relation_game_name,game_belong_id,game_belong_name") + ->where(['time'=>$time1]) + ->group("time,relation_game_id,game_belong_id") + ->select(); + + $sum_amount = M()->table("({$tempoparyData}) a") + ->field("sum(pay_amount) pay_amount") + ->where(['time'=>$time1]) + ->find()['pay_amount']; + //判断是不是初次 + $is_hav = M("business_affairs_award_pool","tab_")->where(['time'=>$time2])->find(); + + $month_bonus_pool = 0; + $quarter_bonus_pool = 0; + + foreach($data as $key => $value) { + + $month_bonus_pool += $value['pay_amount']; + +// if ($is_hav) { +// for($i = (($value['month']%3)?(($value['month']%3)-1):2); $i > 0; $i--) { +// +// $date = date("Y-m",strtotime($value['year'].'-'.(($value['month']-$i)>0?($value['month']-$i):($value['month']-$i+12)))); +// +// } +// } + + } + + $last_amount = M("business_affairs_award_pool","tab_")->where(['time'=>['in',$lasttime]])->group("month_bonus_pool")->select(false); + + $last_amount = M()->table("({$last_amount}) a")->sum("month_bonus_pool"); + + $month_bonus_pool = $this->businessAffairRatio($month_bonus_pool); + $quarter_bonus_pool = $month_bonus_pool + $last_amount; + + foreach ($data as $key => $value){ + + echo "{$value['time']},{$value['game_belong_name']},{$value['pay_amount']}\n"; + + $value['month_bonus_pool'] = $month_bonus_pool; + + $value['quarter_bonus_pool'] = $quarter_bonus_pool; + + unset($value['year']); + unset($value['month']); + + $value['quarter_award'] = $value['quarter_bonus_pool']*0.25*(($becomeTimeList[$value['game_belong_id']]?$becomeTimeList[$value['game_belong_id']]:0)/$becomeTimeCount); + + $is_assistant = M("ucenter_member") + ->field("sys_ucenter_member.id admin_id,become_time") + ->join("left join sys_auth_group_access access on sys_ucenter_member.id = access.uid") + ->join("left join sys_auth_group auth on access.group_id=auth.id") + ->where(['title' => ['like', '%助理%'],'sys_ucenter_member.id'=>$value['game_belong_id']]) + ->select(); + + if (!$is_assistant) { + $value['month_award'] = ($value['pay_amount']/$sum_amount)*$value['month_bonus_pool']*0.7; + } else { + $value['month_award'] = ($value['pay_amount']/$sum_amount)*$value['month_bonus_pool']*0.05; + } + + $value['month_award'] = round($value['month_award'],2); + $value['quarter_award'] = round($value['quarter_award'],2); + + if (!$becomeTimeCount) { + $value['month_award'] = 0; + } + + $value['person_award'] = $value['quarter_award'] + $value['month_award']; + + $hav_value = M("business_affairs_award_pool","tab_") + ->where([ + 'time'=>$value['time'], + 'relation_game_id'=>$value['relation_game_id'], + 'game_belong_id'=>$value['game_belong_id'] + ]) + ->find(); + + if ($hav_value) { + M("business_affairs_award_pool","tab_") + ->where(['time'=>$value['time'], + 'relation_game_id'=>$value['relation_game_id'], + 'game_belong_id'=>$value['game_belong_id']]) + ->save($value); + } else { + M("business_affairs_award_pool","tab_")->add($value); + } + + } + + echo date("Y-m-d H:i:s")."----------------------商务奖金计算----------------------\n"; + + } + + //获取转正月数列表 + private function getAffairList($now) { + + $all = 0; + + $affairList = M("ucenter_member") + ->field("sys_ucenter_member.id admin_id,become_time") + ->join("left join sys_auth_group_access access on sys_ucenter_member.id = access.uid") + ->join("left join sys_auth_group auth on access.group_id=auth.id") + ->where(['title' => ['like', '%商务%']]) + ->select(); + + $return = []; + + foreach($affairList as $key => $value) { + + if ($value['become_time']) { + $become_time = date("Y-m",$value['become_time']); + } else { + $become_time = $now; + } + + $return[$value['admin_id']] = 0; + + if ($now > $become_time && $value['become_time']) { + $return[$value['admin_id']] = $this->diffDate($become_time,$now); + } + + $all += $return[$value['admin_id']]; + + } + + return [$return,$all]; + + } + + function diffDate($date1,$date2) + { + if(strtotime($date1)>strtotime($date2)){ + $tmp=$date2; + $date2=$date1; + $date1=$tmp; + } + list($Y1,$m1,$d1)=explode('-',$date1); + list($Y2,$m2,$d2)=explode('-',$date2); + $y=$Y2-$Y1; + $m=$m2-$m1; + $d=$d2-$d1; + if($d<0){ + $d+=(int)date('t',strtotime("-1 month $date2")); + $m--; + } + if($m<0){ + $m+=12; + $y--; + } + return $m+1; + } + + // + private function businessAffairRatio($amount = 0) { + if (!$amount) { + return 0; + } + + $returnAmount = 0; + + if (!$this->affairRatioList) { + $this->affairRatioList = M("business_affairs_award","tab_")->where("1=1")->group("start_amount")->select(); + } + + foreach ($this->affairRatioList as $key => $value) { + + $start_amount = $value['start_amount']; + $end_amount = $value['end_amount']; + $ratio = $value['ratio']; + + if ($amount > $start_amount&&($amount<=$end_amount||floor($end_amount)=='0')) { + $returnAmount += ($amount-$start_amount)*($ratio/100); + } elseif($amount > $start_amount &&($amount>$end_amount&&floor($end_amount)!='0')) { + $returnAmount += ($end_amount-$start_amount)*($ratio/100); + } + + } + + return $returnAmount; + + } + } diff --git a/Application/Admin/Controller/UserController.class.php b/Application/Admin/Controller/UserController.class.php index 39bca125e..1abd428b4 100644 --- a/Application/Admin/Controller/UserController.class.php +++ b/Application/Admin/Controller/UserController.class.php @@ -453,6 +453,8 @@ class UserController extends AdminController $info['mobile'] = isset($_POST['mobile']) ? $_POST['mobile'] : ''; $_POST['apply_leave_time'] ? ($info['apply_leave_time'] = strtotime($_POST['apply_leave_time'])):''; $_POST['leave_time'] ? ($info['leave_time'] = strtotime($_POST['leave_time'])+86399):''; + $_POST['become_time'] ? ($info['become_time'] = strtotime($_POST['become_time'])):''; + if($_POST['work_status']) { $info['work_status'] = $_POST['work_status']; } @@ -478,7 +480,7 @@ class UserController extends AdminController "url"=>U("User/index",array("nickname"=>$_POST['username'])) )); - if ((strtotime($_POST['leave_time'])+86399)where($map)->save(['work_status'=>1]); } else { $Member->where($map)->save(['work_status'=>0]); @@ -495,6 +497,7 @@ class UserController extends AdminController $Member['apply_leave_time']?($Member['apply_leave_time'] = date("Y-m-d",$Member['apply_leave_time'])):($Member['apply_leave_time']=''); $Member['leave_time']?($Member['leave_time'] = date("Y-m-d",$Member['leave_time'])):($Member['leave_time']=''); + $Member['become_time']?($Member['become_time'] = date("Y-m-d",$Member['become_time'])):($Member['become_time']=''); $data = D('Member')->where(array('uid' => $_GET['id']))->find(); diff --git a/Application/Admin/View/BusinessAffairsAward/add.html b/Application/Admin/View/BusinessAffairsAward/add.html new file mode 100644 index 000000000..7bf2d5480 --- /dev/null +++ b/Application/Admin/View/BusinessAffairsAward/add.html @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + 新增游戏分成比例模板 + + + + + + + + + + + + + + + *流水区间: + + + + - + + + + + + *抽成比例: + + 抽成比例: + + % + + + + + + + + + 保存 + + + 返回 + + + + + + + + + + + if(C('COLOR_STYLE')=='blue_color') echo ''; + + + + + + + diff --git a/Application/Admin/View/BusinessAffairsAward/businessAffairsList.html b/Application/Admin/View/BusinessAffairsAward/businessAffairsList.html new file mode 100644 index 000000000..afdcb886a --- /dev/null +++ b/Application/Admin/View/BusinessAffairsAward/businessAffairsList.html @@ -0,0 +1,424 @@ + + + + + + + + + + + + + 商务奖金汇总 + + + + + + + + + + + + + 重算 + + + + + + 搜索: + + + + + + + 游戏名称 + + + + + + + + + 请选择审核状态 + 未审核 + 审核通过 + 审核拒绝 + + + + + + + 搜索 + + + + + + + + + + + 审核通过 + 审核拒绝 + + + + + + + + + + + + + + + 月份 + 游戏名称 + 产品流水 + 抽成比例 + 奖金归属人 + 本月奖金池总额 + 本季度累计激励 + 个人发放激励 + 流水个人奖金 + 个人奖金总额 + 审批状态 + + + + + + + + aOh! 暂时还没有内容! + + + + + + + {$data.time|default='无'} + {$data.relation_game_name|default='无'} + {$data.pay_amount|default='0'} + {$data.ratio|default='--'} + {$data.game_belong_name|default='无'} + {$data.month_bonus_pool|default='0'} + {$data.total_quarter_bonus_pool|default='0'} + {$data.quarter_award|default='0'} + {$data.month_award|default='0'} + {$data.person_award|default='0'} + {$data.verify_detail|default='无'} + + + + + + + + + + + + + 导出 + {$_page|default=''} + + + + + + + + if(C('COLOR_STYLE')=='blue_color') echo ''; + + + + + diff --git a/Application/Admin/View/BusinessAffairsAward/edit.html b/Application/Admin/View/BusinessAffairsAward/edit.html new file mode 100644 index 000000000..e79022ee1 --- /dev/null +++ b/Application/Admin/View/BusinessAffairsAward/edit.html @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + 新增游戏分成比例模板 + + + + + + + + + + + + + + + *流水区间: + + + + - + + + + + + *抽成比例: + + + % + + + + + + + + + + 保存 + + + 返回 + + + + + + + + + + + if(C('COLOR_STYLE')=='blue_color') echo ''; + + + + + + + diff --git a/Application/Admin/View/BusinessAffairsAward/lists.html b/Application/Admin/View/BusinessAffairsAward/lists.html new file mode 100644 index 000000000..a45d39d3b --- /dev/null +++ b/Application/Admin/View/BusinessAffairsAward/lists.html @@ -0,0 +1,159 @@ + + + + + + + + + + + 商务奖金比例 + + + + + + + + + + 新增 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 序号 + 流水区间 + 抽成比例 + 操作 + + + + + + + aOh! 暂时还没有内容! + + + + {$index} + {$data.start_amount}-{$data.end_amount} + {$data.ratio}% + + + 编辑 + 删除 + + ---- + + + + + + + + + + + + 导出 + + {$_page|default=''} + + + + + + + + + diff --git a/Application/Admin/View/Game/add.html b/Application/Admin/View/Game/add.html index 199f3a918..0cf95aabd 100644 --- a/Application/Admin/View/Game/add.html +++ b/Application/Admin/View/Game/add.html @@ -60,6 +60,18 @@ + + 游戏归属: + + + 无 + + {$vo.real_name} + + + + + 运营平台 diff --git a/Application/Admin/View/Game/edit.html b/Application/Admin/View/Game/edit.html index 2e0c743ba..ee9a72c58 100644 --- a/Application/Admin/View/Game/edit.html +++ b/Application/Admin/View/Game/edit.html @@ -88,6 +88,22 @@ + + 游戏归属: + + + 无 + + + {$vo.real_name} + + {$vo.real_name} + + + + + + 运营平台 diff --git a/Application/Admin/View/Game/lists.html b/Application/Admin/View/Game/lists.html index f846e5604..e689f0f99 100644 --- a/Application/Admin/View/Game/lists.html +++ b/Application/Admin/View/Game/lists.html @@ -160,6 +160,7 @@ text-indent:0; 下载次数 排序设置 添加关联 + 游戏归属 操作 @@ -246,6 +247,7 @@ text-indent:0; 该游戏关联数据错误 + {$data.game_belong_name|default='无'} 编辑 删除 diff --git a/Application/Admin/View/TestingResource/apply.html b/Application/Admin/View/TestingResource/apply.html index a46acb912..557f12371 100644 --- a/Application/Admin/View/TestingResource/apply.html +++ b/Application/Admin/View/TestingResource/apply.html @@ -692,7 +692,7 @@ body { success: function(result){ if (result.status == 1) { layer.msg(result.message, function(){ - parent.window.location.href = "{:U('index')}" + parent.window.location.href = "{:U('roles')}" }) } else { layer.msg(result.message) diff --git a/Application/Admin/View/TestingResource/index.html b/Application/Admin/View/TestingResource/roles.html similarity index 99% rename from Application/Admin/View/TestingResource/index.html rename to Application/Admin/View/TestingResource/roles.html index 7ab71d248..eb3f96db2 100644 --- a/Application/Admin/View/TestingResource/index.html +++ b/Application/Admin/View/TestingResource/roles.html @@ -66,7 +66,7 @@ - 测试账号 + 测试账号角色 @@ -127,7 +127,7 @@ - 搜索 + 搜索 @@ -273,7 +273,7 @@