|
|
@ -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, "地区不存在") |
|
|
|