@Sign
@NotEmpty(message = "手机号不能为空")
private String phone;
+ @Sign
+ @NotEmpty(message = "手机用户id不能为空")
+ private String uid;
+ @Sign
+ @NotEmpty(message = "rsaprivate不能为空")
+ private String rsaprivate;
+ @Sign
+ @NotEmpty(message = "secertkey不能为空")
+ private String secertkey;
+ @Sign
+ @NotEmpty(message = "rsapublic不能为空")
+ private String rsapublic;
@Override
public boolean checkParam() throws RequestParamCheckException {
card.signed = true
mobileApiService.saveCard(card)
}
+ //绑卡返回已签约,保存UserSecret
+ mobileApiService.signBxy(card,SignBxyParam().apply {
+ this.userid = person.userid
+ this.uid = param.uid
+ this.secertkey = param.secertkey
+ this.rsapublic = param.rsapublic
+ this.rsaprivate = param.rsaprivate
+ })
}
return ResponseEntity.ok(ResponseBodyBuilder.create().data("signed", signed)
.success("ok"))
}
user.signedtime = DateUtil.getNow();
mobileApiService.saveUser(user)
+ // 如果银行返回已签约,保存密钥到UserSecret表
+ mobileApiService.signBxy(card, SignBxyParam().apply {
+ this.uid=user.uid
+ this.userid = user.userid
+ this.secertkey = user.secertkey
+ this.rsapublic = user.rsapublic
+ this.rsaprivate = user.rsaprivate
+ })
needupdate = true;
}
}
user.signedtime = DateUtil.getNow();
mobileApiService.saveUser(user)
+ // 如果银行返回已签约,保存密钥到UserSecret表
+ mobileApiService.signBxy(card, SignBxyParam().apply {
+ this.uid=user.uid
+ this.userid = user.userid
+ this.secertkey = user.secertkey
+ this.rsapublic = user.rsapublic
+ this.rsaprivate = user.rsaprivate
+ })
}
return JsonResult.ok("OK")