
【主 题】:封装一个 发送mqtt的函数 【描 述】: [原因]:顺便测试一下 支付回调信息 (用mqtt发送) [过程]: [影响]: 【结 束】 # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动
40 lines
1.5 KiB
PHP
40 lines
1.5 KiB
PHP
<?php
|
|
/*
|
|
* @Author: 田老师 4021673@qq.com
|
|
* @Date: 2022-05-16 17:57:44
|
|
* @LastEditTime: 2024-06-05 20:15:27
|
|
* @Description: Do not edit
|
|
*/
|
|
return array(
|
|
//'配置项'=>'配置值'
|
|
'LOAD_EXT_CONFIG' => "db",
|
|
//更换模板变量规则,修改配置项
|
|
'TMPL_PARSE_STRING' => array( //添加自己的模板变量规则
|
|
'__DATA__' => __ROOT__ . '/Data'
|
|
),
|
|
"host" => "https://www.szdot.top/",
|
|
//微信配置参数
|
|
'weixin' => array(
|
|
'appid' => 'wx8347571d6893a383', //微信appid
|
|
'secret' => 'ac1c6f456a6451812403c75bd113f9d0', //微信secret
|
|
'mch_id' => '1625070753', //商户号
|
|
'mch_secret_key' => 'qwertyuiopasdfghjklzxcvbnm123456', //v3商户秘钥
|
|
'mch_secret_cert' => 'C:/phpstudy_pro/cert/apiclient_key.pem', //私钥
|
|
'mch_public_cert_path' => 'C:/phpstudy_pro/cert/apiclient_cert.pem', //公钥
|
|
'wechat_public_cert_path' => 'C:/phpstudy_pro/cert/wechatpay_5878026B07BD819CCC25AC95FA31AE45BB6BC0D9.pem', //微信平台公钥证书路径
|
|
'payLogger_path' => 'C:/phpstudy_pro/cert/logs/wechat.log', //微信支付日志路径文件
|
|
),
|
|
'LimitApi' => "*", //限制可以访问api的域名 通配符* 开放所有域名
|
|
'powerId' => '2dc23dcfecc05fb1', //主管理员的shop_id 用于权限判断
|
|
'jwtKey' => 'T!o@k_en', //签发 解析token的key
|
|
//mqtt
|
|
'mqtt' => array(
|
|
'server' => 'www.szdot.top', // mqtt服务器
|
|
'port' => 1883, // mqtt端口
|
|
'username' => 'admin', // mqtt用户名
|
|
'password' => '123456', // mqtt密码
|
|
'client_id' => 'phpMQTT-publisher', // client_id
|
|
)
|
|
|
|
);
|