| | |
| | | @Autowired |
| | | private ISiteBookingService siteBookingService; |
| | | |
| | | @Autowired |
| | | private IOperatorUserService operatorUserService; |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/getIntro") |
| | |
| | | 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 |