From ef02366345111d8a9569607d21892b00d1fcad2b Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 30 Oct 2018 18:57:17 +0800 Subject: [PATCH] Update WeChat/Contracts/BasicAliPay.php --- WeChat/Contracts/BasicAliPay.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/WeChat/Contracts/BasicAliPay.php b/WeChat/Contracts/BasicAliPay.php index f3b2e62..826446e 100644 --- a/WeChat/Contracts/BasicAliPay.php +++ b/WeChat/Contracts/BasicAliPay.php @@ -59,6 +59,12 @@ abstract class BasicAliPay if (empty($options['appid'])) { throw new InvalidArgumentException("Missing Config -- [appid]"); } + if (empty($options['public_key'])) { + throw new InvalidArgumentException("Missing Config -- [public_key]"); + } + if (empty($options['private_key'])) { + throw new InvalidArgumentException("Missing Config -- [private_key]"); + } if (!empty($options['debug'])) { $this->gateway = 'https://openapi.alipaydev.com/gateway.do?charset=utf-8'; }