[Modify]第三方登录用户注册默认信息修改

This commit is contained in:
wushaocheng
2022-12-05 11:21:06 +08:00
parent d9b5fd1e51
commit 190094aa17
5 changed files with 12 additions and 8 deletions

View File

@@ -363,6 +363,7 @@ public class AuthModel extends BaseModel implements IAuthModel {
String unionid = platform.getDb().get("unionid");
Logger.i(platform.getDb().getUserGender() + "----openid" + openid + "unionid" + unionid + platform.getDb().getUserIcon());
thirdUserInfo = new ThirdUserInfo();
thirdUserInfo.setType(ThirdUserInfo.TYPE_FACEBOOK);
thirdUserInfo.setPlatform("Facebook");
thirdUserInfo.setUserName(platform.getDb().getUserName());
thirdUserInfo.setUserGender(platform.getDb().getUserGender());
@@ -434,6 +435,7 @@ public class AuthModel extends BaseModel implements IAuthModel {
Logger.i("openid:" + openid + " unionid:" + unionid + platform.getDb().getUserIcon());
thirdUserInfo = new ThirdUserInfo();
thirdUserInfo.setType(ThirdUserInfo.TYPE_LINE);
thirdUserInfo.setPlatform("LINE");
thirdUserInfo.setUserName(platform.getDb().getUserName());
thirdUserInfo.setUserGender(platform.getDb().getUserGender());
@@ -504,6 +506,7 @@ public class AuthModel extends BaseModel implements IAuthModel {
Logger.i("openid:" + openid + " unionid:" + unionid + platform.getDb().getUserIcon());
thirdUserInfo = new ThirdUserInfo();
thirdUserInfo.setType(ThirdUserInfo.TYPE_GOOGLE);
thirdUserInfo.setPlatform("Google");
thirdUserInfo.setUserName(platform.getDb().getUserName());
thirdUserInfo.setUserGender(platform.getDb().getUserGender());

View File

@@ -14,9 +14,9 @@ public class ThirdUserInfo implements Serializable {
private long birth;
private int type;
public static final int TYPE_WX = 1;
public static final int TYPE_QQ = 2;
public static final int TYPE_ONEKEY = 3;
public static final int TYPE_FACEBOOK = 1;
public static final int TYPE_LINE = 2;
public static final int TYPE_GOOGLE = 3;
public int getType() {
return type;