This article mainly introduces the solution to the failure of sending messages after upgrading [Enterprise Official Account] to [Enterprise WeChat], involving the modification of the WeChat interface. Friends in need can refer to the following
The example in this article describes the solution to the failure to send messages after [Enterprise Official Account] is upgraded to [Enterprise WeChat]. I would like to share it with you for your reference. The details are as follows: Recently, I saw news that WeChat upgraded corporate public accounts to corporate WeChat. I didn't care about it at the time, but later I discovered that the program that used the interface of the company's public account to send notification messages could no longer send messages. So, I opened the upgrade message again and read it carefully: the enterprise account will be migrated to the enterprise WeChat management background (work.weixin.qq.com/login) for unified management. Previously, the management backend address of the company's public account was qy.weixin.qq.com. If I can't send messages, could it be that the interface address has also changed? Log in to the new backend and check it out, and find that the Secret value of the application has changed, with fewer digits than before. After replacing the Secret value in the code with a new one, I found that it still didn't work. After debugging, I found an error when using Fortunately, I found the API documentation for Enterprise WeChat on its official website:{ "touser" : "UserID1|UserID2|UserID3", "toparty" : " PartyID1|PartyID2 ", "totag" : " TagID1 | TagID2 ", "msgtype" : "text", "agentid" : 1, "text" : { "content" : "你的快递已到,请携带工卡前往邮件中心领取。\n出发前可查看<a href=\"work.weixin.qq.com\">邮件中心视频实况</a>,聪明避开排队。" } }
string. So, I changed the code to a string and tried it, and it worked. . .
The above is the detailed content of Relevant examples involving modifications to WeChat interfaces. For more information, please follow other related articles on the PHP Chinese website!