其余文件

This commit is contained in:
2026-04-14 17:46:22 +08:00
parent 294b68fe37
commit 3691f4db22
1343 changed files with 189847 additions and 0 deletions

View File

@ -0,0 +1,26 @@
<?php
namespace app\admin\controller\wechat;
use app\common\basics\AdminBase;
use app\admin\logic\wechat\OpLogic;
use app\common\server\JsonServer;
class Op extends AdminBase
{
/**
* 开放平台配置
*/
public function config()
{
if($this->request->isAjax()){
$post = $this->request->post();
OpLogic::setConfig($post);
return JsonServer::success('设置成功');
}
return view('config', [
'config' => OpLogic::getConfig(['app_id','secret']), //微信公众开放平台-APP应用
'web_config' => OpLogic::getConfig(['web_app_id','web_secret']) //微信公众开放平台-网站应用
]);
}
}