eee
This commit is contained in:
@@ -32,7 +32,7 @@ class WxV3Withdrawal extends SmallProgram
|
||||
$client->post('/v3/pay/transactions/batches');
|
||||
$client->close();
|
||||
|
||||
$json = json_decode($client->getBody(), TRUE);
|
||||
$json = json_decode($client->body, TRUE);
|
||||
if (!isset($json['prepay_id'])) {
|
||||
throw new Exception('微信支付调用失败');
|
||||
}
|
||||
@@ -88,10 +88,10 @@ class WxV3Withdrawal extends SmallProgram
|
||||
$client->post('/v3/fund-app/mch-transfer/transfer-bills');
|
||||
$client->close();
|
||||
|
||||
Kiri::getLogger()->println($client->getBody());
|
||||
Kiri::getLogger()->println($client->body);
|
||||
|
||||
if ($client->getStatusCode() == 200) {
|
||||
return json_decode($client->getBody(), TRUE);
|
||||
if ($client->statusCode == 200) {
|
||||
return json_decode($client->body, TRUE);
|
||||
}
|
||||
throw new Exception('转账申请发起失败');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user