9276ab9028
## 新增功能 - 冲刺版 ¥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 新增小程序编译上传章节、清理检查清单
40 lines
1.0 KiB
JavaScript
40 lines
1.0 KiB
JavaScript
const ci = require('miniprogram-ci')
|
|
const path = require('path')
|
|
|
|
const projectPath = path.resolve(__dirname, '../dist/build/mp-weixin')
|
|
const privateKeyPath = path.resolve('/root/opencode-workspace/微信小程序参数/宇之然AI磁场appid/private.wxf466b3c3bc411ffc.key')
|
|
const appid = 'wxf466b3c3bc411ffc'
|
|
|
|
async function main() {
|
|
const project = new ci.Project({
|
|
appid,
|
|
type: 'miniProgram',
|
|
projectPath,
|
|
privateKeyPath,
|
|
ignores: ['node_modules/**/*'],
|
|
})
|
|
|
|
console.log(`Uploading from: ${projectPath}`)
|
|
console.log(`AppID: ${appid}`)
|
|
|
|
// Dry-run mode for testing — set raw false to actually upload
|
|
// For testing, we do a preview first
|
|
try {
|
|
const previewResult = await ci.preview({
|
|
project,
|
|
desc: '预览测试',
|
|
setting: {
|
|
es6: true,
|
|
minify: false,
|
|
},
|
|
})
|
|
console.log('Preview success!')
|
|
console.log('Preview result:', JSON.stringify(previewResult, null, 2))
|
|
} catch (err) {
|
|
console.error('Preview failed:', err.message)
|
|
process.exit(1)
|
|
}
|
|
}
|
|
|
|
main()
|