Commit c1b3ad9f by 冷斌

踢人

parent 86f5df80
...@@ -9,17 +9,16 @@ class InviteController extends HomebaseController { ...@@ -9,17 +9,16 @@ class InviteController extends HomebaseController {
function index(){ function index(){
$agentid = checkNull(I("agentid")); $agentid = checkNull(I("agentid"));
$user = [];
if($agentid){ if($agentid){
$agentuid=M('users')->where("id = {$agentid}")->find(); $user=M('users')->where("id = {$agentid}")->find();
if(!$agentuid){ if(!$user){
$this->assign("reason",'邀请码不正确'); $this->assign("reason",'邀请码不正确');
$this->display(':error'); $this->display(':error');
exit; exit;
} }
} }
var_dump($agentid); $this->assign('user',$user);
die;
$this->assign('agentid',$agentid);
$this->display(); $this->display();
} }
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</div> </div>
<!-- 邀请人部分 --> <!-- 邀请人部分 -->
<div class="InviterBox"> <div class="InviterBox">
<img src="../img/tx.png" class="InviterImg" > <img src="{$user['avatar']}" class="InviterImg" >
<p class="Inviter_number">趣秀伙伴456210</p> <p class="Inviter_number">趣秀伙伴456210</p>
<p class="inviteTxt">邀请您下载使用趣秀直播</p> <p class="inviteTxt">邀请您下载使用趣秀直播</p>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment