|
@@ -182,9 +182,12 @@ public class FrontStoreController {
|
|
|
store.setDescriptionScore(descriptionScore);
|
|
|
}
|
|
|
}
|
|
|
- if (store.getState() != StoreConst.STORE_STATE_OPEN || store.getBusinessState() != StoreConst.STORE_BUSINESS_STATE_OPEN) {
|
|
|
+ if (store.getState() != StoreConst.STORE_STATE_OPEN) {
|
|
|
throw new MallException("店铺已关闭", ResponseConst.STATE_STORE_CLOSE);
|
|
|
}
|
|
|
+ if (store.getBusinessState() != StoreConst.STORE_BUSINESS_STATE_OPEN) {
|
|
|
+ throw new MallException("店铺暂停营业", ResponseConst.STATE_FAIL);
|
|
|
+ }
|
|
|
//默认店铺logo
|
|
|
if (StringUtil.isEmpty(store.getStoreLogo())) {
|
|
|
store.setStoreLogo(stringRedisTemplate.opsForValue().get("default_image_store_logo"));
|