mirror of
https://gitee.com/yansongda/pay.git
synced 2024-12-05 21:58:26 +08:00
fix #69
This commit is contained in:
parent
cef9a39bc2
commit
df401f7cef
@ -65,7 +65,6 @@ class Support
|
||||
self::toXml($data),
|
||||
($certClient !== null && $certKey !== null) ? ['cert' => $certClient, 'ssl_key' => $certKey] : []
|
||||
);
|
||||
|
||||
$result = is_array($result) ? $result : self::fromXml($result);
|
||||
|
||||
if (!isset($result['return_code']) || $result['return_code'] != 'SUCCESS' || $result['result_code'] != 'SUCCESS') {
|
||||
@ -76,7 +75,7 @@ class Support
|
||||
);
|
||||
}
|
||||
|
||||
if (self::generateSign($result, $key) === $result['sign']) {
|
||||
if (self::generateSign($result, $key) === $result['sign'] || $endpoint === 'mmpaymkttransfers/promotion/transfers') {
|
||||
return new Collection($result);
|
||||
}
|
||||
|
||||
|
@ -26,6 +26,8 @@ class TransferGateway extends Gateway
|
||||
|
||||
unset($payload['appid'], $payload['mch_id'], $payload['trade_type'], $payload['notify_url']);
|
||||
|
||||
$payload['sign'] = Support::generateSign($payload, $this->config->get('key'));
|
||||
|
||||
Log::debug('Paying A Transfer Order:', [$endpoint, $payload]);
|
||||
|
||||
return Support::requestApi(
|
||||
|
Loading…
Reference in New Issue
Block a user