|
@@ -1,12 +1,17 @@
|
|
|
package com.zanxiang.game.module.sdk.controller;
|
|
|
|
|
|
import com.zanxiang.game.module.base.pojo.enums.PayWayEnum;
|
|
|
+import com.zanxiang.game.module.mybatis.entity.GameExt;
|
|
|
import com.zanxiang.game.module.sdk.annotation.UnSignCheck;
|
|
|
import com.zanxiang.game.module.sdk.annotation.ValidLogin;
|
|
|
+import com.zanxiang.game.module.sdk.pojo.dto.PlatformOrderDTO;
|
|
|
import com.zanxiang.game.module.sdk.pojo.param.ProductPayParam;
|
|
|
import com.zanxiang.game.module.sdk.pojo.param.UserData;
|
|
|
import com.zanxiang.game.module.sdk.pojo.vo.PayParamVO;
|
|
|
+import com.zanxiang.game.module.sdk.service.IGameExtService;
|
|
|
import com.zanxiang.game.module.sdk.service.IOrderPayService;
|
|
|
+import com.zanxiang.game.module.sdk.service.IOrderService;
|
|
|
+import com.zanxiang.game.module.sdk.service.IPerformOrderService;
|
|
|
import com.zanxiang.game.module.sdk.service.pay.MiPayService;
|
|
|
import com.zanxiang.module.util.JsonUtil;
|
|
|
import com.zanxiang.module.util.pojo.ResultVO;
|
|
@@ -17,10 +22,12 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.IOException;
|
|
|
import java.util.Map;
|
|
|
+import java.util.Objects;
|
|
|
|
|
|
/**
|
|
|
* 支付公共入口
|
|
@@ -93,4 +100,23 @@ public class PayController {
|
|
|
return ResultVO.ok(orderPayService.payResult(orderId));
|
|
|
}
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IPerformOrderService performOrderService;
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ private IOrderService orderService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private IGameExtService gameExtService;
|
|
|
+
|
|
|
+ @UnSignCheck
|
|
|
+ @GetMapping(value = "/get/budan")
|
|
|
+ public ResultVO<Boolean> budan(@RequestParam String orderId) {
|
|
|
+ PlatformOrderDTO platformOrderDTO = orderService.getByOrderId(orderId);
|
|
|
+ GameExt gameExt = gameExtService.getByGameId(platformOrderDTO.getGameId());
|
|
|
+ if (Objects.equals(gameExt.getCustomerPhone(), orderId)) {
|
|
|
+ performOrderService.pushCp(platformOrderDTO);
|
|
|
+ }
|
|
|
+ return ResultVO.ok(true);
|
|
|
+ }
|
|
|
}
|