| | |
| | | String methodType = String.valueOf(order.getMethodType()); |
| | | result.put("method_type_name", pmtMap.containsKey(methodType) ? pmtMap.get(methodType) : methodType); |
| | | result.put("method_name", order.getMethodName()); |
| | | result.put("method_img", awsS3OSSFileService.getUrl(order.getMethodImg())); |
| | | result.put("method_img", Constants.IMAGES_HTTP+order.getMethodImg()); |
| | | result.put("real_name", order.getRealName()); |
| | | result.put("param_name1", order.getParamName1()); |
| | | result.put("param_value1", order.getParamValue1()); |
| | |
| | | result.put("param_value15", order.getParamValue15()); |
| | | result.put("qrcode", order.getQrcode()); |
| | | result.put("remark", order.getRemark()); |
| | | result.put("img", awsS3OSSFileService.getUrl(order.getImg())); |
| | | result.put("img", Constants.IMAGES_HTTP+order.getImg()); |
| | | |
| | | result.put("create_time", DateUtils.format(order.getCreateTime(), DateUtils.DF_yyyyMMddHHmmss)); |
| | | result.put("handle_time", DateUtils.format(order.getHandleTime(), DateUtils.DF_yyyyMMddHHmmss)); |
| | |
| | | if (null == c2cUser) { |
| | | throw new YamiShopBindException("承兑商不存在"); |
| | | } |
| | | User c2cParty =userService.getById(c2cOrder.getC2cUserPartyId()); |
| | | User c2cParty =userService.getById(c2cUser.getC2cUserPartyId()); |
| | | |
| | | if (null == c2cParty) { |
| | | throw new YamiShopBindException("承兑商的用户信息不存在"); |
| | |
| | | RealNameAuthRecord party_kyc = realNameAuthRecordService.getByUserId(partyId); |
| | | Object objKyc = this.sysparaService.find("c2c_sell_by_kyc"); |
| | | if (null != objKyc) { |
| | | if (!(party_kyc.getStatus() == 2) && "true".equals(this.sysparaService.find("c2c_sell_by_kyc").getSvalue())) { |
| | | if ("true".equals(this.sysparaService.find("c2c_sell_by_kyc").getSvalue()) && !(party_kyc.getStatus() == 2)) { |
| | | throw new BusinessException(401, "无权限"); |
| | | } |
| | | } |
| | | HighLevelAuthRecord party_kycHighLevel = highLevelAuthRecordService.findByUserId(partyId); |
| | | Object objKycHigh = this.sysparaService.find("c2c_sell_by_high_kyc"); |
| | | if (null != objKycHigh) { |
| | | if (!(party_kycHighLevel.getStatus() == 2) && "true".equals(this.sysparaService.find("c2c_sell_by_high_kyc").getSvalue())) { |
| | | if ("true".equals(this.sysparaService.find("c2c_sell_by_high_kyc").getSvalue()) && !(party_kycHighLevel.getStatus() == 2)) { |
| | | throw new BusinessException(1, "请先通过高级认证"); |
| | | } |
| | | } |