修复缓存条件状态码无法修改的问题

This commit is contained in:
GoEdgeLab
2021-08-29 09:22:02 +08:00
parent ba0153fa43
commit e95cbdb707
2 changed files with 16 additions and 1 deletions

View File

@@ -38,6 +38,10 @@ func (this *CreatePopupAction) RunPost(params struct {
this.Fail("请输入缓存Key")
}
if cacheRef.Conds == nil || len(cacheRef.Conds.Groups) == 0 {
this.Fail("请填写匹配条件分组")
}
err = cacheRef.Init()
if err != nil {
this.ErrorPage(err)