```
feat(shopro_huifu): 新增汇付个人进件自动提交功能 新增以下命令: - php think shopro_huifu:onboard-auto-submit(每 5-10 分钟自动提交) - php think shopro_huifu:onboard-poll(每 10 分钟轮询审核状态) - php think shopro_huifu:diagnose-freeze-flow(冻结/解冻链路诊断) 完善了汇付插件的 README 文档,包含新功能说明和安装验证步骤。 ```
这个提交包含在:
@@ -75,13 +75,20 @@ class WxShippingPayload
|
||||
$confirmTime = intval($ext['confirm_time']);
|
||||
}
|
||||
|
||||
return [
|
||||
'order_key' => [
|
||||
'order_number_type' => 2,
|
||||
'transaction_id' => $transactionId,
|
||||
],
|
||||
'received_time' => self::formatUploadTime($confirmTime),
|
||||
// 官方 POST /wxa/sec/order/notify_confirm_receive:received_time 为秒级时间戳(number),非 RFC3339
|
||||
$payload = [
|
||||
'transaction_id' => $transactionId,
|
||||
'received_time' => intval($confirmTime),
|
||||
];
|
||||
$mchid = WxOrderContext::resolveMchid($order);
|
||||
if ($mchid !== '') {
|
||||
$payload['merchant_id'] = $mchid;
|
||||
}
|
||||
$orderSn = trim((string) ($order['order_sn'] ?? ''));
|
||||
if ($orderSn !== '') {
|
||||
$payload['merchant_trade_no'] = $orderSn;
|
||||
}
|
||||
return $payload;
|
||||
}
|
||||
|
||||
protected static function buildShippingListItem(array $item, $order)
|
||||
|
||||
在新工单中引用
屏蔽一个用户