| | |
| | | } |
| | | if (paymentCompetitionVo.getPayType() == 1) {//微信 |
| | | Competition byId = competitionService.getById(paymentCompetitionVo.getId()); |
| | | Integer operatorId = byId.getOperatorId(); |
| | | String[] split = byId.getStoreId().split(","); |
| | | |
| | | Store store = storeClient.queryStoreById(Integer.valueOf(split[0])); |
| | | Integer operatorId = store.getOperatorId(); |
| | | if (operatorId!=null && operatorId != 0){ |
| | | // 运营商 |
| | | String s = storeClient.getmerchantNumberByOperatorId(operatorId); |
| | |
| | | if (paymentCompetitionVo.getPayType() == 2) {//支付宝 |
| | | // 判断当前赛事属于哪个运营商 |
| | | Competition byId = competitionService.getById(paymentCompetitionVo.getId()); |
| | | Integer operatorId = byId.getOperatorId(); |
| | | String[] split = byId.getStoreId().split(","); |
| | | |
| | | Store store = storeClient.queryStoreById(Integer.valueOf(split[0])); |
| | | Integer operatorId = store.getOperatorId(); |
| | | if (operatorId == null || operatorId == 0 ){ |
| | | // 说明是平台 |
| | | return aliPaymentCompetition(operatorId,smid,code, money); |