mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改小程序配置读取
This commit is contained in:
parent
7b395cf553
commit
f22078f918
@ -43,9 +43,10 @@ class Wxapp extends Controller
|
|||||||
*/
|
*/
|
||||||
protected function initialize()
|
protected function initialize()
|
||||||
{
|
{
|
||||||
|
$opt = sysdata('wxapp');
|
||||||
$this->cfg = [
|
$this->cfg = [
|
||||||
'appid' => sysconf('data.wxapp_appid'),
|
'appid' => $opt['appid'] ?? '',
|
||||||
'appsecret' => sysconf('data.wxapp_appkey'),
|
'appsecret' => $opt['appkey'] ?? '',
|
||||||
'cache_path' => $this->app->getRootPath() . 'runtime' . DIRECTORY_SEPARATOR . 'wechat',
|
'cache_path' => $this->app->getRootPath() . 'runtime' . DIRECTORY_SEPARATOR . 'wechat',
|
||||||
];
|
];
|
||||||
if (empty(UserAdminService::TYPES[$this->type]['auth'])) {
|
if (empty(UserAdminService::TYPES[$this->type]['auth'])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user