Actions43
- 用户标签 Actions
- 用户 Actions
- 模板 Actions
- 发布 Actions
- 其他 Actions
- 菜单 Actions
- 素材 Actions
- 草稿 Actions
- 评论 Actions
Overview
This node generates QR codes with parameters for WeChat Official Accounts. It supports creating both temporary and permanent QR codes, which can be used to track user interactions or direct users to specific content within a WeChat ecosystem.
Common scenarios include:
- Generating a temporary QR code for limited-time promotions or events.
- Creating a permanent QR code linked to a specific scene or campaign for long-term use.
- Encoding scene identifiers in the QR code to differentiate between various marketing channels or user segments.
For example, a marketer might generate a temporary QR code valid for 1 hour to promote a flash sale, or create a permanent QR code that links to a brand’s loyalty program.
Properties
| Name | Meaning |
|---|---|
| 二维码类型 | Type of QR code: "临时二维码" (Temporary QR code) or "永久二维码" (Permanent QR code) |
| 有效时间(秒) | Validity period in seconds for the temporary QR code; maximum is 2,592,000 seconds (30 days). Only applicable if QR code type is temporary. |
| 场景值ID | Scene value ID as a string (length 1 to 64), used to identify the QR code's context or purpose. |
Output
The node outputs JSON data representing the generated QR code information. This typically includes fields such as the QR code URL or ticket that can be used to retrieve or display the QR code image.
If binary data output is supported (not explicitly shown in the source), it would represent the actual QR code image data.
Dependencies
- Requires an API key credential for authenticating with the WeChat Official Account platform.
- The node depends on internal resource modules loaded dynamically from the
resourcedirectory, which implement the specific logic for generating QR codes. - No additional external services beyond the WeChat Official Account API are indicated.
Troubleshooting
- Error: "未实现方法" (Unimplemented method) — This error occurs if the specified resource-operation combination is not implemented. Verify that the resource is set to "其他" and operation to "生成带参数的二维码".
- Invalid parameter errors — Ensure that the "有效时间(秒)" does not exceed 2,592,000 seconds and that "场景值ID" length is between 1 and 64 characters.
- API authentication failures — Confirm that the required API key credential is correctly configured and has sufficient permissions.
- Timeouts or network issues — Check connectivity to the WeChat API endpoints.