From 60f2c62fe6f9dc057358b73dde403cf4a3efada4 Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Tue, 17 Dec 2019 11:43:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E9=93=BE=E6=8E=A5=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=90=8E=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/PromoteController.class.php | 37 +++ Application/Admin/View/Promote/linkInfo.html | 235 ++++++++++++++++++ 2 files changed, 272 insertions(+) create mode 100644 Application/Admin/View/Promote/linkInfo.html 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 ''; + + + + + + +