fix 11
This commit is contained in:
parent
bae6d83261
commit
309523f6c3
@ -312,8 +312,10 @@ func (a *ApprovalProvider) UpdateSetting(ctx context.Context, in *approval.Setti
|
|||||||
fmt.Println(copyUsers == nil)
|
fmt.Println(copyUsers == nil)
|
||||||
fmt.Println(copyUsers)
|
fmt.Println(copyUsers)
|
||||||
if copyUsers == nil { //空数组
|
if copyUsers == nil { //空数组
|
||||||
model.DB.Where(&model.ApprovalSetting{Domain: in.Domain, KeyWord: in.KeyWord}).Update("copy_users", "[]")
|
model.DB.Exec("UPDATE approval_setting SET copy_users = `[]` WHERE id = ?", setting.ID)
|
||||||
|
//model.DB.Where(&model.ApprovalSetting{Domain: in.Domain, KeyWord: in.KeyWord}).Update("copy_users", "[]")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user