qlg.tsgz.moe/extend/wxpay/WxPayConf.php
2019-09-06 23:53:10 +08:00

31 lines
727 B
PHP
Executable File

<?php
/**
* 配置账号信息
*/
class WxPayConf {
static public $APPID;
static public $APPSECRET;
static public $MCHID;
static public $KEY;
static public $CURL_TIMEOUT;
static public $NOTIFY_URL;
static public $RETURN_URL;
// =======【基本信息设置】=====================================
public function __construct($wxpayconfig = array()) {
self::$APPID = $wxpayconfig['appid'];
self::$APPSECRET = $wxpayconfig['appsecret'];
self::$MCHID = $wxpayconfig['mchid'];
self::$KEY = $wxpayconfig['key'];
self::$CURL_TIMEOUT = $wxpayconfig['curl_timeout'];
self::$NOTIFY_URL = $wxpayconfig['notifyurl'];
self::$RETURN_URL = $wxpayconfig['returnurl'];
}
}
?>