- fixed bug in GetStoreVendorMaps

This commit is contained in:
gazebo
2018-09-09 12:46:21 +08:00
parent fc05f326b7
commit d312a672fc
2 changed files with 11 additions and 4 deletions

View File

@@ -168,7 +168,10 @@ func (c *StoreController) ZZZZZ() {
// @router /GetStoreVendorMaps [get]
func (c *StoreController) GetStoreVendorMaps() {
c.callGetStoreVendorMaps(func(params *tStoreGetStoreVendorMapsParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.GetStoreVendorMaps(nil, params.StoreID)
if c.GetString("vendorID") == "" {
params.VendorID = -1
}
retVal, err = cms.GetStoreVendorMaps(nil, params.StoreID, params.VendorID)
return retVal, "", err
})
}