refactor(utils): 修复密码哈希比较逻辑错误 feat(user): 新增按状态筛选优惠券接口 docs: 添加虚拟发货与任务中心相关文档 fix(wechat): 修正Code2Session上下文传递问题 test: 补充订单折扣与积分转换测试用例 build: 更新配置文件与构建脚本 style: 清理多余的空行与注释
18 lines
598 B
Markdown
18 lines
598 B
Markdown
# 设计:虚拟发货
|
||
|
||
## 架构
|
||
- 回调 → 权益发放 → 上传虚拟发货 → 用户确认 → 结算。
|
||
|
||
## 接口
|
||
- 上传:`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=3`;`delivery_mode=1`;`shipping_list=[{ item_desc }]`。
|
||
|
||
## 异常与幂等
|
||
- 以 `transaction_id` 唯一;成功后不重复上传;错误留痕与重试。
|
||
|