Commit 86f5df80 by 冷斌

踢人

parent 889c5b81
...@@ -10,7 +10,7 @@ class InviteController extends HomebaseController { ...@@ -10,7 +10,7 @@ class InviteController extends HomebaseController {
$agentid = checkNull(I("agentid")); $agentid = checkNull(I("agentid"));
if($agentid){ if($agentid){
$agentuid=M('users')->where("id = {$agentid}")->getField('id'); $agentuid=M('users')->where("id = {$agentid}")->find();
if(!$agentuid){ if(!$agentuid){
$this->assign("reason",'邀请码不正确'); $this->assign("reason",'邀请码不正确');
$this->display(':error'); $this->display(':error');
......
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