修复支付 导出最新sql

This commit is contained in:
hupeng
2023-10-11 11:39:10 +08:00
parent 85b0868dde
commit 441dad9ef6
30 changed files with 838 additions and 122 deletions

View File

@ -12,8 +12,8 @@ COPY ./target/yshop-server.jar app.jar
## 设置 JAVA_OPTS 环境变量,可通过 docker run -e "JAVA_OPTS=" 进行覆盖
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms512m -Xmx512m"
## 暴露后端项目的 48080 端口
EXPOSE 48080
## 暴露后端项目的 48082 端口
EXPOSE 48082
## 启动后端项目
CMD java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar app.jar

View File

@ -1,5 +1,5 @@
server:
port: 48080
port: 48082
--- #################### 数据库相关配置 ####################

View File

@ -1,5 +1,5 @@
server:
port: 48080
port: 48082
--- #################### 数据库相关配置 ####################
@ -173,8 +173,8 @@ wx:
key-prefix: wx # Redis Key 的前缀 TODO 解决下 Redis key 管理的配置
http-client-type: HttpClient # 采用 HttpClient 请求微信公众号平台
miniapp: # 小程序配置(必填),参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-miniapp-spring-boot-starter/README.md 文档
appid: wx63c280fe3248a3e7
secret: 6f270509224a7ae1296bbf1c8cb97aed
appid: wx604d2ea4702620d2
secret: 0beb4dad95fbd97cbaf2a0a4dec51575
config-storage:
type: RedisTemplate # 采用 RedisTemplate 操作 Redis会自动从 Spring 中获取
key-prefix: wa # Redis Key 的前缀 TODO yshop解决下 Redis key 管理的配置
@ -193,9 +193,6 @@ yshop:
exclude-urls: # 如下两个 url仅仅是为了演示去掉配置也没关系
- ${spring.boot.admin.context-path}/** # 不处理 Spring Boot Admin 的请求
- ${management.endpoints.web.base-path}/** # 不处理 Actuator 的请求
pay:
callback-url: http://yshop.natapp1.cc/admin-api/pay/notify/callback
return-url: http://yshop.natapp1.cc/admin-api/pay/notify/return
access-log: # 访问日志的配置项
enable: false
error-code: # 错误码相关配置项
@ -219,6 +216,10 @@ justauth:
client-secret: ${wx.miniapp.secret}
ignore-check-redirect-uri: true
ignore-check-state: true # 微信小程序,不会使用到 state所以不进行校验
WECHAT_OPEN: #微信开发平台
client-id: 10**********6
client-secret: 1f7d08**********5b7**********29e
redirect-uri: http://oauth.xkcoding.com/demo/oauth/wechat_open/callback
cache:
type: REDIS

View File

@ -16,7 +16,7 @@
<script>
let shopOrderId = undefined;
let payOrderId = undefined;
// let server = 'http://127.0.0.1:48080';
// let server = 'http://127.0.0.1:48082';
let server = 'http://niubi.natapp1.cc';
// TODO openid
let openid = "ockUAwIZ-0OeMZl9ogcZ4ILrGba0";