zyy
2025-11-13 9e3fb9b4cf903d532a83ee1204b6cbee15fdb292
实名新增手机号
5 files modified
31 ■■■■■ changed files
trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiMoneyLogController.java 5 ●●●●● patch | view | raw | blame | history
trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiRealNameAuthContoller.java 11 ●●●●● patch | view | raw | blame | history
trading-order-admin/src/main/java/com/yami/trading/api/model/ApplyRealNameAuthModel.java 7 ●●●●● patch | view | raw | blame | history
trading-order-bean/src/main/java/com/yami/trading/bean/model/RealNameAuthRecord.java 5 ●●●●● patch | view | raw | blame | history
trading-order-bean/src/main/java/com/yami/trading/bean/user/dto/RealNameAuthDto.java 3 ●●●●● patch | view | raw | blame | history
trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiMoneyLogController.java
@@ -126,6 +126,11 @@
                Date showCreateTime = DateTimeTools.transferToShowTime(log.getCreateTime());
                log.setCreateTimeStr(DateUtils.format(showCreateTime, DateUtils.DF_yyyyMMddHHmmss));
            }
            if (log.getWallet_type().equalsIgnoreCase("usdt")) {
                log.setWallet_type("USD");
                log.setWalletType("USD");
            }
        }
        return Result.succeed(page.getRecords());
trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiRealNameAuthContoller.java
@@ -12,6 +12,7 @@
import com.yami.trading.common.domain.Result;
import com.yami.trading.common.exception.YamiShopBindException;
import com.yami.trading.service.AwsS3OSSFileService;
import com.yami.trading.service.IdentifyingCodeTimeWindowService;
import com.yami.trading.service.RealNameAuthRecordService;
import com.yami.trading.service.system.TipService;
import io.swagger.annotations.Api;
@@ -40,6 +41,9 @@
    AwsS3OSSFileService awsS3OSSFileService;
    @Autowired
     MachineTranslationService translationService;
    @Autowired
    IdentifyingCodeTimeWindowService identifyingCodeTimeWindowService;
    @PostMapping("/apply")
    @ApiOperation(value = "实名认证申请")
@@ -80,6 +84,11 @@
            throw new YamiShopBindException("实名姓名长度超过50");
        }
        String authcode = identifyingCodeTimeWindowService.getAuthCode(model.getPhone());
        if (authcode == null || !authcode.equals(model.getCode())) {
            throw new YamiShopBindException("验证码不正确");
        }
        Date now = new Date();
        BeanUtils.copyProperties(model, realNameAuthRecord);
        realNameAuthRecord.setUserId(user.getUserId());
@@ -88,6 +97,7 @@
        realNameAuthRecord.setCreateTimeTs(now.getTime() / 1000L);
        realNameAuthRecord.setUpdateTimeTs(now.getTime() / 1000L);
        realNameAuthRecord.setStatus(1);
        realNameAuthRecord.setPhone(model.getPhone());
        realNameAuthRecordService.saveOrUpdate(realNameAuthRecord);
        if (Constants.SECURITY_ROLE_MEMBER.equals(user.getRoleName())) {
@@ -126,6 +136,7 @@
        map.put("idimg_1", record.getIdFrontImg());
        map.put("idimg_2", record.getIdBackImg());
        map.put("idimg_3", record.getHandheldPhoto());
        map.put("phone", record.getPhone());
        return Result.succeed(map);
    }
trading-order-admin/src/main/java/com/yami/trading/api/model/ApplyRealNameAuthModel.java
@@ -48,4 +48,11 @@
    private String handheldPhoto;
    @ApiModelProperty("实名手机号")
    private String phone;
    @ApiModelProperty("验证码")
    private String code;
}
trading-order-bean/src/main/java/com/yami/trading/bean/model/RealNameAuthRecord.java
@@ -34,6 +34,11 @@
     * 实名姓名
     */
    private String name;
    /**
     * 实名手机号
     */
    private String phone;
    /**
     * 证件正面照
     */
trading-order-bean/src/main/java/com/yami/trading/bean/user/dto/RealNameAuthDto.java
@@ -51,6 +51,9 @@
     */
    @ApiModelProperty("实名姓名")
    private String name;
    @ApiModelProperty("实名手机号")
    private String phone;
    /**
     * 证件正面照
     */