diff --git a/Application/Home/Controller/SafeController.class.php b/Application/Home/Controller/SafeController.class.php index eba3dda20..1da2fa477 100644 --- a/Application/Home/Controller/SafeController.class.php +++ b/Application/Home/Controller/SafeController.class.php @@ -320,12 +320,38 @@ class SafeController extends BaseController{ public function safeDocument() { $time = time(); + $today = date('Y-m-d'); + $username = $_REQUEST['username']; + $tsession =S($today); + if(S($username)) { + $code = S($username); + }else { + if(!empty($tsession)) { + $num = $tsession + 1; + }else { + $num = 1; + } + $promoteRs = M('promote','tab_')->where(['account'=>$username])->getField('create_time',true); + $code = date('Ymd',$promoteRs[0])."_".$num; + } + $endTime = date('Y-m-d',strtotime('+1 year')); - $loginPromote = $this->getLoginPromote(); - $sn = date('Ymd', $loginPromote['create_time']) . '-' . strtoupper(substr(md5($loginPromote['id']), 8, 16)); $this->assign('time',date('Y-m-d',$time)); $this->assign('endTime',$endTime); - $this->assign('sn',$sn); + $this->assign('code',$code); + $this->assign('username',$username); $this->display(); } -} \ No newline at end of file + + public function ajaxAgree() { + $username = $_REQUEST['username']; + $code = $_REQUEST['code']; + $today = date('Y-m-d'); + if(empty(S($username))) { + S($username, $code); + $t = S($today); + S($today,$t+1); + } + $this->ajaxReturn(['code'=>10000]); + } +} \ No newline at end of file diff --git a/Application/Home/View/default/Query/arpu.html b/Application/Home/View/default/Query/arpu.html index f25fac533..3573fe7d1 100644 --- a/Application/Home/View/default/Query/arpu.html +++ b/Application/Home/View/default/Query/arpu.html @@ -76,47 +76,31 @@
  • 关键词说明
  • 活跃用户 - 当日在线的推广玩家 -
  • -
  • - 付费游戏数 - 当日有产生付费的游戏(区分 Android与ios) -
  • -
  • - 新增用户 - 当日新注册用户付费用户:当日游戏充值用户 + 当天登录的用户总数
  • 付费用户 - 当日游戏充值用户 + 当天付费的用户数量
  • 新增付费用户 - 注册以来首次充值的用户 -
  • -
  • - 付费总额 - 当日充值总额 + 当天付费用户中第一次付费的用户数
  • 新增付费额 - 新增注册用户充值总额 + 第一次付费的玩家当天充值总额
  • 付费率 - 单日在线玩家充值率 -
  • -
  • - 累计付费用户 - 历史累计付费注册用户(去重) + 付费用户/活跃用户
  • - ARPU - 即每个用户平均收入 + ARPU(每用户平均付费) + 当日总充值/活跃用户数
  • - ARPPU - 每付费用户平均收益 + ARPPU(付费用户的平均付费) + 当日总充值/付费用户数
  • @@ -164,17 +148,17 @@ 所属渠道 - 活跃用户 - 新增用户 - 付费用户 - 新增付费用户 - 付费总额 - 付费率 - 新增付费额 - 累计付费用户 + 活跃用户 + 新增用户 + 付费用户 + 新增付费用户 + 付费总额 + 付费率 + 新增付费额 + 累计付费用户 - ARPU - ARPPU + ARPU + ARPPU 详情 @@ -324,27 +308,6 @@ var gameId = $('#game-select').val(); } var promoteUrl = "{:U('Query/getSubPromotes')}" initPromoteSelect(promoteUrl) - - $('.keywords_information .keywords_mark').click(function() { - var that = $(this).siblings().addClass('active'); - console.log(that); - $(document).click(function(event) { - var e = event || window.event; - var target= $(e.target); - if (!target.hasClass('keywords_information') && target.closest('.keywords_information').length<1) { - that.removeClass('active'); - } - - }); - - that.find('.keywords_close').click(function() { - that.removeClass('active'); - - return false; - }); - - return false; - }); diff --git a/Application/Home/View/default/Safe/modifyBaseInfo.html b/Application/Home/View/default/Safe/modifyBaseInfo.html index feb19c12a..eb9eda853 100644 --- a/Application/Home/View/default/Safe/modifyBaseInfo.html +++ b/Application/Home/View/default/Safe/modifyBaseInfo.html @@ -235,7 +235,7 @@ - 我已仔细阅读,并同意《游戏推广服务框架协议》 + 我已仔细阅读,并同意《游戏推广服务框架协议》 diff --git a/Application/Home/View/default/Safe/safeDocument.html b/Application/Home/View/default/Safe/safeDocument.html index 9a0b21d5a..a2f05aaf3 100644 --- a/Application/Home/View/default/Safe/safeDocument.html +++ b/Application/Home/View/default/Safe/safeDocument.html @@ -9,6 +9,7 @@ and open the template in the editor. TODO supply a title +