[Modify]第三方登录用户注册默认信息修改
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user