| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <?php
- return [
- 'accountTypes'=>[
- 1=>'商城消费',
- 2=>'充值缴费',
- 3=>'退款',
- 4=>'佣金提现',
- 5=>'提现驳回',
- 6=>'平台入款',
- 7=>'商家佣金',
- 8=>'代理收益',
- 9=>'推广收益',
- ],
- 'kdCodes'=>[
- 'jd'=>'京东快递',
- 'shentong'=>'申通快递',
- 'shunfengkuaiyun'=>'顺丰快运',
- 'shunfeng'=>'顺丰',
- 'yuantong'=>'圆通快递',
- 'zhongtong'=>'中通快递',
- 'jtexpress'=>'极兔速递',
- 'yunda'=>'韵达快递',
- 'debangkuaidi'=>'德邦快递',
- 'debangwuliu'=>'德邦物流',
- 'huitongkuaidi'=>'百世快递',
- 'youzhengguonei'=>'邮政快递包裹',
- 'zhaijisong'=>'宅急送',
- ],
- '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证书***
- //后面是通过前面的配置生成的文件 参考:http://www.liziyu.com/archives/309/
- 'PUB_KEY_ID_0111032309772025121600111926001205' => 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,
- ],
- ],
- ];
|