更新文档,优化代码

master
chendt 3 years ago
parent bb7ce90ed4
commit 4d9bbbe677

@ -206,7 +206,7 @@ public class FileUploadConfig {
### 修改后台配置 ### 修改后台配置
平台端修改文件`.env.production`(生产环境)/ `.env.development`(开发环境) 平台端(vue)修改文件`.env.production`(生产环境)/ `.env.development`(开发环境)
里面的`VUE_APP_BASE_API`为api接口请求地址 `VUE_APP_RESOURCES_URL`为静态资源文件url 里面的`VUE_APP_BASE_API`为api接口请求地址 `VUE_APP_RESOURCES_URL`为静态资源文件url
// api接口请求地址 // api接口请求地址
@ -214,10 +214,6 @@ public class FileUploadConfig {
// 静态资源文件url // 静态资源文件url
VUE_APP_RESOURCES_URL = 'https://img.mall4j.com/' VUE_APP_RESOURCES_URL = 'https://img.mall4j.com/'
修改vue配置
- 修改文件`utils\config.js`
- 里面的`domain`为api接口请求地址 `picDomain`为静态资源文件url
### 更新于2023.03.27 ### 更新于2023.03.27
- 在`shop.properties` 更新了本地上传的配置vue中的`resourcesUrl`也配置对应的本地路径 - 在`shop.properties` 更新了本地上传的配置vue中的`resourcesUrl`也配置对应的本地路径

@ -10,24 +10,22 @@
package com.yami.shop.admin.task; package com.yami.shop.admin.task;
import java.util.Date; import cn.hutool.core.collection.CollectionUtil;
import java.util.List; import cn.hutool.core.date.DateUtil;
import com.xxl.job.core.handler.annotation.XxlJob; import com.xxl.job.core.handler.annotation.XxlJob;
import com.yami.shop.service.*; import com.yami.shop.bean.enums.OrderStatus;
import com.yami.shop.bean.model.Order;
import com.yami.shop.bean.model.OrderItem;
import com.yami.shop.service.OrderService;
import com.yami.shop.service.ProductService;
import com.yami.shop.service.SkuService;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import com.yami.shop.bean.enums.OrderStatus; import java.util.Date;
import com.yami.shop.bean.model.Order; import java.util.List;
import com.yami.shop.bean.model.OrderItem;
import com.yami.shop.bean.model.User;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
/** /**
@ -39,7 +37,7 @@ import cn.hutool.core.util.StrUtil;
public class OrderTask { public class OrderTask {
private Logger logger = LoggerFactory.getLogger(getClass()); private static final Logger logger = LoggerFactory.getLogger(OrderTask.class);
@Autowired @Autowired
private OrderService orderService; private OrderService orderService;

@ -48,13 +48,13 @@ import java.util.stream.Collectors;
@AllArgsConstructor @AllArgsConstructor
public class ShopCartController { public class ShopCartController {
private BasketService basketService; private final BasketService basketService;
private ProductService productService; private final ProductService productService;
private SkuService skuService; private final SkuService skuService;
private ApplicationContext applicationContext; private final ApplicationContext applicationContext;
/** /**
* *

Loading…
Cancel
Save