| | |
| | | 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, "请先通过高级认证"); |
| | | } |
| | | } |