test
This commit is contained in:
parent
1a510da704
commit
81b93492e1
@ -65,9 +65,7 @@ class WechatPayService
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$appid = config("wechat.official_account.default.app_id");
|
$appid = config("wechat.official_account.default.app_id");
|
||||||
$instance = $this->newClient();
|
$data = [
|
||||||
$resp = $instance->chain('v3/fund-app/mch-transfer/transfer-bills')->post([
|
|
||||||
"json" => [
|
|
||||||
"appid" => $appid,
|
"appid" => $appid,
|
||||||
"out_bill_no" => $trade_no,
|
"out_bill_no" => $trade_no,
|
||||||
"transfer_scene_id" => (string) $scene_id,
|
"transfer_scene_id" => (string) $scene_id,
|
||||||
@ -75,7 +73,11 @@ class WechatPayService
|
|||||||
"transfer_amount" => $amount,
|
"transfer_amount" => $amount,
|
||||||
"transfer_remark" => $remark,
|
"transfer_remark" => $remark,
|
||||||
"transfer_scene_report_infos" => $transfer_scene_report_infos
|
"transfer_scene_report_infos" => $transfer_scene_report_infos
|
||||||
]
|
];
|
||||||
|
Log::info("转账数据", $data);
|
||||||
|
$instance = $this->newClient();
|
||||||
|
$resp = $instance->chain('v3/fund-app/mch-transfer/transfer-bills')->post([
|
||||||
|
"json" => $data
|
||||||
]);
|
]);
|
||||||
$res = json_decode($resp->getBody(), true);
|
$res = json_decode($resp->getBody(), true);
|
||||||
dd($res);
|
dd($res);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user