fix: 第1批 M2、M3、M16、M23 导入与展示类缺陷
Some checks failed
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Failing after 8h37m36s

- M2 批量换绑表头改为“平台登录账号”,只认手机号,细分格式、不存在、多匹配、非平台、已禁用失败原因
- M3 后台订单列表与详情返回 C 端在线购买的交易流水号、支付渠道、商户名称,详情新增全部支付单 payments
- M16 预警规则不再返回 real_data_mb,预警列表/详情新增 threshold_mb,导出末列追加“阈值流量(MB)”
- M23 设备导入 IMEI 必填,空 IMEI 行记为失败
- OpenSpec Change fix-august-iteration-follow-up-gaps:13/18,导入任务、导出任务的 Worker 端到端验证与前端/运营通知待部署后完成
This commit is contained in:
邹进
2026-10-11 23:49:29 +09:00
parent 260fec7114
commit 25c081fe60
24 changed files with 553 additions and 42 deletions

View File

@@ -95,6 +95,32 @@ type OrderResponse struct {
// 资产标识符快照
AssetIdentifier string `json:"asset_identifier,omitempty" description:"下单时资产的标识符快照(卡为 ICCID,设备优先使用 VirtualNo,缺失时使用 IMEI)"`
AssetType string `json:"asset_type,omitempty" description:"资产类型 (card:单卡, device:设备)"`
// C 端在线购买的原始支付信息:仅个人客户以微信或支付宝支付、订单已支付或已退款时有值,其余为空串
ThirdPartyTradeNo string `json:"third_party_trade_no" description:"交易流水号(C 端微信/支付宝在线购买且已支付或已退款时取已支付支付单,其余为空串)"`
PaymentChannel string `json:"payment_channel" description:"支付渠道类型 (wechat:微信直连v3, wechat_v2:微信直连v2, fuiou:富友);取已支付支付单快照,无快照按原支付配置推断,取不到为空串"`
PaymentMerchantName string `json:"payment_merchant_name" description:"收款商户名称快照,没有为空串"`
}
// OrderDetailResponse 后台订单详情响应:在订单字段之外返回该订单的全部支付单。
type OrderDetailResponse struct {
*OrderResponse
Payments []*OrderPaymentResponse `json:"payments" description:"该订单全部支付单(仅个人客户微信/支付宝订单,按创建时间倒序;其他订单为空数组)"`
}
// OrderPaymentResponse 后台订单详情中的单条支付单;不含二维码、商户号、路由与支付配置等内部字段。
type OrderPaymentResponse struct {
PaymentNo string `json:"payment_no" description:"支付单号"`
PaymentMethod string `json:"payment_method" description:"支付方式 (wechat:微信支付, alipay:支付宝支付)"`
PaymentChannel string `json:"payment_channel" description:"支付渠道类型 (wechat:微信直连v3, wechat_v2:微信直连v2, fuiou:富友),取不到为空串"`
PaymentMerchantName string `json:"payment_merchant_name" description:"收款商户名称快照,没有为空串"`
ThirdPartyTradeNo string `json:"third_party_trade_no" description:"交易流水号,没有为空串"`
Amount int64 `json:"amount" description:"支付金额(分)"`
Status int `json:"status" description:"支付单状态 (0:待支付, 1:已支付, 2:已失败, 3:已退款)"`
StatusName string `json:"status_name" description:"支付单状态名称"`
CreatedAt time.Time `json:"created_at" description:"创建时间"`
PaidAt *time.Time `json:"paid_at" description:"支付时间"`
ExpireAt *time.Time `json:"expire_at" description:"过期时间"`
}
type OrderListResponse struct {