20,359
社区成员
发帖
与我相关
我的任务
分享
<?php
namespace Think\Pay\Driver;
class Alipay extends \Think\Pay\Pay {
protected $gateway = 'https://mapi.alipay.com/gateway.do';
protected $verify_url = 'http://notify.alipay.com/trade/notify_query.do';
protected $config = array(
'email' => C('ALIPAYEMAIL'), //这部分报错
'key' => C('ALIPAYKEY'),
'partner' => C('ALIPAYPARTNER')
);
public function check() {
if (!$this->config['email'] || !$this->config['key'] || !$this->config['partner']) {
E("支付宝账号未开通!");
}
return true;
}