CallbackDebug is a Weixin Mini Program interface debugging capability for real-time update of product data. Based on this capability, developers of Mini Programs can obtain the return results of Mini Program product data update interfaces in real time.
# Requirements for the operating environment
- Download and install the Developer Tool version 1.03.2005212 or above at Underload .
# Download process
Open the WeChat developer tool, select "Settings - General Settings - Extensions - Debugger Plugin" in the menu bar, go to the plugin download page, and add the Weixin Mini Program Goods Data Real Time Update Interface Debugger Plug-in.After restarting the WeChat developer tool, you can find the CallbackDebug panel in the emulator and perform subsequent function debugging.
# Use Procedure
- To use CallbackDebug functionality, developers need to register the Weixin Mini Program AppID, a callback link and a callback token for WeChat to the corresponding email. Details can refer to the document < < Mini Program product data real-time update > .
- For Weixin Mini Program that has registered callback links and callback tokens, developers can open the xxx panel in the debugger of the WeChat developer tools for functional debugging.
- The data that need to be entered before debugging begins include:
- Callback link: developers can fill in the registered request URL, or automatically access the input information through the system's access link function;
- Callback token: the developer can fill in the registered request token, or automatically obtain the input information through the function of obtaining token provided by the system;
- Request parameters:
Format: JSON;
Specific parameters:
参数 type Introductions type string Data type. Fixed as' merchant' appid string Weixin Mini Program AppID req_data_list Array of reqDataObj Data unique identifiers, guaranteed no more than 100 at a time Example of request parameters
{ "type":"merchant", "appid":"wxabcdef123456", "req_data_list":[ { "path":"page/detail/index", "query":"sku_id=12345" }, { "path":"page/detail/index", "query":"sku_id=7890" } ] }
- 完成回调链接、回调 token 和请求参数的录入后,点击调用即可触发调用请求。触发调用后,系统会在请求参数部分显示具体的请求结果。开发者可基于请求结果判断是否符合预期。
