generated from root/miduo_server
修改判断
parent
5e7c817921
commit
109b866547
|
|
@ -90,10 +90,6 @@ public class PayLogic {
|
||||||
LOGGER.info("serviceKey : " + serviceKey);
|
LOGGER.info("serviceKey : " + serviceKey);
|
||||||
try {
|
try {
|
||||||
rPCClient = ClientAdapterPo.getClientAdapterPo(serviceKey);
|
rPCClient = ClientAdapterPo.getClientAdapterPo(serviceKey);
|
||||||
if(sdk==PaySdkEnum.QUICK){
|
|
||||||
//quick的是元
|
|
||||||
amount = String.valueOf(Double.parseDouble(amount )*100);
|
|
||||||
}
|
|
||||||
result = rPCClient.getClient().deliveryRecharge(cUserInfo.getId(), goodsId, openId, orderId, 0, (int)Double.parseDouble(amount));
|
result = rPCClient.getClient().deliveryRecharge(cUserInfo.getId(), goodsId, openId, orderId, 0, (int)Double.parseDouble(amount));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOGGER.info("callback=>", e);
|
LOGGER.info("callback=>", e);
|
||||||
|
|
|
||||||
|
|
@ -93,14 +93,15 @@ public class QuickRechargeController {
|
||||||
String[] callback = callbackInfo.split("_");
|
String[] callback = callbackInfo.split("_");
|
||||||
String orderNo = map.get("order_no");
|
String orderNo = map.get("order_no");
|
||||||
String amount = map.get("amount");
|
String amount = map.get("amount");
|
||||||
|
//quick的是元 要处理一下
|
||||||
return payLogic.initOrder(callbackInfo,orderNo,amount,new Date(System.currentTimeMillis()),callback[0],PaySdkEnum.QUICK);
|
String amountForward = String.valueOf(Double.parseDouble(amount) * 100);
|
||||||
|
return payLogic.initOrder(callbackInfo,orderNo,amountForward,new Date(System.currentTimeMillis()),callback[0],PaySdkEnum.QUICK);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean sign(String ntdata0,String sign0,String md5Sign){
|
public boolean sign(String ntdata0,String sign0,String md5Sign){
|
||||||
String paramStr = ntdata0+sign0+md5key;
|
String paramStr = ntdata0+sign0+md5key;
|
||||||
String sign = MD5Util.encrypByMd5(paramStr);
|
String sign = MD5Util.encrypByMd5(paramStr);
|
||||||
LOGGER.info("加密前字符串:{}",paramStr);
|
// LOGGER.info("加密前字符串:{}",paramStr);
|
||||||
LOGGER.info("加密后得:{}",sign);
|
LOGGER.info("加密后得:{}",sign);
|
||||||
if(sign.equals(md5Sign)){
|
if(sign.equals(md5Sign)){
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue