diff --git a/Application/Admin/Controller/PromoteController.class.php b/Application/Admin/Controller/PromoteController.class.php index 27234fe1a..468b34304 100644 --- a/Application/Admin/Controller/PromoteController.class.php +++ b/Application/Admin/Controller/PromoteController.class.php @@ -6,6 +6,7 @@ use User\Api\PromoteApi; use User\Api\UserApi; use Org\XiguSDK\Xigu; use Base\Service\PromoteService; +use Base\Service\ApplyService; /** * 后台首页控制器 @@ -1034,4 +1035,40 @@ class PromoteController extends ThinkController $this->success('保存成功', U("promote/shortCutMenu")); } + + public function linkInfo() { + $link = $_REQUEST['link']; + $strCode = "code/"; + $link_type = $_REQUEST['link_type']; + $linkArr = strstr ( $link , $strCode ); + $length = strlen($strCode); + $code = substr($linkArr, $length); + //$this->display(); + $applyServe = new ApplyService(); + $codeRes = $applyServe->decodeApplyCode($code); + $promote_id = $codeRes['promote_id']; + $game_id = $codeRes["game_id"]; + $promoteInfo = M('promote','tab_')->field('account')->where(['id'=>$promote_id])->find(); + $params['account'] = $promoteInfo['account']; + $game_id = $codeRes['game_id']; + $gameInfo = M('game','tab_')->field('game_name')->where(['id'=>$game_id])->find(); + $params['game_name'] = $gameInfo['game_name']; + $expires_in = $codeRes['expires_in']; + if($expires_in == 0) { + $params['expires_in'] = "永久性"; + }else { + $params['expires_in'] = $expires_in; + } + $params['created_at'] = $codeRes['created_at']; + if($codeRes['type'] == 1) { + $params['type'] = '复制下载链接'; + }else if($codeRes['type'] == 2) { + $params['type'] = '落地页链接'; + } + if($codeRes['type'] == $link_type || $link_type == 0) { + $this->assign('params',$params); + } + $this->display(); + + } } diff --git a/Application/Admin/View/Promote/linkInfo.html b/Application/Admin/View/Promote/linkInfo.html new file mode 100644 index 000000000..9ba1597d3 --- /dev/null +++ b/Application/Admin/View/Promote/linkInfo.html @@ -0,0 +1,235 @@ + + + + + + + + + + +
+ + +
+ +
+ +
+
+ +
+ + + +
+ + +
+ + +
+ 搜索 +
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
推广员账号游戏名称有效时间申请时间链接类型
aOh! 暂时还没有内容!
{$params['account']}{$params['game_name']}{$params['expires_in']}{$params['created_at']}{$params['type']}
+
+
+ +
+ + + +if(C('COLOR_STYLE')=='blue_color') echo ''; + + + + + + +