瀏覽代碼

Merge branch 'aj_ai_file' into debug

hongze 1 年之前
父節點
當前提交
1f1b9eef6b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/aimod/ai.go

+ 1 - 1
models/aimod/ai.go

@@ -169,7 +169,7 @@ type HistoryChat struct {
 
 // 修改
 func (obj *AiChatTopic) Update(updateParams, whereParam map[string]interface{}) (err error) {
-	to := orm.NewOrm()
+	to := orm.NewOrmUsingDB("ai")
 	ptrStructOrTableName := "ai_chat_topic"
 
 	qs := to.QueryTable(ptrStructOrTableName)