Browse Source

fix:bug

token_replace
黄梓健 4 years ago
parent
commit
51f35b11c5
  1. 2
      controllers/client/good.go

2
controllers/client/good.go

@ -50,7 +50,7 @@ func (t *GoodCtl) ListGood() {
exist, err := models.Get(area, areaId)
t.CheckErr(err)
t.Assert(exist, code.MSG_AREASTORE_NOT_EXIST, "地区不存在")
if area.IsMainArea != 1 && area.AreaGoodsRuleSwitch == 1 {
if area.IsMainArea != 1 && area.AreaGoodsRuleSwitch != 1 {
exist, err = area.GetMainAreaById(activityId)
t.CheckErr(err)
t.Assert(exist, code.MSG_AREASTORE_NOT_EXIST, "地区不存在")

Loading…
Cancel
Save