44323
2024-01-29 ce166b832f583e9d6840601c000242e5676297f8
cloud-server-other/src/main/java/com/dsh/other/controller/GameController.java
@@ -61,6 +61,8 @@
    @Autowired
    private ISiteBookingService siteBookingService;
    @Autowired
    private IOperatorUserService operatorUserService;
    @ResponseBody
    @PostMapping("/getIntro")
@@ -264,7 +266,22 @@
                return weixinpay;
            } else if (type == 2) {
                String params = uid + "_" + gameId + "_" + spaceId + "_" + sutuId + "_" + code + "_" + configId;
                ResultUtil alipay = payMoneyUtil.alipay("游戏支付", "游戏支付", params, code, config.getCash().toString(), "/base/site/gameCallback");
                TGame byId = gameService.getById(gameId);
                String smid="";
                // 属于平台
                if (byId.getOperationId()==null){
                    smid ="2088330203191220";
                }else if(byId.getOperationId()==0){
                    smid= "2088330203191220";
                }else{
                    // 根据运营商id 查询商户号
                    OperatorUser operatorId = operatorUserService.getOne(new QueryWrapper<OperatorUser>()
                            .eq("operatorId", byId.getOperationId()));
                    if (operatorId!=null){
                        smid = operatorId.getAlipayNum();
                    }
                }
                ResultUtil alipay = payMoneyUtil.alipay(smid,"游戏支付", "游戏支付", params, code, config.getCash().toString(), "/base/site/gameCallback");
                if (alipay.getCode() == 200) {
                    new Thread(new Runnable() {
                        @Override