|
@@ -76,9 +76,9 @@ public abstract class PayBaseService {
|
|
|
attachBO.setOrderId(product.getOutTradeNo());
|
|
|
attachBO.setPayWay(product.getPayWay());
|
|
|
attachBO.setGamePayWayId(gamePayWayDTO.getId());
|
|
|
- product.setAttach(attachBO);
|
|
|
+
|
|
|
this.attach = attachBO;
|
|
|
- return this.create(product);
|
|
|
+ return this.create(product, gamePayWayDTO);
|
|
|
} catch (Exception e) {
|
|
|
log.info("订单支付参数生成异常, ProductPayParamBO : {} , e: {}", JsonUtil.toString(product), e);
|
|
|
throw new BaseException("订单支付参数生成异常");
|
|
@@ -117,27 +117,13 @@ public abstract class PayBaseService {
|
|
|
return Boolean.FALSE;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- * 获取游戏支付配置
|
|
|
- *
|
|
|
- * @param gameId 游戏id
|
|
|
- * @param payWayId 支付方式id
|
|
|
- * @param payDeviceId 支付设备id
|
|
|
- * @return {@link GamePayWayDTO}
|
|
|
- */
|
|
|
- public GamePayWayDTO getPayConfig(Long gameId, Long payWayId, Long payDeviceId) {
|
|
|
- GamePayWayDTO gamePayWayDTO = gamePayWayService.getGamePayWay(gameId, payWayId, payDeviceId);
|
|
|
- this.attach.setGamePayWayId(gamePayWayDTO.getId());
|
|
|
- return gamePayWayDTO;
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
* 支付调起
|
|
|
*
|
|
|
* @param product : 调起支付的参数
|
|
|
* @return : 返回支付参数
|
|
|
*/
|
|
|
- public abstract Map<String, Object> create(ProductPayParamBO product);
|
|
|
+ public abstract Map<String, Object> create(ProductPayParamBO product, GamePayWayDTO gamePayWayDTO);
|
|
|
|
|
|
|
|
|
* 支付异步回调
|