From 68a5c868352cd409cb8a58f2a669a4f48b2cc3de Mon Sep 17 00:00:00 2001 From: yirenyishi Date: Tue, 20 Nov 2018 22:50:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=94=E8=AE=B0=E6=94=B6=E5=B7=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/NoteController.go | 3 --- data/beeblog.db | Bin 40960 -> 40960 bytes 2 files changed, 3 deletions(-) diff --git a/controllers/NoteController.go b/controllers/NoteController.go index 3853f82..bb89916 100644 --- a/controllers/NoteController.go +++ b/controllers/NoteController.go @@ -5,7 +5,6 @@ import ( "strconv" "beeblog/models" "beeblog/service" - "fmt" ) type NoteController struct { @@ -17,12 +16,10 @@ func (this *NoteController) Save() { title := this.GetString("title") uid := this.GetSession("userid") if uid == nil { - fmt.Println("ueseid nil",uid) this.Data["json"] = models.ReurnError(401,"保存失败") this.ServeJSON() return } - fmt.Println("ueseid:",uid) note := &models.Note{Title: title, Pid: pid, UserId: uid.(int64)} err := service.SaveNote(note) if err == nil { diff --git a/data/beeblog.db b/data/beeblog.db index 7652787c5a4387fbdc39a5981bc32f812fe03ec1..983700914f7fe10603b82d474d8fafd1084b2cc4 100644 GIT binary patch delta 106 zcmV-w0G0oMzyg540+1U4OOYHy0ZXx9elGzLv)?ZzPzV7IqW})05680%fYA;F0003a zli`l$GdB?j00}D%2~X*mzvq#k<)o+Pm$u})qcSitI4vO(EoR_b%)fXuPs2q%7XFJ2$0k4Q zduD84Y;3M=U|?lnz`($u&neE!>0g`(ghmF27P^Lpx<&>Hh9*{qrdGxVdgca}7A7X< Kn}7AQ2><}QeI6SC