|
@@ -212,6 +212,9 @@ public class TakeOutProjectController {
|
|
|
queryWrapper.eq("id",id);
|
|
|
queryWrapper.eq("enable",1);
|
|
|
RestaurantInfo restaurantInfo = restaurantInfoService.getOne(queryWrapper);
|
|
|
+ if (restaurantInfo == null) {
|
|
|
+ return ResponseResult.success(null);
|
|
|
+ }
|
|
|
RestaurantInfoVo restaurantInfoVo = MyModelUtil.copyTo(restaurantInfo, RestaurantInfoVo.class);
|
|
|
if(StringUtils.isNotEmpty(restaurantInfoVo.getUrl())) {
|
|
|
List<String> arrayList2 = UrlConvertUtils.urlConvert(applicationConfig.getHostIpPort(), restaurantInfoVo.getUrl());
|