[Modify]修改项目配置和将加密模式修改为so库
This commit is contained in:
@@ -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);
|
||||
// }
|
||||
|
||||
/**
|
||||
* 生成签名
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user