mirror of
https://gitee.com/gz-yami/mall4j.git
synced 2026-03-22 09:17:16 +08:00
更新文档,优化代码
This commit is contained in:
@@ -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
|
||||
|
||||
// api接口请求地址
|
||||
@@ -214,10 +214,6 @@ public class FileUploadConfig {
|
||||
// 静态资源文件url
|
||||
VUE_APP_RESOURCES_URL = 'https://img.mall4j.com/'
|
||||
|
||||
修改vue配置
|
||||
|
||||
- 修改文件`utils\config.js`
|
||||
- 里面的`domain`为api接口请求地址, `picDomain`为静态资源文件url
|
||||
|
||||
### 更新于2023.03.27
|
||||
- 在`shop.properties` 更新了本地上传的配置,vue中的`resourcesUrl`也配置对应的本地路径
|
||||
|
||||
@@ -10,24 +10,22 @@
|
||||
|
||||
package com.yami.shop.admin.task;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
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.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
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.bean.model.User;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
@@ -39,7 +37,7 @@ import cn.hutool.core.util.StrUtil;
|
||||
public class OrderTask {
|
||||
|
||||
|
||||
private Logger logger = LoggerFactory.getLogger(getClass());
|
||||
private static final Logger logger = LoggerFactory.getLogger(OrderTask.class);
|
||||
|
||||
@Autowired
|
||||
private OrderService orderService;
|
||||
|
||||
@@ -48,13 +48,13 @@ import java.util.stream.Collectors;
|
||||
@AllArgsConstructor
|
||||
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;
|
||||
|
||||
/**
|
||||
* 获取用户购物车信息
|
||||
|
||||
Reference in New Issue
Block a user