加载中 ...
首页 > 新闻资讯 > 经验心得 正文

小程序申请整个网络发布流程的第三方平台

2019-07-13 09:14:47 来源:沈阳小程序开发 作者:沈阳软件开发

作者:何华东,来自公众号:全栈工程师你可以阅读更多第三方内容平台:跳坑《一百九十六》代表第三方开发平台使用

小程序旨在作为订阅号,服务号和企业号之后的应用程序编号。无助的中国苹果已成为“小程序”。它们属于同一类型,并且可以跟随它们的ID,这些ID都是以gh_开头的字符串。

第三方平台是这些类型帐户的管理,方便一些没有开发团队的企业快速完成功能对接。订阅号和服务号的开发非常成熟。市场上的一些巨头已经参与其中,他们已经完成了资本对接并完成了上市。围绕微信的大流量生态,未来将是一个巨大的想象力和市场。

如果您已完成订阅号和服务号的管理,则表明您已完成此操作。几乎不需要对代码进行调整。只需将小程序开发人员(绑定小程序)添加到“微信开放平台”并添加小程序模板即可。

233530sroie2ic894958ec.jpg

完成后,您可以提交。系统将自动检查白名单范围内的段落

233530tca8egp0ofa31acc.jpg

接下来,我将输入今天会谈的关键内容,“整个网络上的访问检测指令的实现”。关于邮件加密和解密访问指南。官方提供相关算法和相应代码,直接复用。

在发布整个网络之前,您需要先完成自动化测试。这些真的很佩服TX并根据需要使用它。提交测试需要“排队”才能完成。

自动化测试主要分为三个部分。一方面,“XX”用于完成消息的接收和接收,以及事件处理;另一方面,它是一个需要作为第三方平台完成的功能。

第一部分:消息部分的集合(立即响起手机软件开发

ad.jpg

应该)

微信测试机会自动授权给第三方平台。然后模拟的风扇完成向测试机发送消息,并需要第三方平台来处理它们。处理短信

1)微信被推送到第三方平台:短信,其中内容字段的内容固定为:TESTCOMPONENT_MSG_TYPE_TEXT

2)第三方平台立即响应短信并最终到达粉丝:内容必须修复为:TESTCOMPONENT_MSG_TYPE_TEXT_callback

第二部分:事件收集(即时回应)

1)微信被推送到第三方平台:事件XML内容(与收到的一般公众号码相同的信息)

2)服务开发人员在5秒内响应文本消息并最终到达粉丝:文本消息的XML中Content字段的内容必须汇编为:event +“from_callback”(假设事件是LOCATION,内容是: LOCATIONfrom_callback)

第三部分:调用界面(不是立即响应)

1)微信被推送到第三方平台:文本消息,其中Content字段的内容固定为:QUERY_AUTH_CODE: $ query_auth_code $(query_auth_code将在后台推送到开发时由微信进行特殊测试公共号码自动授权给第三方平台)

2) After obtaining the value of $query_auth_code$, the third-party platform party assigns the value of $query_auth_code$ to the parameter authorization_code required by the API through the "Use authorization code in exchange for authorization information of the public number" API in the interface document page. Then, the call to send the customer service message api reply text message to the fan, wherein the content field of the text message is set to: $query_auth_code$_from_api (where $query_auth_code$ needs to be replaced with the pushed query_auth_code)

Note: The third part is to obtain the author_access_token, otherwise the customer service message cannot be sent.

微信 also mentioned that the simulation push component_verify_ticket to the developer, the developer needs to reply as required (you must return the string success directly after receiving it).

This is the basis of the foundation, focusing on the first three parts. Especially the third part, after the completion, can be submitted automatically. The test feedback of the first step will be monitored automatically. If the following interface appears, then you're done.

233530jo33xb3s3ssqna3n.jpg

Just wait for 微信 official review, after the passage is the following state.

233531d6fgrzd4r8hs5d6s.jpg

The following situations often occur on the authorization page:

1, the parameter is wrong, generally pre_auth_code is empty, not obtained, the reason is to find componet_access_token, if it is the cause of componet_access_token then it is necessary to find component_vertify_ticket is expired

233531txx6x3gxxv1rrzec.jpg

xx 2, initiated from the specified domain name and IP, this situation is not ported. Especially the case of nginx + other application servers

233531uhuebcbblvezu4rj.jpg

3, the page stops for too long, pre_auth_code expires

4, pre_autho_code has been used, and the second phone is used to sweep, pre_auth_code is invalid

xx

“沈阳软件公司”的新闻页面文章、图片、音频、视频等稿件均为自媒体人、第三方机构发布或转载。如稿件涉及版权等问题,请与

我们联系删除或处理,客服QQ:55506560,稿件内容仅为传递更多信息之目的,不代表本网观点,亦不代表本网站赞同

其观点或证实其内容的真实性。