bindbox-game/docs/虚拟发货/DESIGN_虚拟发货.md
邹方成 45815bfb7d chore: 清理无用文件与优化代码结构
refactor(utils): 修复密码哈希比较逻辑错误
feat(user): 新增按状态筛选优惠券接口
docs: 添加虚拟发货与任务中心相关文档
fix(wechat): 修正Code2Session上下文传递问题
test: 补充订单折扣与积分转换测试用例
build: 更新配置文件与构建脚本
style: 清理多余的空行与注释
2025-12-18 17:35:55 +08:00

598 B
Raw Blame History

设计:虚拟发货

架构

  • 回调 → 权益发放 → 上传虚拟发货 → 用户确认 → 结算。

接口

  • 上传:POST /wxa/sec/order/upload_shipping_info?access_token=...
  • 跳转:POST /wxa/sec/order/set_msg_jump_path?access_token=...
  • 组件:wx.openBusinessView({ businessType: 'weappOrderConfirm' })

数据映射

  • order_key.order_number_type=2 使用 transaction_id
  • logistics_type=3delivery_mode=1shipping_list=[{ item_desc }]

异常与幂等

  • transaction_id 唯一;成功后不重复上传;错误留痕与重试。