mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	refactor: 样式调整
This commit is contained in:
		@@ -18,7 +18,7 @@ require (
 | 
			
		||||
	github.com/gorilla/websocket v1.5.1
 | 
			
		||||
	github.com/kanzihuang/vitess/go/vt/sqlparser v0.0.0-20231018071450-ac8d9f0167e9
 | 
			
		||||
	github.com/lionsoul2014/ip2region/binding/golang v0.0.0-20230712084735-068dc2aee82d
 | 
			
		||||
	github.com/mojocn/base64Captcha v1.3.5 // 验证码
 | 
			
		||||
	github.com/mojocn/base64Captcha v1.3.6 // 验证码
 | 
			
		||||
	github.com/pkg/errors v0.9.1
 | 
			
		||||
	github.com/pkg/sftp v1.13.6
 | 
			
		||||
	github.com/pquerna/otp v1.4.0
 | 
			
		||||
@@ -78,7 +78,7 @@ require (
 | 
			
		||||
	github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect
 | 
			
		||||
	golang.org/x/arch v0.3.0 // indirect
 | 
			
		||||
	golang.org/x/exp v0.0.0-20230519143937-03e91628a987
 | 
			
		||||
	golang.org/x/image v0.0.0-20220302094943-723b81ca9867 // indirect
 | 
			
		||||
	golang.org/x/image v0.13.0 // indirect
 | 
			
		||||
	golang.org/x/net v0.18.0 // indirect
 | 
			
		||||
	golang.org/x/sync v0.1.0 // indirect
 | 
			
		||||
	golang.org/x/sys v0.15.0 // indirect
 | 
			
		||||
 
 | 
			
		||||
@@ -88,9 +88,12 @@ func (p *tagTreeAppImpl) Save(ctx context.Context, tag *entity.TagTree) error {
 | 
			
		||||
 | 
			
		||||
			tag.CodePath = parentTag.CodePath + tag.Code + entity.CodePathSeparator
 | 
			
		||||
		} else {
 | 
			
		||||
			if accountId != consts.AdminId {
 | 
			
		||||
				return errorx.NewBiz("非管理员无法添加根标签")
 | 
			
		||||
			}
 | 
			
		||||
			tag.CodePath = tag.Code + entity.CodePathSeparator
 | 
			
		||||
		}
 | 
			
		||||
		if err := p.CanAccess(accountId, tag.CodePath); err != nil {
 | 
			
		||||
		if p.CanAccess(accountId, tag.CodePath) != nil {
 | 
			
		||||
			return errorx.NewBiz("无权添加该标签")
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -22,7 +22,8 @@ func Generate() (string, string, error) {
 | 
			
		||||
 | 
			
		||||
	c := base64Captcha.NewCaptcha(driver, store)
 | 
			
		||||
	// 获取
 | 
			
		||||
	return c.Generate()
 | 
			
		||||
	id, b64s, _, err := c.Generate()
 | 
			
		||||
	return id, b64s, err
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 验证验证码
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user