Browse Source

add ai_file upload

hongze 1 năm trước cách đây
mục cha
commit
3ab4d04263
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)