About the stupid way of WeChat applet ----- message prompt template openid 40003

近日公司要进行小程序开发,姑且担任开发一职.
首先对标题的解释,由于对组件以及功能进行熟悉以及初稿编写,appId以及小程序密钥使用个人的,之后提示appID没有发送模板消息权限
地址调用:
	https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?access_token={0}

The content of the error prompt {"errcode" 48001, "errmsg" "api unauthorized hint: [athn307719241!]"}, You can check the applet account that needs to be authenticated or bind the authenticated
public account , so replace the configuration in the applet The corresponding configuration in the company's applet account (note: here only for appId and key in getApp (). GlobalData).
After the change, a new problem appears, and the backend request template message always prompts 40003 invalid openid, and there are a lot of information. For example, some openId format errors are missing the quotes.
If the request JSON format is wrong, and the most effective official document has been read many times, it does not pay attention to the official prompt
such as
! Finally, I found that the configuration AppId in project.config.json has not changed. After the change, I finally saw the push of the template message after 1 day.
Insert picture description here
Honey juice moved finally-"囧 I
don't know what problems will be encountered later, temporarily

Published 9 original articles · liked 0 · visits 6129

Guess you like

Origin blog.csdn.net/gx8201/article/details/89497056