rebind mobile

This commit is contained in:
sxu 2025-02-16 19:44:12 +08:00
parent 7128d05a28
commit 294ce9f416
4 changed files with 5 additions and 5 deletions

View File

@ -74,7 +74,7 @@ public class SM4EncryptUtils {
// System.out.println(sm4Decrypt("J1KE3IyZqIqgWk09Z2gWpQ==##encrypted"));
//
// System.out.println(sm4Encrypt("13866134935"));
// System.out.println(sm4Decrypt("29G1AUHDmLvPe1tt0t12Dw==##encrypted"));
System.out.println(sm4Decrypt("29G1AUHDmLvPe1tt0t12Dw==##encrypted"));
String src = decryptBySm4("HTIhbDXKFNw9UjgVQqqCdgQ3mVlnTwMSl0b8a5yCoN4BtjgG2GY/xNu+v5tNRtZI",
Base64Decoder.decode("StqtdHhleMKClUGbmBqdrg=="));

View File

@ -9,10 +9,10 @@ import java.io.Serializable;
@ApiModel("小程序绑定新手机号")
@Data
public class CustBindMobileDTO implements Serializable {
@ApiModelProperty("mobile")
@ApiModelProperty("oldMobile")
private @NotBlank(
message = "手机号不能为空"
) String mobile;
) String oldMobile;
@ApiModelProperty("newMobile")
private @NotBlank(

View File

@ -295,7 +295,7 @@ public class CustInfoServiceImpl extends ServiceImpl<CustInfoMapper, CustInfo> i
ajaxResult.put("code", "500");
} else {
CustInfo custInfoQuery = new CustInfo();
custInfoQuery.setMobile(SM4EncryptUtils.sm4Encryptbyconfig(content.getMobile()));
custInfoQuery.setMobile(SM4EncryptUtils.sm4Encryptbyconfig(content.getOldMobile()));
CustInfo custInfo = custInfoMapper.selectOne(custInfoQuery);
if (ObjectUtil.isNull(custInfo)) {
log.error("修改密码错误:人员不存在:" + custInfo);

View File

@ -242,7 +242,7 @@
<update id="updateCustCasual">
update cust_casual
set openid = #{openId}
set openid = #{openid}, mobile = #{mobile}
where casual_id = #{casualId}
</update>
</mapper>