Ver Fonte

Fixed bug.

zhou.xiaoning há 1 ano atrás
pai
commit
7e4ee38891
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      models/common.go

+ 1 - 0
models/common.go

@@ -1222,6 +1222,7 @@ func (r *Exchangerateconfig) GetDataByPage() (interface{}, error, int, int, int)
 }
 
 func (r *Exchangerateconfig) GetAll() (data []Exchangerateconfig, err error) {
+	data = make([]Exchangerateconfig, 0)
 	err = db.GetEngine().Table("EXCHANGERATECONFIG").Select("ORICURRENCYID,DESCURRENCYID,EXCHANGERATE,REMARK").Find(&data)
 	return
 }