Commit 0b0e9f87 authored by zw's avatar zw

注册

parent 79f8cc6e
......@@ -66,13 +66,13 @@ class Register extends Basic
{
header('Access-Control-Allow-Origin:*');
$params = $this->params;
/* $params = array(
"phone" => "16617616471",
"device_id" => "1111",
"code" => 1231,
"wx_union_id" => "oNOSMwfDsUAXGdq0B-NzNYSep_xw", //false
"referrer_id" => 1, //邀请人id 经纪人or客户 也用于判断是否是分享出去的请求
"referrer_source" => 20, //false
/* $params = array(
"phone" => "18516077520",
"device_id" => "154235127061783",
"code" => 8977,
"wx_union_id" => "oxROBwAVrJV7Y_z5wZWKN8HuF55Q", //false
"referrer_id" => 94, //邀请人id 经纪人or客户 也用于判断是否是分享出去的请求
"referrer_source" => 10, //false
);*/
//苹果审核
......
......@@ -97,7 +97,9 @@ class RegisterService
return [ "code" => 101, "data" => "没有找到授权信息" ];
}
//todo 此处有个关系,解绑上一个的id
$this->userModel->unbundlingWx([ "buyer_id" => $buyer_id ]);
if($buyer_id > 0){
$this->userModel->unbundlingWx([ "buyer_id" => $buyer_id ]);
}
}
//判断邀请关系 if邀请人是用户的话则此客户的盘方修改为邀请人的盘方
......
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