Commit 0b1bad43 by yu.sun

sunyu::fix bug about store info check

parent 95832516
......@@ -672,12 +672,12 @@ public class ShoppingCartMCoffeeServiceImpl {
if (storeResponseDto.getActiveFlag() == null || storeResponseDto.getActiveFlag() != 1
|| storeResponseDto.getState() == null || storeResponseDto.getState().equals("3")) {
ResponseResult storeClose = ResponseResult.CART_STORE_CLOSE;
storeClose.getMessage().replace("$storeName",storeName);
storeClose.setMessage(storeClose.getMessage().replace("$storeName",storeName));
return ResponseUtil.error(storeClose);
}
if (storeResponseDto.getActiveFlag() == 1 && storeResponseDto.getState().equals("2")) {
ResponseResult storeRest = ResponseResult.CART_STORE_REST;
storeRest.getMessage().replace("$storeName",storeName);
storeRest.setMessage(storeRest.getMessage().replace("$storeName",storeName));
return ResponseUtil.error(ResponseResult.CART_STORE_REST);
}
return ResponseUtil.success();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment