|
|
@@ -1,6 +1,7 @@
|
|
|
package com.uas.platform.b2c.fa.payment.service.impl;
|
|
|
|
|
|
import com.uas.platform.b2c.core.config.SysConf;
|
|
|
+import com.uas.platform.b2c.core.constant.EncodingRulesConstant;
|
|
|
import com.uas.platform.b2c.core.support.SystemSession;
|
|
|
import com.uas.platform.b2c.core.utils.FastjsonUtils;
|
|
|
import com.uas.platform.b2c.core.utils.NumberUtil;
|
|
|
@@ -19,7 +20,6 @@ import com.uas.platform.b2c.trade.order.dao.OrderDao;
|
|
|
import com.uas.platform.b2c.trade.order.model.Order;
|
|
|
import com.uas.platform.b2c.trade.order.service.OrderService;
|
|
|
import com.uas.platform.core.exception.IllegalOperatorException;
|
|
|
-import com.uas.platform.core.model.EncodingRulesConstant;
|
|
|
import com.uas.platform.core.model.PageInfo;
|
|
|
import com.uas.platform.core.model.Status;
|
|
|
import com.uas.platform.core.model.Type;
|
|
|
@@ -111,12 +111,12 @@ public class PaymentServiceImpl implements PaymentService {
|
|
|
set.add(paymentDetail);
|
|
|
}
|
|
|
String paymentid = null;
|
|
|
- String numberUtil = EncodingRulesConstant.YSEPAY.replace("_TIMESTAP_NUMBER",
|
|
|
- createNumberService.getTimeNumber("trade$payment", 8));
|
|
|
+ String numberUtil = EncodingRulesConstant.YSEPAY.replace("TIMESTAP_NUMBER",
|
|
|
+ createNumberService.getTimeNumber("trade$payment", 7));
|
|
|
Map<String, String> map = new HashMap<String, String>();
|
|
|
String referer = request.getHeader("Referer");
|
|
|
if("test".equals(sysConf.getPaymentPrice())){
|
|
|
- paymentid = numberUtil + "test";
|
|
|
+ paymentid = numberUtil + "t";
|
|
|
StringBuilder buffer = new StringBuilder();
|
|
|
String returnUrl = null;
|
|
|
if(StringUtils.isEmpty(basePath)) {
|
|
|
@@ -127,7 +127,7 @@ public class PaymentServiceImpl implements PaymentService {
|
|
|
map.put("return_url", returnUrl);
|
|
|
}
|
|
|
if("prod".equals(sysConf.getPaymentPrice())){
|
|
|
- paymentid = numberUtil + "prod";
|
|
|
+ paymentid = numberUtil + "p";
|
|
|
map.put("return_url", sysConf.getReturnUrl());
|
|
|
}
|
|
|
payment.setPaymentid(paymentid);
|
|
|
@@ -146,6 +146,8 @@ public class PaymentServiceImpl implements PaymentService {
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
String timestamp = sdf.format(new Date());
|
|
|
|
|
|
+
|
|
|
+
|
|
|
// 待签名参数
|
|
|
map.put("out_trade_no", paymentid);
|
|
|
map.put("subject", subject);
|
|
|
@@ -165,6 +167,10 @@ public class PaymentServiceImpl implements PaymentService {
|
|
|
// 生成付款请求参数map(加上签名)
|
|
|
Map<String, String> sPara = ApipaySubmit.buildRequestPara(request, map);
|
|
|
|
|
|
+ // 银盛接口链接
|
|
|
+ String yesGateway = sysConf.getYesGateway();
|
|
|
+ sPara.put("action", yesGateway);
|
|
|
+
|
|
|
return sPara;
|
|
|
}
|
|
|
|