...
|
...
|
@@ -127,7 +127,6 @@ class Server extends WechatBase |
|
|
public function new_user($wechat_user,$openid,$appId,$share_id) {
|
|
|
$currentTime = time();
|
|
|
$ip = $this->request->ip(0, true);
|
|
|
cache('a',"a");
|
|
|
$userId = Db::name("user")->insertGetId([
|
|
|
'status' => 'normal',
|
|
|
'gender' => $wechat_user['sex'],
|
...
|
...
|
@@ -142,8 +141,6 @@ class Server extends WechatBase |
|
|
'type' => 1,
|
|
|
'parent_id' => $share_id,
|
|
|
]);
|
|
|
cache('userId',$userId);
|
|
|
cache('b',"b");
|
|
|
$row=Db::name("third")->insert([
|
|
|
'openid' => $openid,
|
|
|
'user_id' => $userId,
|
...
|
...
|
@@ -156,7 +153,6 @@ class Server extends WechatBase |
|
|
'login_times' => 1,
|
|
|
'more' => json_encode($wechat_user)
|
|
|
]);
|
|
|
cache('row',$row);
|
|
|
return $userId;
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|