智能DNS初步支持搜索引擎线路

This commit is contained in:
刘祥超
2022-12-13 18:39:23 +08:00
parent 3e0d2fda6a
commit 3921c547be
18 changed files with 465 additions and 7 deletions

View File

@@ -72,3 +72,11 @@ func CheckSQLErrCode(err error, code uint16) bool {
return false
}
// CheckSQLDuplicateErr 检查Duplicate错误
func CheckSQLDuplicateErr(err error) bool {
if err == nil {
return false
}
return CheckSQLErrCode(err, 1062)
}