generated from root/miduo_server
灵动sdk接入
parent
04779e01c1
commit
6ea74bd854
|
@ -64,7 +64,7 @@ public class MHTRechargeController {
|
|||
// }
|
||||
String response = "SUCCESS";
|
||||
try {
|
||||
String consumerid = parameterMap.get("consumerid");
|
||||
// String consumerid = parameterMap.get("consumerid");
|
||||
String ext =parameterMap.get("ext");
|
||||
String gameCurrency ="0";
|
||||
String mhtOrderAmt =parameterMap.get("mhtOrderAmt");
|
||||
|
@ -72,8 +72,7 @@ public class MHTRechargeController {
|
|||
String orderNo =parameterMap.get("orderNo");
|
||||
String time =parameterMap.get("time");
|
||||
String sign = parameterMap.get("sign");
|
||||
String temp = "consumerid" + "=" + consumerid + "&" +
|
||||
"ext" + "=" + ext;
|
||||
String temp = "ext" + "=" + ext;
|
||||
String stringBuilder = "ext" + "=" + ext + "&" +
|
||||
"mhtOrderAmt" + "=" + mhtOrderAmt + "&" +
|
||||
"orderDetail" + "=" + orderDetail + "&" +
|
||||
|
@ -88,7 +87,7 @@ public class MHTRechargeController {
|
|||
String goodID;
|
||||
String uid;
|
||||
if(ext.isEmpty()){
|
||||
LOGGER.info("callback==>roleUid={},sin derify fail,mine sign={} ",consumerid,sig);
|
||||
LOGGER.info("callback==>roleUid={},sin derify fail,mine sign={} ",orderNo,sig);
|
||||
return "FAIL";
|
||||
}
|
||||
|
||||
|
@ -100,12 +99,12 @@ public class MHTRechargeController {
|
|||
uid = split1[0];
|
||||
goodID = split1[1];
|
||||
if(null==uid||uid.isEmpty()||null==goodID||goodID.isEmpty()){
|
||||
LOGGER.info("callback==>roleUid={},sin derify fail,mine sign={} ,EXT={}",consumerid,sig,ext);
|
||||
LOGGER.info("callback==>roleUid={},sin derify fail,mine sign={} ,EXT={}",orderNo,sig,ext);
|
||||
}
|
||||
|
||||
CUserInfo cUserInfo = cuserDao.findUserInfo(Integer.valueOf(consumerid));
|
||||
CUserInfo cUserInfo = cuserDao.findUserInfo(Integer.valueOf(uid));
|
||||
if(cUserInfo == null){
|
||||
LOGGER.info( "该用户无此角色"+consumerid);
|
||||
LOGGER.info( "该用户无此角色"+uid);
|
||||
return "FAIL";
|
||||
}
|
||||
|
||||
|
@ -121,7 +120,7 @@ public class MHTRechargeController {
|
|||
cPayOrder.setOrderId(orderNo);
|
||||
cPayOrder.setServerId(cUserInfo.getServerid());
|
||||
cPayOrder.setDelivery_time(date);
|
||||
cPayOrder.setUserId(consumerid);
|
||||
cPayOrder.setUserId(uid);
|
||||
Result result = null;
|
||||
String userAddress = cuserDao.findUserAddress(cUserInfo.getId());
|
||||
if (userAddress != null) {
|
||||
|
|
Loading…
Reference in New Issue