...
|
...
|
@@ -130,7 +130,7 @@ class Server extends WechatBase |
|
|
cache('a',"a");
|
|
|
$userId = Db::name("user")->fetchSql()->insertGetId([
|
|
|
'status' => 'normal',
|
|
|
'gender' => $wechat_user['original']['sex'],
|
|
|
'gender' => $wechat_user['sex'],
|
|
|
'nickname' => $wechat_user['nickname'],
|
|
|
'avatar' => $wechat_user['avatar'],
|
|
|
'joinip' => $ip,
|
...
|
...
|
@@ -142,8 +142,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 +154,6 @@ class Server extends WechatBase |
|
|
'login_times' => 1,
|
|
|
'more' => json_encode($wechat_user)
|
|
|
]);
|
|
|
cache('row',$row);
|
|
|
return $userId;
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|