收藏
回答

小程序已经关联了公众号了,报错误显示为45064,说没有关联?

微信公众号已经关联了小程序,返回结果还是显示说 45064 ["errcode"]=> int(45064) ["errmsg"] 不知道为什么,请帮助。

回答关注问题邀请回答
收藏

1 个回答

  • 社区技术运营专员--许涛
    社区技术运营专员--许涛
    2020-10-28

    你好,

    详情请参考:https://developers.weixin.qq.com/doc/offiaccount/Getting_Started/Global_Return_Code.html

    2020-10-28
    有用
    回复 10
    • 悟
      2020-10-28
      我关联了,不知道和我们公众号年审核没有通过有关吗?
      2020-10-28
      回复
    • 社区技术运营专员--许涛
      社区技术运营专员--许涛
      2020-10-28回复
      麻烦提供下小程序的appid,公众号的帐号ID
      2020-10-28
      回复
    • 悟
      2020-10-28回复社区技术运营专员--许涛
      小程序appid:wxda5635defd35ce7f  公众号appid:wx3053776fff61a186
      2020-10-28
      回复
    • 社区技术运营专员--许涛
      社区技术运营专员--许涛
      2020-10-28回复
      麻烦提供下完整的请求和返回,具体是那个操作导致呢
      2020-10-28
      回复
    • 悟
      2020-10-28回复社区技术运营专员--许涛
      请求代码:
       public function definedItem(){
             //创建微信菜单
             //目前微信接口的调用方式
             //https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN
             header('content-type:text/html;charset=utf-8');
              $access_token=$this->getWxAccessToken();
             $url="https://api.weixin.qq.com/cgi-bin/menu/create?access_token=".$access_token;
                $postArr=array(
                        'button'=>array(
                                 array(
                                      'name'=>urlencode('直播回放'),
                                      'type'=>'view',
                                      'url'=>'https://wx.vzan.com/live/tvchat-2040233354?v=637387997570215317#/',
                                    
                                    ), //第一个一级菜单
                                 array(
                                     'name'=>urlencode('医生介绍'),
                                     'sub_button'=>array(
                                         
                                             
                                             array(
                                                'name'=>urlencode('御周末专家'),
                                                'type'=>'view',
                                                'url'=>'https://mp.weixin.qq.com/s/UZjbuJ0VDjBVp-w-fL7v-g'
                                             ),//第一个二级菜单
                                         array(
                                              'name'=>urlencode('国周末专家'),
                                              'type'=>'view',
                                              'url'=>'https://mp.weixin.qq.com/s/FR-glx461lXvy1PrrUWqZQ',
                                             ),//第二个二级菜单
                                             
                                          array(
                                                'name'=>urlencode('养生节1'),
                                                'type'=>'view',
                                                'url'=>'https://mp.weixin.qq.com/s/WW4F7DpN5802H7MJURS0rw'
                                             ),//第一个二级菜单
                                         array(
                                              'name'=>urlencode('养生节2店'),
                                              'type'=>'view',
                                              'url'=>'https://mp.weixin.qq.com/s/06CEWtX8895c_scqRPA4uQ',
                                             ),//第二个二级菜单
                                         array(
                                              'name'=>urlencode('养生节3店'),
                                              'type'=>'view',
                                              'url'=>'https://mp.weixin.qq.com/s/dQoJNJ9h61D48wZSVgsXDw',
                                             ),//第二个二级菜单     
                                                 
                                         
                                         ),
                                    
                                    ), //第二个一级菜单
                                 array(
                                    
                                       "type"=>"miniprogram",
                                       "name"=>urlencode("养生节"),
                                       "url"=>"https://mp.weixin.qq.com/s/WW4F7DpN5802H7MJURS0rw",
                                       "appid"=>"wxda5635defd35ce7f",
                                       "pagepath"=>"pages/actList/actList",
                                    
                                    ), //第三个一级菜单
                            )
                    
                   
                    
                 );
                 
             echo  $postJson=urldecode(json_encode($postArr));
              $res=$this->http_curl($url,'post','json',$postJson);
              var_dump($res);
         }




      返回结果


      {"button":[{"name":"直播回放","type":"view","url":"https:\/\/wx.vzan.com\/live\/tvchat-2040233354?v=637387997570215317#\/"},{"name":"医生介绍","sub_button":[{"name":"御周末专家","type":"view","url":"https:\/\/mp.weixin.qq.com\/s\/UZjbuJ0VDjBVp-w-fL7v-g"},{"name":"国周末专家","type":"view","url":"https:\/\/mp.weixin.qq.com\/s\/FR-glx461lXvy1PrrUWqZQ"},{"name":"养生节1","type":"view","url":"https:\/\/mp.weixin.qq.com\/s\/WW4F7DpN5802H7MJURS0rw"},{"name":"养生节2店","type":"view","url":"https:\/\/mp.weixin.qq.com\/s\/06CEWtX8895c_scqRPA4uQ"},{"name":"养生节3店","type":"view","url":"https:\/\/mp.weixin.qq.com\/s\/dQoJNJ9h61D48wZSVgsXDw"}]},{"type":"miniprogram","name":"养生节","url":"https:\/\/mp.weixin.qq.com\/s\/WW4F7DpN5802H7MJURS0rw","appid":"wxda5635defd35ce7f","pagepath":"pages\/actList\/actList"}]}array(2) { ["errcode"]=> int(45064) ["errmsg"]=> string(66) "no permission to use weapp in menu rid: 5f991c35-1166aaef-4462eb7b" }
      2020-10-28
      回复
    查看更多(5)
登录 后发表内容
问题标签