Compare commits

...

2 Commits

View File

@ -1564,7 +1564,15 @@ public class ShopStoreBaseServiceImpl extends BaseServiceImpl<ShopStoreBaseMappe
public Map getBase(Integer store_id) {
UserDto user = getCurrentUser();
if (store_id == null) {
if (user == null) {
throw new ApiException(ResultCode.NEED_LOGIN);
}
if (user.isPlatform()) {
if (CheckUtil.isEmpty(store_id)) {
throw new ApiException("平台操作,请传入店铺 Id");
}
} else {
store_id = Convert.toInt(user.getStore_id());
}