This commit is contained in:
2026-06-12 23:57:22 +08:00
parent 0a535c3a89
commit 63e24922ad
15 changed files with 39 additions and 39 deletions
+2 -2
View File
@@ -32,9 +32,9 @@ class WxV3Payment extends SmallProgram
$client->post('/v3/pay/transactions/jsapi');
$client->close();
$json = json_decode($client->getBody(), TRUE);
$json = json_decode($client->body, TRUE);
if (!isset($json['prepay_id'])) {
throw new Exception('微信支付调用失败: ' . $client->getBody());
throw new Exception('微信支付调用失败: ' . $client->body);
}
return $this->createResponse($json, $body);