企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
* 创建自定义菜单 | 传入参 | 说明 | | --- | --- | | arr | \[ 必填 \] 自定义菜单数组 | | 回调参 | 说明 | | --- | --- | | succeed | 执行状态(1成功 0失败) | | msg | 提示信息 | * 案例 ~~~ $para = []; $obj = []; $obj[] = ['type'=>'scancode_waitmsg','name'=>'扫码带提示','key'=>'rselfmenu_0_0']; $obj[] = ['type'=>'scancode_push','name'=>'扫码推事件','key'=>'rselfmenu_0_1']; $para[] = ['name'=>'扫码','sub_button'=>$obj]; $obj = []; $obj[] = ['type'=>'pic_sysphoto','name'=>'系统拍照发图','key'=>'rselfmenu_1_0']; $obj[] = ['type'=>'pic_photo_or_album','name'=>'拍照或者相册发图','key'=>'rselfmenu_1_1']; $obj[] = ['type'=>'pic_weixin','name'=>'微信相册发图','key'=>'rselfmenu_1_2']; $para[] = ['name'=>'发图','sub_button'=>$obj]; $obj = []; $obj[] = ['type'=>'location_select','name'=>'发送位置','key'=>'rselfmenu_2_0']; $para[] = ['name'=>'其他','sub_button'=>$obj]; $info = $WX_gzh->menu_create(['button'=>$para]); print_r($info); ~~~