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

This commit is contained in:
刘祥超
2021-08-29 09:22:02 +08:00
parent 08d1fcaf03
commit 062b9baeab
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)