eee
This commit is contained in:
@@ -77,18 +77,11 @@ trait WxV3PaymentTait
|
||||
|
||||
$sign = $this->signature('POST', '/v3/pay/transactions/out-trade-no/' . $orderNo . '?mchid=' . $config->pay->wx->mchId, "");
|
||||
|
||||
var_dump($sign);
|
||||
|
||||
$client = $this->createClient($sign, "");
|
||||
$client->get('/v3/pay/transactions/out-trade-no/' . $orderNo . '?mchid=' . $config->pay->wx->mchId);
|
||||
$client->close();
|
||||
|
||||
$json = json_decode($client->getBody(), TRUE);
|
||||
if (!isset($json['prepay_id'])) {
|
||||
throw new Exception('微信支付调用失败: ' . $client->getBody());
|
||||
}
|
||||
|
||||
return $this->createResponse($json, null);
|
||||
return json_decode($client->getBody(), TRUE);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user