[go: up one dir, main page]

Skip to content

Commit

Permalink
fix: 微信 V3 提现增加自动统计金额
Browse files Browse the repository at this point in the history
  • Loading branch information
zoujingli committed Aug 4, 2024
1 parent d05f53e commit c102bfa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions WePayV3/Transfers.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ public function batchs($body)
if (empty($body['total_num'])) {
$body['total_num'] = count($body['transfer_detail_list']);
}
if (empty($body['total_amount'])) {
$body['total_amount'] = array_sum(array_column($body['transfer_detail_list'], 'transfer_amount'));
}
return $this->doRequest('POST', '/v3/transfer/batches', json_encode($body, JSON_UNESCAPED_UNICODE), true);
}

Expand Down

0 comments on commit c102bfa

Please sign in to comment.