Commit 13302a7d by 冷斌

踢人

parent 35dc4aec
...@@ -278,7 +278,7 @@ class InviteController extends HomebaseController { ...@@ -278,7 +278,7 @@ class InviteController extends HomebaseController {
$this->ajaxReturn($rs); $this->ajaxReturn($rs);
} }
if($agentid){ if($agentid){
$agentuid=M('users')->where("user_type=1 and user_activation_key='{$agentid}'")->getField('id'); $agentuid=M('users')->where("id='{$agentid}'")->getField('id');
if(!$agentuid){ if(!$agentuid){
$rs['code']=1007; $rs['code']=1007;
$rs['msg']='邀请码不正确'; $rs['msg']='邀请码不正确';
...@@ -311,6 +311,7 @@ class InviteController extends HomebaseController { ...@@ -311,6 +311,7 @@ class InviteController extends HomebaseController {
'create_time' => date("Y-m-d H:i:s"), 'create_time' => date("Y-m-d H:i:s"),
'user_status' => 1, 'user_status' => 1,
"user_type"=>2,//会员 "user_type"=>2,//会员
"pid" => $agentid,
); );
if($configPri['reg_reward']>0){ if($configPri['reg_reward']>0){
......
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