mirror of
https://gitee.com/yansongda/pay.git
synced 2024-12-05 13:48:53 +08:00
fix: style
This commit is contained in:
parent
fd3272c309
commit
413d5511de
@ -70,7 +70,7 @@ class Wechat implements GatewayApplicationInterface
|
||||
public function __construct(Config $config)
|
||||
{
|
||||
$this->config = $config;
|
||||
$this->mode = $this->config->get('mode', Wechat::MODE_NORMAL);
|
||||
$this->mode = $this->config->get('mode', self::MODE_NORMAL);
|
||||
$this->gateway = Support::baseUri($this->mode);
|
||||
$this->payload = [
|
||||
'appid' => $this->config->get('app_id', ''),
|
||||
|
@ -105,7 +105,7 @@ class Support
|
||||
$payload['appid'] = $config->get($type, '');
|
||||
$mode = $config->get('mode', Wechat::MODE_NORMAL);
|
||||
if ($mode === Wechat::MODE_SERVICE) {
|
||||
$payload['sub_appid'] = $config->get('sub_' . $type, '');
|
||||
$payload['sub_appid'] = $config->get('sub_'.$type, '');
|
||||
}
|
||||
|
||||
unset($payload['notify_url'], $payload['trade_type'], $payload['type']);
|
||||
|
Loading…
Reference in New Issue
Block a user