Merge branch 'main' of http://1.117.67.95:3000/team/qnc-server-v3
This commit is contained in:
@@ -104,7 +104,6 @@ func validDate(fl validator.FieldLevel) bool {
|
||||
return matched
|
||||
}
|
||||
|
||||
|
||||
// 自定义身份证校验(增强版)
|
||||
// 校验规则:
|
||||
// 1. 格式:18位,前6位地区码(首位不为0),7-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]
|
||||
|
||||
Reference in New Issue
Block a user