Roc 1 anno fa
parent
commit
03f206b437
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      models/system/sys_admin.go

+ 1 - 1
models/system/sys_admin.go

@@ -66,7 +66,7 @@ func GetSysAdminByIdSlice(adminIdList []string) (items []*Admin, err error) {
 }
 
 func GetAdminByGroupId(groupId int) (items []*AdminItem, err error) {
-	o := orm.NewOrmUsingDB("weekly")
+	o := orm.NewOrm()
 	sql := `SELECT * FROM admin WHERE group_id=? ORDER BY created_time DESC`
 	_, err = o.Raw(sql, groupId).QueryRows(&items)
 	return