hsun 1 year ago
parent
commit
cdf44eee00
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/report.go

+ 1 - 1
models/report.go

@@ -426,7 +426,7 @@ func AddReportSaveLog(reportId, adminId int, content, contentSub, adminName stri
 }
 
 func MultiAddReportChaptersSaveLog(items []*ReportChapter, adminId int, adminRealName string) (err error) {
-	o := orm.NewOrm()
+	o := orm.NewOrmUsingDB("rddp")
 	p, err := o.Raw(`INSERT INTO report_save_log(report_id, report_chapter_id, content, content_sub, admin_id, admin_name) VALUES (?,?,?,?,?,?)`).Prepare()
 	if err != nil {
 		return