How to display WeChat personalized menu?
LRTRL
LRTRL 2017-09-25 15:48:39
0
2
1245

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?

LRTRL
LRTRL

像蜗牛一样爬行,坚信总有一天我会有属于自己的一片天!

reply all(2)
LRTRL

The screenshot of the code is as follows:

1.png2.png


Ty80

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

  • reply 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 author 2017-09-25 17:39:07
  • reply 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 author 2017-09-26 09:26:56
  • reply 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 author 2017-09-26 09:55:02
  • reply It probably didn't set up successfully, so let's take a look at the code.
    PHP中文网 author 2017-09-25 17:46:09
  • reply There seems to be no problem. Try adjusting conditionalItem1. Maybe you got the wrong official account, or your account is a subscription account.
    PHP中文网 author 2017-09-26 09:43:19
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template