Commit c1b3ad9f by 冷斌

踢人

parent 86f5df80
......@@ -9,17 +9,16 @@ class InviteController extends HomebaseController {
function index(){
$agentid = checkNull(I("agentid"));
$user = [];
if($agentid){
$agentuid=M('users')->where("id = {$agentid}")->find();
if(!$agentuid){
$user=M('users')->where("id = {$agentid}")->find();
if(!$user){
$this->assign("reason",'邀请码不正确');
$this->display(':error');
exit;
}
}
var_dump($agentid);
die;
$this->assign('agentid',$agentid);
$this->assign('user',$user);
$this->display();
}
......
......@@ -19,7 +19,7 @@
</div>
<!-- 邀请人部分 -->
<div class="InviterBox">
<img src="../img/tx.png" class="InviterImg" >
<img src="{$user['avatar']}" class="InviterImg" >
<p class="Inviter_number">趣秀伙伴456210</p>
<p class="inviteTxt">邀请您下载使用趣秀直播</p>
</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