添加 process 参数支持企业微信审批流程动态指定 #3762
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
企业微信官方API支持通过
process参数在use_template_approver=0时动态指定审批流程节点,但SDK缺少该实现。用户无法根据业务逻辑动态设置审批人。Changes
Core Classes
processfield toWxCpOaApplyEventRequestwithProcessandProcessNodenested classesProcesscontainsnode_listfor approval flow nodesProcessNodesupports:type: node type (1=approver, 2=notifier, 3=notifier)apv_rel: multi-person approval mode (1=all-sign, 2=or-sign, 3=sequential)userid: array of user IDsTesting
testToJsonWithProcess()to verify JSON serialization with multiple node types and approval modesCompatibility
approverandnotifyerfields preserved for backward compatibilityUsage
Resolves dynamic approver assignment requirement from WeChat Work API.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.