[Modify]修改项目配置和将加密模式修改为so库

This commit is contained in:
wushaocheng
2023-03-17 00:59:50 +08:00
parent 3d746358d0
commit 42b658b2d7
7 changed files with 27 additions and 122 deletions

View File

@@ -24,16 +24,16 @@ public class APIEncryptUtil {
private static final String DES_ENCRYPT_KEY_SMS_SIGN = XChatConstants.DES_ENCRYPT_KEY_SMS_SIGN;
/**
* 参数加密
* @param params
* @return
* @throws Exception
*/
public static String encryptParams(Map<String,String> params) throws Exception{
String json = new Gson().toJson(params);
return DESUtils.DESAndBase64Encrypt(json,DES_ENCRYPT_KEY_SMS_PARAMS);
}
// /**
// * 参数加密
// * @param params
// * @return
// * @throws Exception
// */
// public static String encryptParams(Map<String,String> params) throws Exception{
// String json = new Gson().toJson(params);
// return DESUtils.DESAndBase64Encrypt(json,DES_ENCRYPT_KEY_SMS_PARAMS);
// }
/**
* 生成签名

View File

@@ -118,7 +118,7 @@ public class WithdrawModel extends BaseModel implements IWithdrawModel {
String paramsStr = null;
String signStr = null;
try {
paramsStr = APIEncryptUtil.encryptParams(paramsEncrypt);
// paramsStr = APIEncryptUtil.encryptParams(paramsEncrypt);
signStr = APIEncryptUtil.paramsToSign(paramsEncrypt);
} catch (Exception e) {
e.printStackTrace();