From 530fed8ec225453572d57b15c200ab062c335457 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期三, 01 十一月 2023 19:20:21 +0800 Subject: [PATCH] 公海member_id使用0 --- service/faq.go | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/service/faq.go b/service/faq.go index bd01165..ec3d95b 100644 --- a/service/faq.go +++ b/service/faq.go @@ -46,9 +46,7 @@ return ecode.DBErr } - err = model.NewFaqSearch().SetId(v.Id).Updates(map[string]interface{}{ - - }) + err = model.NewFaqSearch().SetId(v.Id).Updates(map[string]interface{}{}) if err != nil { return ecode.DBErr } @@ -58,9 +56,9 @@ } func (FaqService) UpdateFaq(faq *model.Faq) int { - err := model.NewFaqSearch().SetId(faq.Id).Save(faq) - if err != nil { - return ecode.DBErr - } + err := model.NewFaqSearch().SetId(faq.Id).Update(faq) + if err != nil { + return ecode.DBErr + } return ecode.OK } -- Gitblit v1.8.0