2 files added
4 files modified
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project version="4"> |
| | | <component name="VcsDirectoryMappings"> |
| | | <mapping directory="" vcs="Git" /> |
| | | </component> |
| | | </project> |
| | |
| | | package ${package}.domain; |
| | | |
| | | import lombok.Data; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import cn.hutool.core.bean.copier.CopyOptions; |
| | |
| | | * @author ${author} |
| | | * @date ${date} |
| | | **/ |
| | | @Data |
| | | @Getter |
| | | @Setter |
| | | @TableName("${tableName}") |
| | | public class ${className} implements Serializable { |
| | | <#if columns??> |
New file |
| | |
| | | package com.oying.modules.security.config; |
| | | |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | /** |
| | | * @author xin |
| | | * @description |
| | | * @date 2025/1/22 下午4:49 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @Configuration |
| | | @ConfigurationProperties(prefix = "swift-pass") |
| | | public class SwiftPassProperties { |
| | | // 交易密钥1 |
| | | private String key; |
| | | // 平台私钥 |
| | | private String mchPrivateKey; |
| | | // 平台公钥 |
| | | private String platPublicKey; |
| | | // 门店编号1 |
| | | private String mchId; |
| | | // 签名方式 |
| | | private String signType; |
| | | // 原生JS |
| | | private String isRaw; |
| | | // 是否小程序支付 |
| | | private String isMinipg; |
| | | // AppID |
| | | private String appId; |
| | | // 请求url |
| | | private String reqUrl; |
| | | // 支付通知地址 |
| | | private String notifyUrl; |
| | | // 退款通知地址 |
| | | private String refundUrl; |
| | | } |
| | |
| | | * POST 该接口用于发送订阅消息。 |
| | | * |
| | | * @param data 请求参数 |
| | | * @param openId 用户openId |
| | | * @param templateId 订阅模板id |
| | | * @param page 小程序跳转链接 |
| | | * @return JSONObject |
| | | */ |
| | | public JSONObject sendMessage(Map<String, Object> data, String openId, String templateId, String page) { |
| | |
| | | |
| | | # 短信验证码key 时间 |
| | | sms: |
| | | key: lyhd-sms-key- |
| | | key: oying-sms-key- |
| | | time: 300 |
| | | |
| | | #微信配置 |
| | |
| | | |
| | | # 汇旺财 |
| | | swift-pass: |
| | | # 密钥1 |
| | | key-1: qqqqqqqqqqqqqqqqqqqq |
| | | # 密钥 |
| | | key: qqqqqqqqqqqqqqqqqqqq |
| | | # 私钥 |
| | | mch-private-key: qqqqqqqqqqqq |
| | | # 公钥 |
| | | plat-public-key: qqqqq |
| | | # 门店编号1 |
| | | mch-id-1: 1111 |
| | | # 门店编号 |
| | | mch-id: 1111 |
| | | # 签名方式 |
| | | sign-type: MD5 |
| | | # 原生JS |
| | |
| | | # 请求url |
| | | req-url: https://pay.hstypay.com/v2/pay/gateway |
| | | # 支付通知地址 |
| | | notify-url: https://localhost/lyhd/api/swiftPass/alipayCallback |
| | | notify-url: https://localhost/oying/api/swiftPass/alipayCallback |
| | | # 退款通知地址 |
| | | refund-url: https://localhost/lyhd/api/swiftPass/returnNotify |
| | | refund-url: https://localhost/oying/api/swiftPass/returnNotify |
| | |
| | | avatarMaxSize: 5 |
| | | # 短信验证码key 时间 |
| | | sms: |
| | | key: lyhd-sms-key- |
| | | key: oying-sms-key- |
| | | time: 300 |
| | | |
| | | #微信配置 |
| | |
| | | # 汇旺财 |
| | | swift-pass: |
| | | # 密钥1 |
| | | key-1: qqqqqqqqqqqqqqqqqqqq |
| | | key: qqqqqqqqqqqqqqqqqqqq |
| | | # 私钥 |
| | | mch-private-key: qqqqqqqqqqqq |
| | | # 公钥 |
| | | plat-public-key: qqqqq |
| | | # 门店编号1 |
| | | mch-id-1: 1111 |
| | | mch-id: 1111 |
| | | # 签名方式 |
| | | sign-type: MD5 |
| | | # 原生JS |
| | |
| | | # 请求url |
| | | req-url: https://pay.hstypay.com/v2/pay/gateway |
| | | # 支付通知地址 |
| | | notify-url: https://localhost/lyhd/api/swiftPass/alipayCallback |
| | | notify-url: https://localhost/oying/api/swiftPass/alipayCallback |
| | | # 退款通知地址 |
| | | refund-url: https://localhost/lyhd/api/swiftPass/returnNotify |
| | | refund-url: https://localhost/oying/api/swiftPass/returnNotify |