hy-farm/muchang/common/config/easy-wechat.php
2026-05-29 19:54:56 +08:00

53 lines
1.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
return [
/**
* Debug 模式bool 值true/false
*
* 当值为 false 时,所有的日志都不会记录
*/
'debug' => true,
/**
* 账号基本信息,请从微信公众平台/开放平台获取
*/
'app_id' => 'wx06e00d57df939b34', // AppID
'secret' => '9d79e62d92e359f3b948c462ac89a4cd', // AppSecret
'token' => '', // Token
'aes_key' => '', // EncodingAESKey安全模式下请一定要填写
/**
* 日志配置
*
* level: 日志级别, 可选为:
* debug/info/notice/warning/error/critical/alert/emergency
* permission日志文件权限(可选)默认为null若为null值,monolog会取0644
* file日志文件位置(绝对路径!!!),要求可写权限
*/
'log' => [
'level' => 'debug',
'permission' => 0777,
'file' =>__DIR__. '/../../home/runtime/logs/easywechat_' . date('Ymd') . '.log',
],
/**
* OAuth 配置
*
* scopes公众平台snsapi_userinfo / snsapi_base开放平台snsapi_login
* callbackOAuth授权完成后的回调页地址
*/
'oauth' => [
'scopes' => ['snsapi_userinfo'],
// games/jiuduan/frontend/web/index.php?r=site
// '/frontend/web/index.php?r=site/oauth-call-back',
'callback' => \yii\helpers\Url::to(['/site/oauth-call-back']),
],
// payment
'payment' => [
'merchant_id' => '1490412332',
'key' => 'V58tJDzupkXpWJxJxqUA8kl633EfFMYC',
'cert_path' =>__DIR__. '/cert/apiclient_cert.pem', // XXX: 绝对路径!!!!
'key_path' =>__DIR__. '/cert/apiclient_key.pem', // XXX: 绝对路径!!!!
'notify_url' =>'http://gameback.88t1.cn/home/web/index.php?r=pay/pay-call-back', // 你也可以在下单时单独设置来想覆盖它
]
];