- fixed panic bug in GetStoreOrderCountInfo.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user