mirror of
https://gitee.com/niucloud-team/niucloud
synced 2026-08-14 09:25:41 +08:00
update code
This commit is contained in:
@@ -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', []]
|
||||
|
||||
Reference in New Issue
Block a user