generated from root/miduo_server
测试和正式充值
parent
cb5da3c40b
commit
89b80bb716
|
|
@ -81,27 +81,43 @@ public class MHTRechargeController {
|
||||||
|
|
||||||
LOGGER.info("stringBuilder"+stringBuilder);
|
LOGGER.info("stringBuilder"+stringBuilder);
|
||||||
LOGGER.info("temp"+temp);
|
LOGGER.info("temp"+temp);
|
||||||
String plain = stringBuilder + MD5Util.encrypByMd5(MHTSDKConstans.secretKey);
|
|
||||||
String sig = MD5Util.encrypByMd5(plain);
|
|
||||||
|
|
||||||
String goodID;
|
String goodID;
|
||||||
|
String subChannel;
|
||||||
String uid;
|
String uid;
|
||||||
if(ext.isEmpty()){
|
if(ext.isEmpty()){
|
||||||
LOGGER.info("callback==>roleUid={},sin derify fail,mine sign={} ",orderNo,sig);
|
LOGGER.info("callback==>roleUid={},sin derify fail,old sign={} ",orderNo,sign);
|
||||||
return "FAIL";
|
return "FAIL";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sig.equals(sign)){
|
|
||||||
LOGGER.info("callback==>roleUid={},sin derify fail,mine sign={} ",ext,sig);
|
|
||||||
return "FAIL";
|
|
||||||
}
|
|
||||||
String[] split1 = ext.split("_");
|
String[] split1 = ext.split("_");
|
||||||
|
if(split1.length!=3){
|
||||||
|
LOGGER.info("callback==>roleUid={},sin derify fail,old sign={} ,EXT={}",orderNo,sign,ext);
|
||||||
|
}
|
||||||
uid = split1[0];
|
uid = split1[0];
|
||||||
goodID = split1[1];
|
goodID = split1[1];
|
||||||
|
subChannel = split1[2];
|
||||||
if(null==uid||uid.isEmpty()||null==goodID||goodID.isEmpty()){
|
if(null==uid||uid.isEmpty()||null==goodID||goodID.isEmpty()){
|
||||||
LOGGER.info("callback==>roleUid={},sin derify fail,mine sign={} ,EXT={}",orderNo,sig,ext);
|
LOGGER.info("callback==>roleUid={},sin derify fail,old sign={} ,EXT={}",orderNo,sign,ext);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
String plain;
|
||||||
|
|
||||||
|
if(subChannel.equals("1000")){
|
||||||
|
plain = stringBuilder + MD5Util.encrypByMd5(MHTSDKConstans.secretKey);
|
||||||
|
}else {
|
||||||
|
plain = stringBuilder + MD5Util.encrypByMd5(MHTSDKConstans.secretKeyOnline);
|
||||||
|
}
|
||||||
|
|
||||||
|
String sig = MD5Util.encrypByMd5(plain);
|
||||||
|
if (!sig.equals(sign)){
|
||||||
|
LOGGER.info("callback==>roleUid={},sin derify fail,mine sign={} subChannel={} ",ext,sig,subChannel);
|
||||||
|
return "FAIL";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
CUserInfo cUserInfo = cuserDao.findUserInfo(Integer.valueOf(uid));
|
CUserInfo cUserInfo = cuserDao.findUserInfo(Integer.valueOf(uid));
|
||||||
if(cUserInfo == null){
|
if(cUserInfo == null){
|
||||||
LOGGER.info( "该用户无此角色"+uid);
|
LOGGER.info( "该用户无此角色"+uid);
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,14 @@
|
||||||
package com.jmfy.util;
|
package com.jmfy.util;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* appid:b5122eb744689d247d82eea37e9741f6
|
||||||
|
* rhappid:7bb5f604306ccd93fc19f05d3a374e84
|
||||||
|
* 支付秘钥:5b980134872a8afa993f8a3b35a8efbd
|
||||||
|
* channelid:MHT
|
||||||
|
*/
|
||||||
public class MHTSDKConstans {
|
public class MHTSDKConstans {
|
||||||
public static String appid = "e4ecefecc8034cffaa69e81b2c044f2c";
|
public static String appid = "e4ecefecc8034cffaa69e81b2c044f2c";
|
||||||
public static String rhappid = "7bb5f604306ccd93fc19f05d3a374e84";
|
public static String rhappid = "7bb5f604306ccd93fc19f05d3a374e84";
|
||||||
|
|
@ -9,8 +18,7 @@ public class MHTSDKConstans {
|
||||||
// public static String iosVerify = "http://sujie.passport.ktsdk.com/userios/verifyAccount";
|
// public static String iosVerify = "http://sujie.passport.ktsdk.com/userios/verifyAccount";
|
||||||
public static String loginVerify = " http://kwsdk.17173g.cn/cp/checkLogin";
|
public static String loginVerify = " http://kwsdk.17173g.cn/cp/checkLogin";
|
||||||
public static String secretKey = "d69dfa85e5a703b911f4d08711b739a2";
|
public static String secretKey = "d69dfa85e5a703b911f4d08711b739a2";
|
||||||
|
public static String secretKeyOnline = "5b980134872a8afa993f8a3b35a8efbd";
|
||||||
|
|
||||||
|
|
||||||
public static String channelid = "MHT";
|
public static String channelid = "MHT";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue