search

Home  >  Q&A  >  body text

How to display WeChat personalized menu?

WeChat has been using custom menus before. Today, according to the WeChat development documents, I wrote a personalized menu. This personalized menu can be successfully executed and returns the menuid, but now I am a little confused about how to put this The personalized menu is loaded on the official account. At the entrance, I still called the method I used to define the custom menu before, and the result was still the same custom menu as before. I would like to ask some experts how to operate this?

LRTRLLRTRL2644 days ago1273

reply all(2)I'll reply

  • LRTRL

    LRTRL2017-09-26 09:23:32

    The screenshot of the code is as follows:

    1.png2.png


    reply
    0
  • PHP中文网

    PHP中文网2017-09-25 17:37:36

    The custom menu takes 24 hours to take effect. You can also re-follow the official account and it will take effect immediately.

    reply
    0
  • LRTRL

    After I re-followed it, it still didn't work. What came out was the same custom menu as before, not a personalized menu.

    LRTRL · 2017-09-25 17:39:07
    LRTRL

    Hello, my code has been posted. The method to create a personalized menu is conditionalItem1, and the method to create a custom menu is definedItem. I called the definedItem method at the entrance. Is the method call wrong?

    LRTRL · 2017-09-26 09:26:56
    LRTRL

    It is a service account, and this logic is a bit difficult to implement. After entering the official account, users need to bind their accounts, and group users according to their bound accounts to display personalized menus. So no matter what, users who have just entered the official account will be shown the default menu.

    LRTRL · 2017-09-26 09:55:02
    PHP中文网

    It probably didn't set up successfully, so let's take a look at the code.

    PHP中文网 · 2017-09-25 17:46:09
    PHP中文网

    There seems to be no problem. Try adjusting conditionalItem1. Maybe you got the wrong official account, or your account is a subscription account.

    PHP中文网 · 2017-09-26 09:43:19
  • Cancelreply