|
|
@@ -1,78 +0,0 @@
|
|
|
-<?php
|
|
|
-return [
|
|
|
- 'accountTypes'=>[
|
|
|
- 1=>'订单收入',
|
|
|
- 2=>'充值保证金',
|
|
|
- 3=>'退保申请',
|
|
|
- 4=>'收入提现',
|
|
|
- 5=>'提现驳回',
|
|
|
- ],
|
|
|
- 'wechat' => [
|
|
|
- 'wechat'=>[
|
|
|
- 'default' => [
|
|
|
- // 必填-商户号
|
|
|
- 'mch_id' => '',
|
|
|
- // 必填-v3商户秘钥
|
|
|
- 'mch_secret_key' => '',
|
|
|
- // 必填-商户私钥 字符串或路径
|
|
|
- 'mch_secret_cert' => base_path().'/resources/certs/wechat/apiclient_key.pem',
|
|
|
- // 必填-商户公钥证书路径
|
|
|
- 'mch_public_cert_path' => base_path().'/resources/certs/wechat/apiclient_cert.pem',
|
|
|
- // 选填-微信公钥证书路径, optional,强烈建议 php-fpm 模式下配置此参数
|
|
|
- 'wechat_public_cert_path' => [
|
|
|
- //前面是证书***,登录商户平台【API安全】->【API证书】->【查看证书】,可查看商户API证书***
|
|
|
- 'PUB_KEY_ID_0116426419052026020300212051002834' => base_path().'/resources/certs/wechat/pub_key.pem',
|
|
|
- ],
|
|
|
- // 必填
|
|
|
- 'notify_url' => '',
|
|
|
- // 选填-默认为正常模式。可选为: MODE_NORMAL, MODE_SERVICE
|
|
|
- 'mode' => 0,
|
|
|
- ],
|
|
|
- ],
|
|
|
- 'logger' => [ // optional
|
|
|
- 'enable' => true,
|
|
|
- 'file' => base_path().'/storage/logs/wechat.log',
|
|
|
- 'level' => 'info', // 建议生产环境等级调整为 info,开发环境为 debug
|
|
|
- 'type' => 'single', // optional, 可选 daily.
|
|
|
- 'max_file' => 7, // optional, 当 type 为 daily 时有效,默认 30 天
|
|
|
- ],
|
|
|
- 'http' => [ // optional
|
|
|
- 'timeout' => 5.0,
|
|
|
- 'connect_timeout' => 5.0,
|
|
|
- ],
|
|
|
- ],
|
|
|
- 'alipay'=> [
|
|
|
- 'alipay' => [
|
|
|
- 'default' => [
|
|
|
- // 必填-支付宝分配的 app_id
|
|
|
- 'app_id' => '',
|
|
|
- // 必填-应用私钥 字符串或路径
|
|
|
- 'app_secret_cert' => '',
|
|
|
- // 必填-应用公钥证书 路径
|
|
|
- 'app_public_cert_path' => base_path().'/resources/certs/alipay/appCertPublicKey.crt',
|
|
|
- // 必填-支付宝公钥证书 路径
|
|
|
- 'alipay_public_cert_path' => base_path().'/resources/certs/alipay/alipayCertPublicKey_RSA2.crt',
|
|
|
- // 必填-支付宝根证书 路径
|
|
|
- 'alipay_root_cert_path' => base_path().'/resources/certs/alipay/alipayRootCert.crt',
|
|
|
- // 直接回调地址
|
|
|
- 'return_url' => '',
|
|
|
- // 必填
|
|
|
- 'notify_url' => '',
|
|
|
-// 'notify_url' => 'https://yansongda.cn/alipay/notify',
|
|
|
- // 选填-默认为正常模式。可选为: MODE_NORMAL, MODE_SERVICE
|
|
|
- 'mode' => 0,
|
|
|
- ]
|
|
|
- ],
|
|
|
- 'logger' => [ // optional
|
|
|
- 'enable' => true,
|
|
|
- 'file' => base_path().'/storage/logs/alipay.log',
|
|
|
- 'level' => 'info', // 建议生产环境等级调整为 info,开发环境为 debug
|
|
|
- 'type' => 'single', // optional, 可选 daily.
|
|
|
- 'max_file' => 7, // optional, 当 type 为 daily 时有效,默认 30 天
|
|
|
- ],
|
|
|
- 'http' => [ // optional
|
|
|
- 'timeout' => 5.0,
|
|
|
- 'connect_timeout' => 5.0,
|
|
|
- ],
|
|
|
- ],
|
|
|
-];
|