fix(01-01): 修复 C 端实名校验使用常量(CRITICAL-02)

- client_order/service.go: 实名校验 assetInfo.RealNameStatus != 1 改为常量比较
- client_realname.go: 实名状态检查 == 1 改为 constants.RealNameStatusVerified
- go build ./... 编译通过,无遗留硬编码 != 1 / == 1 的实名判断
This commit is contained in:
2026-03-27 22:54:50 +08:00
parent 1fd0072f69
commit da50a35a62
2 changed files with 2 additions and 2 deletions

View File

@@ -125,7 +125,7 @@ func (h *ClientRealnameHandler) GetRealnameLink(c *fiber.Ctx) error {
}
// 6. 检查实名状态
if targetCard.RealNameStatus == 1 {
if targetCard.RealNameStatus == constants.RealNameStatusVerified {
return errors.New(errors.CodeInvalidStatus, "该卡已完成实名")
}