feat: 同步本地三端改动并清理上传凭证风险

整合小程序、管理端与后端的最新本地改动,补齐用户管理与首页入口相关能力;提交前已完成敏感信息扫描,并移除本地 gitea 远程 URL 中的明文凭证,避免隐私信息进入远程仓库。

Made-with: Cursor
This commit is contained in:
卡若
2026-04-06 15:59:34 +08:00
parent b1cc4be1c2
commit 6d11fb295d
126 changed files with 5789 additions and 2791 deletions

View File

@@ -125,14 +125,15 @@ Page({
wx.showToast({ title: '请先登录后再支付', icon: 'none' })
return
}
let openId = app.globalData.openId || wx.getStorageSync('openId')
wx.showLoading({ title: '获取支付凭证...', mask: true })
const openId = await app.ensurePayOpenId()
wx.hideLoading()
if (!openId) {
wx.showLoading({ title: '获取支付凭证...', mask: true })
openId = await app.getOpenId()
wx.hideLoading()
}
if (!openId) {
wx.showToast({ title: '请先登录', icon: 'none' })
wx.showModal({
title: '无法拉起支付',
content: '未获取到微信支付标识,请完全关闭小程序后重新进入,或退出账号重新登录。',
showCancel: false,
})
return
}
let { requestSn, sectionId, detail, giftQuantity, isCreateMode } = this.data