Files
as-daycard-openapi/src/main/resources/application.yml
zhaogd 8385196b38 feat: 移除mock支付、卡不可复用、新增设备端取消订单接口
1. 移除所有mock支付逻辑,订单强制走微信支付
2. 卡状态流转改为单向:UNUSED->RESERVED->USED(终态不可复用)
3. 解绑接口改为仅清除device_id,卡状态保持USED
4. 新增设备端取消订单接口 POST /api/jst/daycard/cancel/{orderNo}
5. 修复微信回调验签header大小写问题
6. 临时注释分账标记(商户号未开通分账权限)
7. 删除多余的App UI辅助接口(ApiJstUiController)
8. 清理application.yml中无用UI配置
2026-08-06 13:43:34 +08:00

94 lines
2.7 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tomcat
server:
tomcat:
uri-encoding: UTF-8
threads:
max: 1000
min-spare: 30
connection-timeout: 5000ms
basedir: .
accesslog:
enabled: true
pattern: '%t %a "%r" %s %b %Dms'
suffix: .log
prefix: access_log
directory: logs
port: ${SERVER_PORT:8084}
servlet:
context-path: /
spring:
# 环境 dev|test|prod,通过环境变量 SPRING_PROFILES_ACTIVE 指定
profiles:
active: ${SPRING_PROFILES_ACTIVE:dev}
# jackson时间格式化
jackson:
time-zone: Asia/Shanghai
date-format: yyyy-MM-dd HH:mm:ss
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
enabled: true
mvc:
throw-exception-if-no-handler-found: true
pathmatch:
matching-strategy: ANT_PATH_MATCHER
#mybatis
mybatis-plus:
mapper-locations: classpath*:/mapper/**/*.xml
#实体扫描,多个package用逗号或者分号分隔
typeAliasesPackage: io.as.modules.*.entity,io.as.modules.*.entity,io.as.modules.device.entity,io.as.modules.jst.entity
global-config:
db-config:
id-type: AUTO
logic-delete-value: -1
logic-not-delete-value: 0
banner: false
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
jdbc-type-for-null: 'null'
renren:
redis:
open: ${REDIS_OPEN:true}
jwt:
secret: ${JWT_SECRET:daycard-openapi-secret-change-in-prod-2026}
expire: ${JWT_EXPIRE:604800}
header: ${JWT_HEADER:token}
api:
device-sign-secret: ${API_SIGN_SECRET:daycard-partner-sign-secret-change-in-prod}
# 天卡业务配置
daycard:
# 订单超时时间(分钟)
order-timeout-minutes: ${DAYCARD_ORDER_TIMEOUT:15}
# 天卡有效期(小时)
card-valid-hours: ${DAYCARD_VALID_HOURS:24}
# 超时取消任务每次处理数量
cancel-batch-size: ${DAYCARD_CANCEL_BATCH:200}
# 微信支付配置
wechat:
pay:
app-id: ${WECHAT_PAY_APP_ID:}
mch-id: ${WECHAT_PAY_MCH_ID:}
api-v3-key: ${WECHAT_PAY_API_V3_KEY:}
cert-serial-no: ${WECHAT_PAY_CERT_SERIAL_NO:}
private-key: ${WECHAT_PAY_PRIVATE_KEY:}
notify-url: ${WECHAT_PAY_NOTIFY_URL:}
# 橘视厅媒资接口配置(对应 Android 端 ApiConfig.kt)
jetsen:
media:
base-url: ${JETSEN_MEDIA_BASE_URL:https://servhub-ep03.future.jetsentv.com/}
path-prefix: ${JETSEN_MEDIA_PATH_PREFIX:/IPTVPortalInterface}
sp-token: ${JETSEN_MEDIA_SP_TOKEN:9006874392099a89506142c6df9e3314}
portal-code: ${JETSEN_MEDIA_PORTAL_CODE:PCODE-JC}
sign-key: ${JETSEN_MEDIA_SIGN_KEY:alltvjs}
channel-id: ${JETSEN_MEDIA_CHANNEL_ID:001}
export-page-size: ${JETSEN_MEDIA_EXPORT_PAGE_SIZE:50}
export-max-rows: ${JETSEN_MEDIA_EXPORT_MAX_ROWS:5000}