update code

This commit is contained in:
全栈小学生
2023-09-06 14:52:30 +08:00
parent 8f2e36cfa4
commit 36967076d4
1706 changed files with 63614 additions and 17748 deletions

View File

@@ -13,6 +13,9 @@ namespace app\adminapi\controller\wechat;
use app\service\admin\wechat\WechatMenuService;
use core\base\BaseAdminController;
use EasyWeChat\Kernel\Exceptions\InvalidConfigException;
use GuzzleHttp\Exception\GuzzleException;
use think\Response;
/**
* 微信公众号管理菜单
@@ -22,18 +25,22 @@ class Menu extends BaseAdminController
/**
* 菜单信息
* @return void
* @return Response
*/
public function info(){
public function info()
{
$wechat_menu_service = new WechatMenuService();
return success($wechat_menu_service->getInfo());
}
/**
* 设置菜单
* @return void
* @return Response
* @throws InvalidConfigException
* @throws GuzzleException
*/
public function edit(){
public function edit()
{
$wechat_menu_service = new WechatMenuService();
$data = $this->request->params([
['button', []]