|
@@ -17,7 +17,7 @@ func CheckCygxAuth() gin.HandlerFunc {
|
|
|
|
|
|
thirdCodeEncrypt := c.Request.Header.Get("thirdCode")
|
|
|
thirdCode := utils.DesBase64Encrypt([]byte(thirdCodeEncrypt))
|
|
|
- if string(thirdCode) == "" {
|
|
|
+ if len(thirdCode) == 0 {
|
|
|
ok, checkInfo, _, err := company.CheckBaseFiccPermission(userInfo.CompanyID, int(userInfo.UserID))
|
|
|
if err != nil {
|
|
|
response.FailMsg("用户权限验证失败", "CheckBaseAuth-用户权限验证失败"+err.Error(), c)
|