PDF2需求修复 - v1.16

## 修复
1. 资源对接:去掉"擅长什么"只保留两项
2. 资源对接:需登录+购买章节才能使用
3. 手机号API:修复AppSecret配置错误
4. 小程序码API:修复AppSecret配置错误
5. 获取地址:增强错误处理

## AppSecret统一
- qrcode/phone API统一使用正确的AppSecret

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
卡若
2026-01-29 16:17:56 +08:00
parent 132743ce34
commit 8f01de4f9a
7 changed files with 114 additions and 45 deletions

View File

@@ -185,6 +185,40 @@ Page({
handleMatchClick() {
const currentType = MATCH_TYPES.find(t => t.id === this.data.selectedType)
// 资源对接类型需要登录+购买章节才能使用
if (currentType && currentType.id === 'investor') {
// 检查是否登录
if (!this.data.isLoggedIn) {
wx.showModal({
title: '需要登录',
content: '请先登录后再使用资源对接功能',
confirmText: '去登录',
success: (res) => {
if (res.confirm) {
wx.switchTab({ url: '/pages/my/my' })
}
}
})
return
}
// 检查是否购买过章节
const hasPurchased = app.globalData.purchasedSections?.length > 0 || app.globalData.hasFullBook
if (!hasPurchased) {
wx.showModal({
title: '需要购买章节',
content: '购买任意章节后即可使用资源对接功能',
confirmText: '去购买',
success: (res) => {
if (res.confirm) {
wx.switchTab({ url: '/pages/catalog/catalog' })
}
}
})
return
}
}
// 如果是需要填写联系方式的类型(资源对接、导师顾问、团队招募)
if (currentType && currentType.showJoinAfterMatch) {
// 先检查是否已绑定联系方式