quick新参数

main
grimm 2024-07-17 14:59:04 +08:00
parent c1c1207aef
commit bc1370b275
2 changed files with 15 additions and 12 deletions

View File

@ -74,6 +74,7 @@ public class PayController {
private PayHandler payHandler;
//生成订单号 (之前老的,现在没用到)
@Deprecated
@RequestMapping(value = "/order/genOrder", method = {RequestMethod.GET, RequestMethod.POST})
public void genOrder(String uid, HttpServletResponse response) {
try {
@ -203,7 +204,8 @@ public class PayController {
LOGGER.info("pay order channel:{}, param: {}", channel, sb);
return returnResult;
}
@RequestMapping(value = "/pay/xiaomiOrder", method = {RequestMethod.GET, RequestMethod.POST})
@RequestMapping(value = "/pay/xiaomiOrder", method = {RequestMethod.GET, RequestMethod.POST})
public JSONObject xiaomiOrder(HttpServletRequest request) {
try {
JSONObject json = new JSONObject();
@ -989,15 +991,15 @@ public class PayController {
public String quickNotify(HttpServletRequest request1,String nt_data,String sign,String md5Sign) {
try {
LOGGER.info("quickNotify--01, nt_data={}sign={}md5Sign={}", nt_data,sign,md5Sign);
LOGGER.info("quickNotify--01, nt_data={}sign={}md5Sign={}", nt_data,sign,md5Sign);
String signStr = nt_data + sign + Constant.MD5_KEY;
String mySign=MD5Util.encrypByMd5(signStr);
String signStr = nt_data + sign + Constant.MD5_KEY;
String mySign=MD5Util.encrypByMd5(signStr);
if(!mySign.equals(md5Sign)){
LOGGER.error("错误信息:签名不一致 mySign={}md5Sign={}", mySign,md5Sign);
return "-1";
}
if(!mySign.equals(md5Sign)){
LOGGER.error("错误信息:签名不一致 mySign={}md5Sign={}", mySign,md5Sign);
return "-1";
}
String deCodeDateXml = QuickSDKUtil.decode(nt_data, Constant.CALLBACK_KEY);
LOGGER.info("quickNotify--02 deCodeDateXml={}",deCodeDateXml);
@ -1050,6 +1052,7 @@ public class PayController {
return "-3";
}
/**
* QuickGame IOS
*

View File

@ -79,10 +79,10 @@ public class Constant {
public static final String SIXKW_MAIN_PAY_SECRER = "afd8f0ae75f31d0e338b3245b43ccd7f";//6kw聚合
//国内渠道 QuickGame Android
public static final String PRODUCT_CODE = "97600749950592832394231573804243";
public static final String PRODUCT_KEY = "91498998";
public static final String CALLBACK_KEY = "49341184589720293197341255244129"; //用来解码通知的密文
public static final String MD5_KEY = "5cpglhgi6a2jbkhytgloit5hskjus0ry"; //用来验证签名
public static final String PRODUCT_CODE = "77831531945195614225580532977254";
public static final String PRODUCT_KEY = "94810229";
public static final String CALLBACK_KEY = "68053768994574017084348296498685"; //用来解码通知的密文
public static final String MD5_KEY = "vw4tgkkeebdreianlroeugwpnnkg4cna"; //用来验证签名
public static final String QUICK_LOGIN_VERIFY_URL = "http://checkuser.sdk.quicksdk.net/v2/checkUserInfo"; //登录验证地址
//国内渠道 QuickGame IOS