作者 王智

1111

... ... @@ -6,10 +6,10 @@ use app\common\controller\Api;
use addons\third\library\Wechat;
use think\Db;
define('ak', 'wx76ddffb14a62a7c9');
define('sk', 'fbeab9821d11b6c03402ee419f93618f');
//define('ak', 'wx3b1935a9955e6e56');
//define('sk', '32e1840b3526ff6534bb7f454d7f6fdc');
//define('ak', 'wx76ddffb14a62a7c9');
//define('sk', 'fbeab9821d11b6c03402ee419f93618f');
define('ak', 'wx3b1935a9955e6e56');
define('sk', '32e1840b3526ff6534bb7f454d7f6fdc');
/**
* 用户接口
... ...
<?php
return[
return [
/**
* Debug 模式,bool 值:true/false
*
* 当值为 false 时,所有的日志都不会记录
*/
'debug' => true,
'debug' => true,
/**
* 账号基本信息,请从微信公众平台/开放平台获取
*/
'app_id' => 'wx76ddffb14a62a7c9', // AppID
// 'app_id' => 'wx3b1935a9955e6e56', // AppID
'secret' => 'fbeab9821d11b6c03402ee419f93618f', // AppSecret
// 'secret' => '32e1840b3526ff6534bb7f454d7f6fdc', // AppSecret
'token' => 'your-token', // Token
// 'app_id' => 'wx76ddffb14a62a7c9', // AppID
'app_id' => 'wx3b1935a9955e6e56', // AppID
// 'secret' => 'fbeab9821d11b6c03402ee419f93618f', // AppSecret
'secret' => '32e1840b3526ff6534bb7f454d7f6fdc', // AppSecret
'token' => 'your-token', // Token
'aes_key' => '', // EncodingAESKey,安全模式与兼容模式下请一定要填写!!!
/**
... ... @@ -26,9 +26,9 @@ return[
* file:日志文件位置(绝对路径!!!),要求可写权限
*/
'log' => [
'level' => 'debug',
'level' => 'debug',
'permission' => 0777,
'file' => '/tmp/easywechat.log',
'file' => '/tmp/easywechat.log',
],
/**
... ... @@ -38,7 +38,7 @@ return[
* callback:OAuth授权完成后的回调页地址
*/
'oauth' => [
'scopes' => ['snsapi_userinfo'],
'scopes' => ['snsapi_userinfo'],
'callback' => '/examples/oauth_callback.php',
],
... ... @@ -46,10 +46,10 @@ return[
* 微信支付
*/
'payment' => [
'merchant_id' => 'your-mch-id',
'key' => 'key-for-signature',
'cert_path' => 'path/to/your/cert.pem', // XXX: 绝对路径!!!!
'key_path' => 'path/to/your/key', // XXX: 绝对路径!!!!
'merchant_id' => 'your-mch-id',
'key' => 'key-for-signature',
'cert_path' => 'path/to/your/cert.pem', // XXX: 绝对路径!!!!
'key_path' => 'path/to/your/key', // XXX: 绝对路径!!!!
// 'device_info' => '013467007045764',
// 'sub_app_id' => '',
// 'sub_merchant_id' => '',
... ...