This commit is contained in:
Mrx
2026-02-26 10:48:43 +08:00
14 changed files with 365 additions and 30 deletions

View File

@@ -104,7 +104,6 @@ func validDate(fl validator.FieldLevel) bool {
return matched
}
// 自定义身份证校验(增强版)
// 校验规则:
// 1. 格式18位前6位地区码首位不为07-14位出生日期15-17位顺序码18位校验码
@@ -216,8 +215,12 @@ func validatePayMethod(fl validator.FieldLevel) bool {
}
validTypes := map[string]bool{
"alipay": true, // 中国电信
"wechatpay": true, // 中国移动
"alipay": true,
"wechat": true,
"wechatpay": true,
"appleiap": true,
"test": true,
"test_empty": true,
}
return validTypes[payMethod]