Просмотр исходного кода

feat : 商城小程序支付新增订单id返回

bilingfeng 2 лет назад
Родитель
Сommit
5b2c37d6ab

+ 8 - 27
game-module/game-sdk/src/main/java/com/zanxiang/sdk/domain/params/ProductPayParam.java

@@ -62,24 +62,6 @@ public class ProductPayParam {
     @NotNull(message = "充值金额不可为空")
     private BigDecimal amount;
 
-    /**
-     * 兑换比例
-     */
-    @ApiModelProperty(notes = "兑换比例")
-    private Integer ratio;
-
-    /**
-     * 购买数量
-     */
-    @ApiModelProperty(notes = "购买数量")
-    private Integer buyNum;
-
-    /**
-     * 虚拟币数量
-     */
-    @ApiModelProperty(notes = "虚拟币数量")
-    private Integer coinNum;
-
     /**
      * 游戏服务器id
      */
@@ -115,13 +97,6 @@ public class ProductPayParam {
     @NotNull(message = "角色等级不可为空")
     private Long roleLevel;
 
-    /**
-     * 充值回调
-     */
-    @ApiModelProperty(notes = "充值回调")
-    @NotNull(message = "充值回调不可为空")
-    private String payNotifyUrl;
-
     /**
      * 角色VIP等级
      */
@@ -129,9 +104,15 @@ public class ProductPayParam {
     private Long roleVipLevel;
 
     /**
-     * 订单id
+     * SDK订单id,(米大师充值完成调支付的时候传回)
+     */
+    @ApiModelProperty(notes = "SDK订单id,(米大师充值完成调支付的时候传回)")
+    private String sourceOrderId;
+
+    /**
+     * CP订单id
      */
-    @ApiModelProperty(notes = "订单id")
+    @ApiModelProperty(notes = "CP订单id")
     private String orderId;
 
     /**

+ 1 - 0
game-module/game-sdk/src/main/java/com/zanxiang/sdk/service/Impl/PayApplicationServiceImpl.java

@@ -114,6 +114,7 @@ public class PayApplicationServiceImpl extends ServiceImpl<PayApplicationMapper,
             miniMap.put("timeStamp", createTime);
             miniMap.put("package", successMap);
             miniMap.put("nonceStr", nonceStr);
+            miniMap.put("orderId", orderId);
             //返回
             return ResultMap.ok(miniMap);
         } catch (Exception e) {