|
@@ -102,10 +102,13 @@ public class WxPayService extends PayBaseService {
|
|
|
private IOrderService orderService;
|
|
|
|
|
|
@Override
|
|
|
- public Map<String, Object> create(ProductPayParamBO product) {
|
|
|
- this.attach = product.getAttach();
|
|
|
+ public Map<String, Object> create(ProductPayParamBO product, GamePayWayDTO gamePayWayDTO) {
|
|
|
+// this.attach = product.getAttach();
|
|
|
+// this.attach.setGamePayWayId(gamePayWayDTO.getId());
|
|
|
+
|
|
|
+ log.error("微信支付, attach : {}", JsonUtil.toString(this.attach));
|
|
|
//初始化配置
|
|
|
- this.configInit(getPayConfig(product.getGameId(), product.getPayWay(), product.getPayDevice()));
|
|
|
+ this.configInit(gamePayWayDTO);
|
|
|
//支付方式
|
|
|
int payDevice = product.getPayDevice().intValue();
|
|
|
//不同的支付途径
|
|
@@ -275,8 +278,11 @@ public class WxPayService extends PayBaseService {
|
|
|
|
|
|
@Override
|
|
|
public void closeOrder(PlatformOrderDTO platformOrderDTO) {
|
|
|
+ //支付配置
|
|
|
+ GamePayWayDTO gamePayWayDTO = gamePayWayService.getGamePayWay(platformOrderDTO.getGameId(),
|
|
|
+ platformOrderDTO.getPayWayId(), platformOrderDTO.getPayDeviceId());
|
|
|
//初始化配置
|
|
|
- this.configInit(getPayConfig(platformOrderDTO.getGameId(), platformOrderDTO.getPayWayId(), platformOrderDTO.getPayDeviceId()));
|
|
|
+ this.configInit(gamePayWayDTO);
|
|
|
try {
|
|
|
Map<String, String> paramData = new HashMap<>(6);
|
|
|
paramData.put("appid", config.getAppId());
|