fix some styles

This commit is contained in:
yansongda 2018-02-07 23:32:58 +08:00
parent b906314c70
commit b4e7c99b76

View File

@ -20,7 +20,7 @@ class TransferGateway extends Gateway
*/
public function pay($endpoint, array $payload): Collection
{
$type = isset($order['type']) ? ($order['type'].($order['type'] == 'app' ?: '_').'id') : 'app_id';
$type = isset($payload['type']) ? ($payload['type'].($payload['type'] == 'app' ?: '_').'id') : 'app_id';
$payload['mch_appid'] = $this->config->get($type, '');
$payload['mchid'] = $payload['mch_id'];