修改dna支付

master
DESKTOP-C3M45P4\dengdan 2025-04-23 17:27:52 +08:00
parent 5b9edd0069
commit 7f7d9c3bc2
1 changed files with 4 additions and 4 deletions

View File

@ -193,7 +193,7 @@ public class Dna01IosRechargeController {
}
StringBuffer signStr = new StringBuffer("app_id=" + appId);
signStr.append("&ch_id=" + chId);
signStr.append("&ch_order_id==" + chOrderId);
signStr.append("&ch_order_id=" + chOrderId);
signStr.append("&cp_order_id=" + cpOrderId);
signStr.append("&ext=" + extInfo);
signStr.append("&finish_time=" + finishTime);
@ -201,15 +201,15 @@ public class Dna01IosRechargeController {
signStr.append("&order_id=" + orderId);
signStr.append("&order_status=" + orderStatus);
signStr.append("&pay_time=" + payTime);
signStr.append("&product_id==" + productId);
signStr.append("&product_id=" + productId);
signStr.append("&product_name=" + productName);
signStr.append("&product_price=" + moneyStr);
signStr.append("&role_id=" + roleId);
signStr.append("&server_id=" + serverId);
signStr.append("&app_key==" + appKey);
signStr.append("&app_key=" + appKey);
String md5Str = MD5Util.encrypByMd5(signStr.toString());
if(!md5Str.equals(sign)){
LOGGER.error("Dna01Callback sign error md5Sign:" + md5Str + " -- md5Str:" + md5Str + " -- sign:" + sign);
LOGGER.error("Dna01Callback sign error md5Sign:" + md5Str + " -- md5Str:" + signStr.toString() + " -- sign:" + sign);
return result;
}
//充值成功