- fixed panic bug in GetStoreOrderCountInfo.

This commit is contained in:
gazebo
2018-08-22 12:01:56 +08:00
parent 5bcba91308
commit 72f468b580
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ func (c *OrderManager) GetStoreOrderInfo(storeID string, lastHours int, fromStat
return nil, err
}
func (c *OrderManager) GetStoreOrderCountInfo(storeID string, lastHours int) (countInfo *model.GoodsOrderCountInfo, err error) {
func (c *OrderManager) GetStoreOrderCountInfo(storeID string, lastHours int) (countInfo []*model.GoodsOrderCountInfo, err error) {
if lastHours > maxLastHours {
lastHours = maxLastHours
}