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