去掉没用配置,修改配置文件默认值

This commit is contained in:
chackylee
2026-02-27 15:07:51 +08:00
parent f5deab507c
commit e72bc7f3dc
4 changed files with 3 additions and 11 deletions

View File

@@ -45,9 +45,6 @@ public class PayProConfig implements WebMvcConfigurer {
*/
private Integer qrCodeNum;
/** 项目下载地址 */
private String downloadUrl;
/**
* 阿里的用户id
* */

View File

@@ -130,7 +130,4 @@ public class Order implements Serializable{
@JsonIgnore
private String statistic;
@TableField(exist = false)
private String downloadUrl;
}

View File

@@ -222,7 +222,6 @@ public class OrderServiceImpl implements OrderService {
if (pay.getProductId() != null) {
Product product = productMapper.selectById(pay.getProductId());
if (product.getType().equals("CODE")) {
pay.setDownloadUrl(payProConfig.getDownloadUrl());
emailUtils.sendTemplateMail(payProConfig.getEmail().getSender(), pay.getEmail(), "【Pay个人收款支付系统】支付成功通知附下载链接",
"order-success", pay);
pay.setState(OrderStatesEnum.SUCCESS_PAY.getState());

View File

@@ -42,8 +42,8 @@ spring:
testWhileIdle: true
timeBetweenEvictionRunsMillis: 60000
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://xx.xx.xx.xx:8001/paypro?useSSL=false&characterEncoding=utf-8
username: xxx
url: jdbc:mysql://127.0.0.1:8001/paypro?useSSL=false&characterEncoding=utf-8
username: root
validationQuery: SELECT 1 FROM DUAL
redis:
database: 1
@@ -88,5 +88,4 @@ paypro:
token:
value: 123
expire: 14
qrCodeNum: 2
downloadUrl: https://github.com/codewendao/PayPro
qrCodeNum: 2