generated from root/miduo_server
增加新的quick渠道
parent
9fe3926c19
commit
470f8dc662
|
@ -1058,13 +1058,13 @@ public class PayController {
|
|||
* 说明文档: https://www.quicksdk.com/doc-15.html
|
||||
* 测试服回调地址:http://1.13.176.142/idip/sfzb/pay/quickNotify
|
||||
*/
|
||||
@RequestMapping(value = "/pay/quickNotifyNew", method = {RequestMethod.POST,RequestMethod.GET})
|
||||
public String quickNotifyNew(String nt_data, String sign, String md5Sign) {
|
||||
@RequestMapping(value = "/pay/quickNotify2", method = {RequestMethod.POST,RequestMethod.GET})
|
||||
public String quickNotify2(String nt_data, String sign, String md5Sign) {
|
||||
|
||||
try {
|
||||
LOGGER.info("quickNotifyNew--01, nt_data={},sign={},md5Sign={}", nt_data,sign,md5Sign);
|
||||
|
||||
String signStr = nt_data + sign + Constant.MD5_KEY_NEW;
|
||||
String signStr = nt_data + sign + Constant.MD5_KEY_2;
|
||||
String mySign=MD5Util.encrypByMd5(signStr);
|
||||
|
||||
if(!mySign.equals(md5Sign)){
|
||||
|
@ -1072,7 +1072,7 @@ public class PayController {
|
|||
return "-1";
|
||||
}
|
||||
|
||||
String deCodeDateXml = QuickSDKUtil.decode(nt_data, Constant.CALLBACK_KEY_NEW);
|
||||
String deCodeDateXml = QuickSDKUtil.decode(nt_data, Constant.CALLBACK_KEY_2);
|
||||
LOGGER.info("quickNotifyNew--02 deCodeDateXml={}",deCodeDateXml);
|
||||
|
||||
Map<String, Object> stringObjectMap = XmlUtil.xmlToMap(deCodeDateXml);
|
||||
|
|
|
@ -99,9 +99,6 @@ public class SDKController {
|
|||
case "Android_QuickGame_douyin":
|
||||
uid = SdkVerfy.quickGameVerfy(userId, sdksign, sdktoken);
|
||||
break;
|
||||
case "Android_QuickGame_New":
|
||||
uid = SdkVerfy.quickGameVerfyNew(userId, sdktoken);
|
||||
break;
|
||||
case "iOS_QuickGame": //国内--时空战场 IOS
|
||||
uid = SdkVerfy.quickGameVerfy_IOS(userId,sdksign, sdktoken);
|
||||
break;
|
||||
|
@ -152,9 +149,12 @@ public class SDKController {
|
|||
case "iOS_BT_QiPa2"://bt渠道
|
||||
uid = SdkVerfy.superVerify(userId, sdktoken);
|
||||
break;
|
||||
case "QKZB01"://bt渠道
|
||||
case "QKZB01"://quick直播1
|
||||
uid = SdkVerfy.quickGameVerfy(userId, sdksign, sdktoken);
|
||||
break;
|
||||
case "QKZB02"://quick直播2
|
||||
uid = SdkVerfy.quickGameVerfy2(userId, sdksign, sdktoken);
|
||||
break;
|
||||
default:
|
||||
uid = "-1";
|
||||
}
|
||||
|
|
|
@ -401,20 +401,20 @@ public class SdkVerfy {
|
|||
}
|
||||
|
||||
/**
|
||||
* 国内渠道QuickGame Android
|
||||
* 国内渠道QuickGame 2
|
||||
* @param userId
|
||||
* @param sdktoken
|
||||
* @return
|
||||
*/
|
||||
public static String quickGameVerfyNew(String userId, String sdktoken) {
|
||||
public static String quickGameVerfy2(String userId, String sdksign,String sdktoken) {
|
||||
try {
|
||||
// 请求参数
|
||||
Map<String, String> params = new HashMap<String, String>();
|
||||
params.put("product_code", Constant.PRODUCT_CODE_NEW);
|
||||
params.put("product_code", Constant.PRODUCT_CODE_2);
|
||||
params.put("uid", userId);
|
||||
params.put("token", sdktoken);
|
||||
|
||||
String resurl = HttpUtil.postForm(Constant.QUICK_LOGIN_VERIFY_URL_NEW, params);
|
||||
String resurl = HttpUtil.postForm(Constant.QUICK_LOGIN_VERIFY_URL_2, params);
|
||||
LOGGER.info("res=" + resurl);
|
||||
if(resurl.equals("1")){
|
||||
return userId;
|
||||
|
|
|
@ -86,11 +86,11 @@ public class Constant {
|
|||
public static final String QUICK_LOGIN_VERIFY_URL = "http://checkuser.sdk.quicksdk.net/v2/checkUserInfo"; //登录验证地址
|
||||
|
||||
//国内渠道 QuickGame Android new
|
||||
public static final String PRODUCT_CODE_NEW = "94947931220654086028388068177507";
|
||||
public static final String PRODUCT_KEY_NEW = "09189502";
|
||||
public static final String CALLBACK_KEY_NEW = "80845922040429498675272374179197"; //用来解码通知的密文
|
||||
public static final String MD5_KEY_NEW = "gqbppo2qp5h62l2rrlphxf0j6a13lyqb"; //用来验证签名
|
||||
public static final String QUICK_LOGIN_VERIFY_URL_NEW = "http://checkuser.sdk.quicksdk.net/v2/checkUserInfo"; //登录验证地址
|
||||
public static final String PRODUCT_CODE_2= "87767476722478732783342171607545";
|
||||
public static final String PRODUCT_KEY_2 = "31215073";
|
||||
public static final String CALLBACK_KEY_2 = "20798520204556638345881294454186"; //用来解码通知的密文
|
||||
public static final String MD5_KEY_2 = "cdf38w8l2xuybzs0tgym5i239rccdujp"; //用来验证签名
|
||||
public static final String QUICK_LOGIN_VERIFY_URL_2 = "http://checkuser.sdk.quicksdk.net/v2/checkUserInfo"; //登录验证地址
|
||||
|
||||
//国内渠道 QuickGame IOS
|
||||
public static final String QUICK_IOS_PRODUCT_CODE = "35830695725172284797896935402546";
|
||||
|
|
Loading…
Reference in New Issue