pay notify
This commit is contained in:
@@ -1,59 +1,59 @@
|
||||
spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
druid:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
# url: jdbc:mysql://59.110.212.44:3306/e_book?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
url: jdbc:mysql://59.110.212.44:3306/e_book_test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
username: root
|
||||
password: HSXY1234hsxy
|
||||
initial-size: 10
|
||||
max-active: 100
|
||||
min-idle: 10
|
||||
max-wait: 60000
|
||||
pool-prepared-statements: true
|
||||
max-pool-prepared-statement-per-connection-size: 20
|
||||
time-between-eviction-runs-millis: 60000
|
||||
min-evictable-idle-time-millis: 300000
|
||||
#Oracle需要打开注释
|
||||
#validation-query: SELECT 1 FROM DUAL
|
||||
test-while-idle: true
|
||||
test-on-borrow: false
|
||||
test-on-return: false
|
||||
stat-view-servlet:
|
||||
enabled: true
|
||||
url-pattern: /druid/*
|
||||
#login-username: admin
|
||||
#login-password: admin
|
||||
filter:
|
||||
stat:
|
||||
log-slow-sql: true
|
||||
slow-sql-millis: 1000
|
||||
merge-sql: false
|
||||
wall:
|
||||
config:
|
||||
multi-statement-allow: true
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
druid:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
# url: jdbc:mysql://59.110.212.44:3306/e_book?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
url: jdbc:mysql://59.110.212.44:3306/e_book_test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
username: root
|
||||
password: HSXY1234hsxy
|
||||
initial-size: 10
|
||||
max-active: 100
|
||||
min-idle: 10
|
||||
max-wait: 60000
|
||||
pool-prepared-statements: true
|
||||
max-pool-prepared-statement-per-connection-size: 20
|
||||
time-between-eviction-runs-millis: 60000
|
||||
min-evictable-idle-time-millis: 300000
|
||||
#Oracle需要打开注释
|
||||
#validation-query: SELECT 1 FROM DUAL
|
||||
test-while-idle: true
|
||||
test-on-borrow: false
|
||||
test-on-return: false
|
||||
stat-view-servlet:
|
||||
enabled: true
|
||||
url-pattern: /druid/*
|
||||
#login-username: admin
|
||||
#login-password: admin
|
||||
filter:
|
||||
stat:
|
||||
log-slow-sql: true
|
||||
slow-sql-millis: 1000
|
||||
merge-sql: false
|
||||
wall:
|
||||
config:
|
||||
multi-statement-allow: true
|
||||
|
||||
rabbitmq:
|
||||
host: 59.110.212.44
|
||||
port: 5672
|
||||
username: admin
|
||||
password: 751019
|
||||
virtualHost: /
|
||||
rabbitmq:
|
||||
host: 59.110.212.44
|
||||
port: 5672
|
||||
username: admin
|
||||
password: 751019
|
||||
virtualHost: /
|
||||
|
||||
aliyun:
|
||||
oss:
|
||||
file:
|
||||
endpoint: oss-cn-beijing.aliyuncs.com
|
||||
keyid: LTAIiSMeo8ztauV5
|
||||
keysecret: pVIYAOIFSUGg61lYfE8cjg2ZNpnLJA
|
||||
bucketname: ehh-private-01
|
||||
sms:
|
||||
accessKeyId: LTAI5tJbbw5fY97pnw635yq3
|
||||
accessKeySecret: LTXQ9v3OYVwNVbDWWfVpbbcVDKErKi
|
||||
singName: 疯子读书
|
||||
oss:
|
||||
file:
|
||||
endpoint: oss-cn-beijing.aliyuncs.com
|
||||
keyid: LTAIiSMeo8ztauV5
|
||||
keysecret: pVIYAOIFSUGg61lYfE8cjg2ZNpnLJA
|
||||
bucketname: ehh-private-01
|
||||
sms:
|
||||
accessKeyId: LTAI5tJbbw5fY97pnw635yq3
|
||||
accessKeySecret: LTXQ9v3OYVwNVbDWWfVpbbcVDKErKi
|
||||
singName: 疯子读书
|
||||
|
||||
templateCode: SMS_248840040
|
||||
templateCode: SMS_248840040
|
||||
|
||||
##多数据源的配置
|
||||
#dynamic:
|
||||
|
||||
@@ -12,7 +12,7 @@ connection-timeout: 6000000ms
|
||||
spring:
|
||||
# 环境 dev|test|prod
|
||||
profiles:
|
||||
active: dev
|
||||
active: prod
|
||||
# jackson时间格式化
|
||||
jackson:
|
||||
time-zone: GMT+8
|
||||
|
||||
@@ -13,18 +13,13 @@
|
||||
<result property="bookdIds" column="book_ids"/>
|
||||
</resultMap>
|
||||
|
||||
<!--
|
||||
SELECT
|
||||
spb.*
|
||||
FROM
|
||||
shop_proudict_book spb
|
||||
LEFT JOIN buy_order_detail bod ON spb.proudict_id = bod.product_id
|
||||
LEFT JOIN buy_order bo ON bo.order_id = bod.order_id
|
||||
WHERE
|
||||
bo.order_sn = '202305291720149121663113008012001282'
|
||||
-->
|
||||
|
||||
|
||||
<select id="getOrderBookId" parameterType="string" resultType="int">
|
||||
SELECT spb.book_id
|
||||
FROM shop_proudict_book spb
|
||||
LEFT JOIN buy_order_detail bod ON spb.proudict_id = bod.product_id
|
||||
LEFT JOIN buy_order bo ON bo.order_id = bod.order_id
|
||||
WHERE bo.order_sn = #{orderSn}
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.UserEbookBuyDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.UserEbookBuyEntity" id="userEbookBuyMap">
|
||||
<result property="buyId" column="buy_id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
@@ -16,9 +16,9 @@
|
||||
<result property="author" column="author"/>
|
||||
</resultMap>
|
||||
|
||||
<!--
|
||||
select book_id from user_ebook_buy where user_id = '10169'
|
||||
-->
|
||||
|
||||
|
||||
<select id="getUserBookId" parameterType="int" resultType="int">
|
||||
SELECT book_id
|
||||
FROM user_ebook_buy
|
||||
WHERE user_id = #{userId}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -1,50 +1,48 @@
|
||||
wxpay:
|
||||
#应用编号
|
||||
# ????
|
||||
wxpay.appId: wx47134a8f15083734
|
||||
#商户号
|
||||
# ???
|
||||
wxpay.mchId: 1612860909
|
||||
# APIv3密钥
|
||||
# API v3 ??
|
||||
wxpay.apiV3Key: 4aYFklzaULeGlr7oJPZ6rHWKcxjihZUF
|
||||
# 微信支付V3-url前缀
|
||||
# v3 - url
|
||||
wxpay.baseUrl: https://api.mch.weixin.qq.com/v3
|
||||
#po9k1ezoyexk.ngrok.xiaomiqiu123.top 内网穿透地址 测试ok 正式环境下切换服务器地址
|
||||
#po9k1ezoyexk.ngrok.xiaomiqiu123.top # ????????
|
||||
#wxpay.notifyUrl: http://101.201.146.165:9100
|
||||
|
||||
wxpay.notifyUrl: http://59.110.212.44:9100/pb/pay/payNotify
|
||||
|
||||
# 退款通知回调, pjm6m9.natappfree.cc 为内网穿透地址
|
||||
# ??????
|
||||
wxpay.refundNotifyUrl: http://pjm6m9.natappfree.cc/pay/refundNotify
|
||||
# 密钥路径,resources下 /usr/local/hs/peanut_book/target/classes/cent/apiclient_key.pem
|
||||
# ???? /usr/local/hs/peanut_book/target/classes/cent/apiclient_key.pem
|
||||
|
||||
wxpay.keyPemPath:C:/Users/Administrator/IdeaProjects/peanut_book/src/main/resources/cent/apiclient_key.pem
|
||||
wxpay.keyPemPath:C:/Users/Cauchy/IdeaProjects/nuttyreading-java/src/main/resources/cent/apiclient_key.pem
|
||||
#wxpay.keyPemPath:D:/hs/nuttyreading-java/src/main/resources/cent/apiclient_key.pem
|
||||
#商户证书序列号
|
||||
#???????
|
||||
wxpay.serialNo: 679AECB2F7AC4183033F713828892BA640E4EEE3
|
||||
#微信服务器地址
|
||||
#???????
|
||||
wxpay.domain: https://api.mch.weixin.qq.com
|
||||
|
||||
|
||||
#wxpay:
|
||||
##应用编号
|
||||
##????
|
||||
#wxpay.appId: wx47134a8f15083734
|
||||
##商户号
|
||||
##???
|
||||
#wxpay.mchId: 1612860909
|
||||
## APIv3密钥
|
||||
## APIv3??
|
||||
#wxpay.apiV3Key: 4aYFklzaULeGlr7oJPZ6rHWKcxjihZUF
|
||||
## 微信支付V3-url前缀
|
||||
## ????V3-url??
|
||||
#wxpay.baseUrl: https://api.mch.weixin.qq.com/v3
|
||||
##po9k1ezoyexk.ngrok.xiaomiqiu123.top 内网穿透地址 测试ok 正式环境下切换服务器地址
|
||||
##po9k1ezoyexk.ngrok.xiaomiqiu123.top ?????? ??ok ????????????
|
||||
#
|
||||
##wxpay.notifyUrl: http://101.201.146.165:9100
|
||||
#
|
||||
#wxpay.notifyUrl: http://59.110.212.44:9100/pb/pay/payNotify
|
||||
#
|
||||
## 退款通知回调, pjm6m9.natappfree.cc 为内网穿透地址
|
||||
## ??????, pjm6m9.natappfree.cc ???????
|
||||
#wxpay.refundNotifyUrl: http://pjm6m9.natappfree.cc/pay/refundNotify
|
||||
## 密钥路径,resources下 /usr/local/hs/peanut_book/target/classes/cent/apiclient_key.pem
|
||||
## ????,resources? /usr/local/hs/peanut_book/target/classes/cent/apiclient_key.pem
|
||||
#
|
||||
#wxpay.keyPemPath:/usr/local/hs/peanut_book/target/classes/cent/apiclient_key.pem
|
||||
##商户证书序列号
|
||||
##???????
|
||||
#wxpay.serialNo: 679AECB2F7AC4183033F713828892BA640E4EEE3
|
||||
##微信服务器地址
|
||||
#wxpay.domain: https://api.mch.weixin.qq.com
|
||||
##???????
|
||||
#wxpay.domain: https://api.mch.weixin.qq.com
|
||||
Reference in New Issue
Block a user