fix: apple Login

main
wangqing 8 months ago
parent e225cbdc22
commit 8c93ed5446

@ -145,6 +145,7 @@ public class LoginController extends BaseController {
} }
UserInfo loginUserInfo = new UserInfo(); UserInfo loginUserInfo = new UserInfo();
loginUserInfo.setLastLoginIp(getIpAddr(request)); loginUserInfo.setLastLoginIp(getIpAddr(request));
loginUserInfo.setLastUseDeviceId(appleLoginReq.getDeviceId());
loginUserInfo.setLastUseDeviceBrand("iPhone"); loginUserInfo.setLastUseDeviceBrand("iPhone");
String token = userInfoService.appleLoginOrRegister(loginUserInfo); String token = userInfoService.appleLoginOrRegister(loginUserInfo);

@ -18,6 +18,13 @@ import java.io.Serializable;
public class AppleLoginReq implements Serializable { public class AppleLoginReq implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ApiModelProperty(name = "deviceId", value = "设备id", required = true)
@VerifyParam(required = true)
private String deviceId;
@ApiModelProperty(name = "deviceBrand", value = "设备品牌", required = false)
String deviceBrand;
private String userIdentifier; private String userIdentifier;
private String identityToken; private String identityToken;

Loading…
Cancel
Save