From 4affbdf8938d321c0926bc2b1832dfc81c317ffa Mon Sep 17 00:00:00 2001
From: zyy <zyy@email.com>
Date: Thu, 08 Jan 2026 18:49:30 +0800
Subject: [PATCH] ipo
---
trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiRealNameAuthContoller.java | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiRealNameAuthContoller.java b/trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiRealNameAuthContoller.java
index 602ec6c..e3a96a2 100644
--- a/trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiRealNameAuthContoller.java
+++ b/trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiRealNameAuthContoller.java
@@ -77,17 +77,27 @@
realNameAuthRecord = new RealNameAuthRecord();
}
+ if (model.getIdBackImg() == null || model.getIdBackImg().isEmpty()) {
+ throw new YamiShopBindException("请上传完整证件信息");
+ }
+ if (model.getIdFrontImg() == null || model.getIdFrontImg().isEmpty()) {
+ throw new YamiShopBindException("请上传完整证件信息");
+ }
+
if (model.getIdNumber().length() > 50) {
throw new YamiShopBindException("证件号码长度超过50");
}
if (model.getName().length() >50) {
throw new YamiShopBindException("实名姓名长度超过50");
}
+ if (model.getPhone() == null || model.getPhone().isEmpty()) {
+ throw new YamiShopBindException("请输入手机号");
+ }
- String authcode = identifyingCodeTimeWindowService.getAuthCode(model.getPhone());
+ /*String authcode = identifyingCodeTimeWindowService.getAuthCode(model.getPhone());
if (authcode == null || !authcode.equals(model.getCode())) {
throw new YamiShopBindException("验证码不正确");
- }
+ }*/
Date now = new Date();
BeanUtils.copyProperties(model, realNameAuthRecord);
--
Gitblit v1.9.3