Explorar o código

Merge branch 'cygx_check_table' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai hai 1 ano
pai
achega
590097e176
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      models/wx_user.go

+ 1 - 1
models/wx_user.go

@@ -54,7 +54,7 @@ type WxUser struct {
 
 // 添加用户信息
 func AddWxUser(item *WxUser) (lastId int64, err error) {
-	o := orm.NewOrm()
+	o := orm.NewOrmUsingDB("weekly_report")
 	lastId, err = o.Insert(item)
 	return
 }