v4.2 冲刺版+每日推送+支付修复+全量代码评审
## 新增功能 - 冲刺版 ¥49.9/月:完整支付→激活→权益扣减链路 - 每日一题定时推送(@nestjs/schedule,早8点微信订阅消息) - miniprogram-ci 编译上传脚本(scripts/upload-mp.js) ## Bug修复 - 套餐值统一:vip→growth/sprint(interview轮次限制、analyze次数检查) - member/pay 移除开发绕过:改为订单校验后激活 - progress→report 参数名不匹配:id→interviewId - result.vue resume.create() 参数传错(对象→独立参数) - resume.vue analyze请求缺少Authorization header - bank.vue contribution请求缺少Authorization header - member.vue startPay() 缺少try/catch导致网络错误崩溃 - login.vue 调试面板 v-if="true" 生产泄漏 ## 配置 - 微信支付生产证书就位(商户号1113760598) - .env 清理冗余文件(删除.example/.production) - WX_NOTIFY_URL 更新为 zhiyinwx.yzrcloud.cn ## 文档 - PROJECT-STATUS.md v4.1→v4.2,状态全面更新 - DEPLOYMENT.md 新增小程序编译上传章节、清理检查清单
This commit is contained in:
@@ -40,8 +40,10 @@ export const apiService = {
|
||||
stats: () => request(API_ENDPOINTS.INTERVIEW.STATS, 'GET', undefined, true),
|
||||
},
|
||||
analyze: {
|
||||
diagnosis: (content: string) => request(API_ENDPOINTS.ANALYZE.DIAGNOSIS, 'POST', { content }),
|
||||
optimize: (content: string, direction: string) => request(API_ENDPOINTS.ANALYZE.OPTIMIZE, 'POST', { content, direction }),
|
||||
diagnosis: (content: string) => request(API_ENDPOINTS.ANALYZE.DIAGNOSIS, 'POST', { content }, true),
|
||||
optimize: (content: string, direction: string) => request(API_ENDPOINTS.ANALYZE.OPTIMIZE, 'POST', { content, direction }, true),
|
||||
skillsGap: (targetPosition?: string) =>
|
||||
request(API_ENDPOINTS.ANALYZE.SKILLS_GAP, 'POST', { targetPosition }, true),
|
||||
},
|
||||
resume: {
|
||||
create: (title: string, content: string, targetPosition?: string) =>
|
||||
@@ -49,6 +51,38 @@ export const apiService = {
|
||||
list: () => request(API_ENDPOINTS.RESUME.LIST, 'GET', undefined, true),
|
||||
delete: (id: string) => request(API_ENDPOINTS.RESUME.DELETE(id), 'DELETE', undefined, true),
|
||||
},
|
||||
progress: {
|
||||
get: () => request(API_ENDPOINTS.PROGRESS.GET, 'GET', undefined, true),
|
||||
stats: () => request(API_ENDPOINTS.PROGRESS.STATS, 'GET', undefined, true),
|
||||
},
|
||||
contribution: {
|
||||
create: (data: any) => request(API_ENDPOINTS.CONTRIBUTION.CREATE, 'POST', data, true),
|
||||
my: () => request(API_ENDPOINTS.CONTRIBUTION.MY, 'GET', undefined, true),
|
||||
bank: (company: string, position: string) =>
|
||||
request(API_ENDPOINTS.CONTRIBUTION.BANK(company, position), 'GET', undefined, true),
|
||||
company: (company: string) =>
|
||||
request(API_ENDPOINTS.CONTRIBUTION.COMPANY(company), 'GET', undefined, true),
|
||||
},
|
||||
member: {
|
||||
plans: () => request(API_ENDPOINTS.MEMBER.PLANS, 'GET', undefined),
|
||||
status: () => request(API_ENDPOINTS.MEMBER.STATUS, 'GET', undefined, true),
|
||||
pay: (outTradeNo: string) => request(API_ENDPOINTS.MEMBER.PAY, 'POST', { outTradeNo }, true),
|
||||
sprintDeduct: () => request(API_ENDPOINTS.MEMBER.SPRINT_DEDUCT, 'POST', undefined, true),
|
||||
},
|
||||
payment: {
|
||||
create: (plan: string) => request(API_ENDPOINTS.PAYMENT.CREATE, 'POST', { plan }, true),
|
||||
jsapi: (plan: string) => request(API_ENDPOINTS.PAYMENT.JSAPI, 'POST', { plan }, true),
|
||||
check: (outTradeNo: string) => request(API_ENDPOINTS.PAYMENT.CHECK(outTradeNo), 'GET', undefined, true),
|
||||
activate: (outTradeNo: string) => request(API_ENDPOINTS.PAYMENT.ACTIVATE, 'POST', { outTradeNo }, true),
|
||||
},
|
||||
dailyQuestion: {
|
||||
today: (position?: string) => {
|
||||
const query = position ? `?position=${encodeURIComponent(position)}` : ''
|
||||
return request(API_ENDPOINTS.DAILY_QUESTION.TODAY + query, 'GET', undefined, true)
|
||||
},
|
||||
byPosition: (position: string) =>
|
||||
request(API_ENDPOINTS.DAILY_QUESTION.BY_POSITION(position), 'GET', undefined, true),
|
||||
},
|
||||
}
|
||||
|
||||
export default apiService
|
||||
|
||||
Reference in New Issue
Block a user