You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

19 lines
619 B

<?php
declare(strict_types=1);
return [
'appid' => env('wx.appid', ''),
'secret' => env('wx.secret', ''),
/*
| 开发期无小程序凭据时,把 code 确定性地映射成 openid,不调微信接口。
|
| ⚠️ 安全红线:mock 模式等于「任何人自报一个 code 就能登录任意账号」。
| 因此 WxService 在 APP_DEBUG=false 且 mock=true 时**直接抛异常**,
| 而不是打条日志继续跑 —— 靠人记得改配置不可靠。
*/
'mock' => env('wx.mock', true),
'api_base' => 'https://api.weixin.qq.com',
'timeout' => 5,
];