Browse Source

不支持的登陆方式

1 1 week ago
parent
commit
8a55c18c7d
1 changed files with 7 additions and 0 deletions
  1. 7 0
      taxerr/template.go

+ 7 - 0
taxerr/template.go

@@ -159,6 +159,13 @@ var KeepTimeOutArea = map[string]bool{
 	"chongqing": true,
 }
 
+func NonsupportLogin(method string) error {
+	if method != "" {
+		return NewUserV3(fmt.Sprintf("“%s”暂不支持此登录方式", method), "请在企业信息”修改后重试!")
+	}
+	return NewUserV3("暂不支持的登录方式", "请在“企业信息”修改后重试!")
+}
+
 // ================================================ 社保类 ==============================================================
 
 // SheBaoNotFoundErr 全部位置都查不到社保信息(已申报和待申报)