mirror of
https://github.com/codewendao/PayPro.git
synced 2026-09-03 06:13:46 +08:00
去掉没用配置,修改配置文件默认值
This commit is contained in:
@@ -45,9 +45,6 @@ public class PayProConfig implements WebMvcConfigurer {
|
||||
*/
|
||||
private Integer qrCodeNum;
|
||||
|
||||
/** 项目下载地址 */
|
||||
private String downloadUrl;
|
||||
|
||||
/**
|
||||
* 阿里的用户id
|
||||
* */
|
||||
|
||||
@@ -130,7 +130,4 @@ public class Order implements Serializable{
|
||||
@JsonIgnore
|
||||
private String statistic;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String downloadUrl;
|
||||
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user