mirror of
https://gitee.com/yansongda/pay.git
synced 2024-12-02 12:17:38 +08:00
优化 Alipay 代码
This commit is contained in:
parent
f784cf0f8f
commit
461cfcfc1e
@ -41,14 +41,14 @@ abstract class Alipay implements GatewayInterface
|
||||
*/
|
||||
public function __construct(array $config)
|
||||
{
|
||||
if ($config['app_id'] === '') {
|
||||
$this->user_config = new Config($config);
|
||||
|
||||
if (is_null($this->user_config->get('app_id'))) {
|
||||
throw new InvalidArgumentException("Missing Config -- [app_id]");
|
||||
}
|
||||
|
||||
$this->user_config = new Config($config);
|
||||
|
||||
$this->config = [
|
||||
'app_id' => $this->user_config->get('app_id', ''),
|
||||
'app_id' => ,
|
||||
'method' => '',
|
||||
'format' => 'JSON',
|
||||
'charset' => 'utf-8',
|
||||
|
Loading…
Reference in New Issue
Block a user