Build and run agents you can see, understand and trust.
Python agentchatbotlarge-language-modelsllmllm-agentmcpmulti-agentmulti-modalreact-agentrealtime-agentvoice-agentvoice-assistant
fix(channel): let DingTalk send without the inbound connection (#2409)
DavdGaobc2512035c08
diff --git a/assets/dingtalk/tool_approval_card.json b/assets/dingtalk/tool_approval_card.jsonnew file mode 100644index 000000000..7e781d527--- /dev/null+++ b/assets/dingtalk/tool_approval_card.json@@ -0,0 +1 @@+{"editorData":"{\"schemaVersion\":\"3.0.0\",\"schema\":{\"componentsMap\":[{\"package\":\"@ali/dxComponent\",\"version\":\"1.0.0\",\"exportName\":\"Image\",\"main\":\"./src/index.tsx\",\"destructuring\":false,\"subName\":\"\",\"componentName\":\"Image\"},{\"package\":\"@ali/dxComponent\",\"version\":\"1.0.0\",\"exportName\":\"Grid\",\"main\":\"./src/index.tsx\",\"destructuring\":false,\"subName\":\"\",\"componentName\":\"Grid\"},{\"package\":\"@ali/dxComponent\",\"version\":\"1.0.0\",\"exportName\":\"BaseText\",\"main\":\"./src/index.tsx\",\"destructuring\":false,\"subName\":\"\",\"componentName\":\"BaseText\"},{\"package\":\"@ali/dxComponent\",\"version\":\"1.0.0\",\"exportName\":\"Tag\",\"main\":\"./src/index.tsx\",\"destructuring\":false,\"subName\":\"\",\"componentName\":\"Tag\"},{\"package\":\"@ali/dxComponent\",\"version\":\"1.0.0\",\"exportName\":\"ButtonList\",\"main\":\"./src/index.tsx\",\"destructuring\":false,\"subName\":\"\",\"componentName\":\"ButtonList\"},{\"package\":\"@ali/dxComponent\",\"version\":\"1.0.0\",\"exportName\":\"SingleButton\",\"main\":\"./src/index.tsx\",\"destructuring\":false,\"subName\":\"\",\"componentName\":\"SingleButton\"},{\"package\":\"@ali/dxComponent\",\"version\":\"1.0.0\",\"exportName\":\"Card\",\"main\":\"./src/index.tsx\",\"destructuring\":false,\"subName\":\"\",\"componentName\":\"Card\"}],\"componentsTree\":[{\"componentName\":\"Card\",\"id\":\"node_dockcviv8fo1\",\"props\":{\"url\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\"},\"showCloseButton\":false,\"isLinkToCard\":false,\"actionType\":\"url\",\"urlType\":\"all\",\"androidUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"pcUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"iosUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"params\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"successToast\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"copyValue\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"customHandler\":\"\",\"linkCondition\":{\"type\":\"dynamicVisible\",\"value\":true,\"valueType\":\"fixed\",\"condition\":{\"op\":\"and\",\"conditions\":[]}},\"confirmTitle\":{\"type\":\"dynamicString\",\"content\":\"标题\",\"i18n\":false},\"confirmMessage\":{\"type\":\"dynamicString\",\"content\":\"内容\",\"i18n\":false},\"confirmOkText\":{\"type\":\"dynamicString\",\"content\":\"确认\",\"i18n\":false},\"confirmOkAction\":\"request\",\"confirmOkReqActionParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"confirmOkReqActionToast\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"confirmCancelText\":{\"type\":\"dynamicString\",\"content\":\"取消\",\"i18n\":false},\"confirmCancelAction\":\"none\",\"confirmCancelReqActionParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"confirmCancelReqActionToast\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"actionSheetTitle\":{\"type\":\"dynamicString\",\"content\":\"标题\",\"i18n\":false},\"actionSheetMessage\":{\"type\":\"dynamicString\",\"content\":\"面板描述\",\"i18n\":false},\"actionSheetItems\":[],\"statPoint\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"statPointParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"toastContent\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"toastType\":1,\"failureToast\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"successCondition\":{\"op\":\"and\",\"conditions\":[]},\"actionId\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"confirmOkReqActionActionId\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"confirmCancelReqActionActionId\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"localVarAction\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"booleanLocalValue\":{\"type\":\"dynamicBoolean\",\"valueType\":\"fixed\",\"value\":false,\"variable\":\"\",\"variableType\":\"global\"},\"numberLocalValue\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"stringLocalValue\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"openModalTitle\":{\"type\":\"dynamicString\",\"content\":\"标题\",\"i18n\":false},\"openModalHeight\":500,\"openModalWidth\":400,\"events\":[],\"apiName\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"apiParams\":[{\"type\":\"variable\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"apiRetLocalVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"selectActionType\":\"setLocalState\",\"selectDataKey\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"selectParams\":[],\"selectOptions\":{\"type\":\"dynamicSelectOptions\",\"valueType\":\"fixed\",\"value\":[],\"variable\":\"\",\"variableType\":\"global\"},\"selectIndex\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"fixWidth\":false,\"fixedWidth\":0,\"autoWidth\":false,\"dataSources\":[],\"updateTargetVariable\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"updateTargetValue\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"jsapiName\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"jsapiParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"jsapiRetLocalVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"disabledWhileForward\":false,\"enableOnAppear\":false,\"autoFoldConfig\":{\"needFold\":false,\"heightLimit\":480,\"foldStatusLocalDataKey\":\"_cardFoldStatusLocalDataKey\"},\"summaryContent\":{\"variable\":\"lastMessage\",\"variableType\":\"global\",\"type\":\"variableValue\"},\"enableClickEvent\":true,\"enableStatPoint\":false,\"enableExposeStatPoint\":false,\"transformToEventChain\":false,\"copyType\":\"common\",\"toastActionText\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"toastActionUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"customDurboHandler\":\"\",\"enableCustomLocalData\":false,\"customLocalData\":\"{}\",\"videoUrl\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"dynamicEventVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"fold\":{\"type\":\"dynamicBoolean\",\"valueType\":\"fixed\",\"value\":false,\"variable\":\"\",\"variableType\":\"global\"},\"enableDebugTool\":false,\"hasCardHeader\":false,\"ipadUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"apadUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"keyOfDynamicObject\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"commentData\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"commentMode\":\"predefine\",\"commentContent\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"commentExtraParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"enableEngineUpgrade\":false,\"enableCustomBorderRadius\":false,\"customBorderRadius\":0,\"paddingLeft\":0,\"paddingRight\":0,\"paddingTop\":0,\"paddingBottom\":0},\"fileName\":\"test\",\"dataSource\":{\"list\":[]},\"hidden\":false,\"title\":\"\",\"isLocked\":false,\"condition\":true,\"conditionGroup\":\"\",\"children\":[{\"componentName\":\"Grid\",\"id\":\"node_ocl9s7wvur2\",\"props\":{\"visible\":{\"type\":\"dynamicVisible\",\"value\":true,\"valueType\":\"fixed\",\"condition\":{\"op\":\"and\",\"conditions\":[]}},\"childGravity\":\"leftCenter\",\"hasBackground\":false,\"hasBorder\":false,\"marginLeft\":12,\"marginRight\":12,\"marginTop\":12,\"marginBottom\":4,\"paddingBottom\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":8,\"variable\":\"\",\"variableType\":\"global\"},\"paddingLeft\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":8,\"variable\":\"\",\"variableType\":\"global\"},\"paddingRight\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":8,\"variable\":\"\",\"variableType\":\"global\"},\"paddingTop\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":8,\"variable\":\"\",\"variableType\":\"global\"},\"hasGradientBackground\":false,\"backgroundGradientStartColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"},\"backgroundGradientEndColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"},\"backgroundGradientDirection\":{\"type\":\"dynamicSelect\",\"valueType\":\"fixed\",\"value\":\"toBottom\",\"variable\":\"\",\"variableType\":\"global\"},\"backgroundColor\":\"#f2f2f6\",\"darkModeBackgroundColor\":\"#000000\",\"cornerRadius\":4,\"statPoint\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"statPointParams\":[],\"isFixedWidth\":false,\"isAutoWidth\":false,\"enableColSpan\":false,\"colSpan\":1,\"width\":50,\"isAutoHeight\":true,\"height\":50,\"direction\":\"horizontal\",\"disabledWhileForward\":false,\"hasHoverBackground\":false,\"backgroundType\":\"Standard\",\"standardBackgroundColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"common_bg_color\",\"variable\":\"\",\"variableType\":\"global\"},\"gradientBackgroundType\":\"Custom\",\"standardGradientBackground\":\"AIGradient\",\"cornerRadiusLeftTop\":4,\"cornerRadiusRightTop\":4,\"cornerRadiusRightBottom\":4,\"cornerRadiusLeftBottom\":4,\"innerOffset\":0,\"enableMouseEvent\":false,\"onMouseEnterActionType\":\"setLocalState\",\"onMouseEnterLocalVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"onMouseEnterBooleanLocalValue\":{\"type\":\"dynamicBoolean\",\"valueType\":\"fixed\",\"value\":false,\"variable\":\"\",\"variableType\":\"global\"},\"onMouseEnterNumberLocalValue\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"onMouseEnterStringLocalValue\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"onMouseLeaveActionType\":\"setLocalState\",\"onMouseLeaveLocalVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"onMouseLeaveBooleanLocalValue\":{\"type\":\"dynamicBoolean\",\"valueType\":\"fixed\",\"value\":false,\"variable\":\"\",\"variableType\":\"global\"},\"onMouseLeaveNumberLocalValue\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"onMouseLeaveStringLocalValue\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"enableOnAppear\":false,\"enableStatPoint\":false,\"margin\":-2,\"isFullHeight\":false,\"transformToEventChain\":false,\"enableGradientMiddleColor\":false,\"backgroundGradientMiddleColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"},\"blur\":false,\"borderWidth\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":1,\"variable\":\"\",\"variableType\":\"global\"},\"borderColor\":\"#F6F6F6\",\"darkModeBorderColor\":\"#3C3C3C\",\"enableExposeStatPoint\":true,\"exposeStatPoint\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"exposeStatPointParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"minHeight\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"maxHeight\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"bgGradient\":[{\"type\":\"linear\",\"direction\":{\"type\":\"dynamicSelect\",\"valueType\":\"fixed\",\"value\":\"toBottom\",\"variable\":\"\",\"variableType\":\"global\"},\"colors\":[{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"},{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"}]}],\"enableDarkBgGradient\":false,\"darkBgGradient\":[{\"type\":\"linear\",\"direction\":{\"type\":\"dynamicSelect\",\"valueType\":\"fixed\",\"value\":\"toBottom\",\"variable\":\"\",\"variableType\":\"global\"},\"colors\":[{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"},{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"}]}],\"hoverText\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"hoverBackgroundColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"common_overlay_hover_color\",\"variable\":\"\",\"variableType\":\"global\"}},\"title\":\"布局容器\",\"hidden\":false,\"isLocked\":false,\"condition\":true,\"conditionGroup\":\"\",\"children\":[{\"componentName\":\"Grid\",\"id\":\"node_ocl9s7wvur3\",\"props\":{\"colSpan\":1,\"isFixedWidth\":true,\"width\":16,\"childGravity\":\"leftTop\",\"marginLeft\":0,\"marginRight\":0,\"marginTop\":0,\"marginBottom\":0,\"visible\":{\"type\":\"dynamicVisible\",\"value\":true,\"valueType\":\"fixed\",\"condition\":{\"op\":\"and\",\"conditions\":[]}},\"direction\":\"vertical\",\"isAutoWidth\":false,\"statPoint\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"statPointParams\":[],\"enableColSpan\":true,\"isAutoHeight\":true,\"height\":50,\"disabledWhileForward\":false,\"hasHoverBackground\":false,\"hasBackground\":false,\"backgroundType\":\"Standard\",\"standardBackgroundColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"common_bg_color\",\"variable\":\"\",\"variableType\":\"global\"},\"backgroundColor\":\"#F6F6F6\",\"darkModeBackgroundColor\":\"#3C3C3C\",\"hasGradientBackground\":false,\"gradientBackgroundType\":\"Custom\",\"standardGradientBackground\":\"AIGradient\",\"backgroundGradientStartColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"},\"backgroundGradientEndColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"},\"backgroundGradientDirection\":{\"type\":\"dynamicSelect\",\"valueType\":\"fixed\",\"value\":\"toBottom\",\"variable\":\"\",\"variableType\":\"global\"},\"hasBorder\":false,\"cornerRadiusLeftTop\":4,\"cornerRadiusRightTop\":4,\"cornerRadiusRightBottom\":4,\"cornerRadiusLeftBottom\":4,\"paddingLeft\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":8,\"variable\":\"\",\"variableType\":\"global\"},\"paddingRight\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":8,\"variable\":\"\",\"variableType\":\"global\"},\"paddingTop\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":8,\"variable\":\"\",\"variableType\":\"global\"},\"paddingBottom\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":8,\"variable\":\"\",\"variableType\":\"global\"},\"innerOffset\":0,\"enableMouseEvent\":false,\"onMouseEnterActionType\":\"setLocalState\",\"onMouseEnterLocalVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"onMouseEnterBooleanLocalValue\":{\"type\":\"dynamicBoolean\",\"valueType\":\"fixed\",\"value\":false,\"variable\":\"\",\"variableType\":\"global\"},\"onMouseEnterNumberLocalValue\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"onMouseEnterStringLocalValue\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"onMouseLeaveActionType\":\"setLocalState\",\"onMouseLeaveLocalVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"onMouseLeaveBooleanLocalValue\":{\"type\":\"dynamicBoolean\",\"valueType\":\"fixed\",\"value\":false,\"variable\":\"\",\"variableType\":\"global\"},\"onMouseLeaveNumberLocalValue\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"onMouseLeaveStringLocalValue\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"enableOnAppear\":false,\"enableStatPoint\":false,\"margin\":-2,\"cornerRadius\":4,\"isFullHeight\":false,\"transformToEventChain\":false,\"enableGradientMiddleColor\":false,\"backgroundGradientMiddleColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"},\"blur\":false,\"borderWidth\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":1,\"variable\":\"\",\"variableType\":\"global\"},\"borderColor\":\"#F6F6F6\",\"darkModeBorderColor\":\"#3C3C3C\",\"enableExposeStatPoint\":true,\"exposeStatPoint\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"exposeStatPointParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"minHeight\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"maxHeight\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"bgGradient\":[{\"type\":\"linear\",\"direction\":{\"type\":\"dynamicSelect\",\"valueType\":\"fixed\",\"value\":\"toBottom\",\"variable\":\"\",\"variableType\":\"global\"},\"colors\":[{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"},{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"}]}],\"enableDarkBgGradient\":false,\"darkBgGradient\":[{\"type\":\"linear\",\"direction\":{\"type\":\"dynamicSelect\",\"valueType\":\"fixed\",\"value\":\"toBottom\",\"variable\":\"\",\"variableType\":\"global\"},\"colors\":[{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"},{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"}]}],\"hoverText\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"hoverBackgroundColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"common_overlay_hover_color\",\"variable\":\"\",\"variableType\":\"global\"}},\"title\":\"布局\",\"hidden\":false,\"isLocked\":false,\"condition\":true,\"conditionGroup\":\"\",\"children\":[{\"componentName\":\"Image\",\"id\":\"node_ocl9s7wvur6\",\"props\":{\"images\":{\"defaultLang\":\"zh_Hans\",\"content\":{\"zh_Hans\":{\"value\":\"@lALPDfJ6ZmKe0eZAQA\",\"valueType\":\"fixed\",\"type\":\"dynamicImage\"}},\"i18n\":false},\"darkModeImages\":{\"defaultLang\":\"zh_Hans\",\"content\":{\"zh_Hans\":{\"value\":\"\",\"valueType\":\"fixed\",\"type\":\"dynamicImage\"}},\"i18n\":false},\"single\":true,\"height\":{\"type\":\"dynamicWidth\",\"valueType\":\"fixed\",\"value\":16,\"variableType\":\"global\",\"variable\":\"\",\"full\":false,\"adaptive\":false},\"width\":{\"type\":\"dynamicWidth\",\"valueType\":\"fixed\",\"value\":16,\"variableType\":\"global\",\"variable\":\"\",\"full\":false,\"adaptive\":false},\"cornerRadius\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"scaleType\":\"fitCenter\",\"enablePreview\":true,\"marginRight\":0,\"marginTop\":0,\"marginBottom\":0,\"visible\":{\"type\":\"dynamicVisible\",\"value\":true,\"valueType\":\"fixed\",\"condition\":{\"op\":\"and\",\"conditions\":[]}},\"adaptiveSize\":false,\"fixedRatio\":false,\"hoverText\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"enableBorder\":false,\"borderColor\":\"#297f8790\",\"statPoint\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"statPointParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"aspectRatio\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":2,\"variable\":\"\",\"variableType\":\"global\"},\"offsetLeft\":0,\"offsetRight\":0,\"marginLeft\":0,\"innerOffset\":0,\"enableStatPoint\":false,\"margin\":-2,\"imageType\":\"fixedSize\"},\"title\":\"图片\",\"hidden\":false,\"isLocked\":false,\"condition\":true,\"conditionGroup\":\"\"}]},{\"componentName\":\"Grid\",\"id\":\"node_ocl9s7wvur4\",\"props\":{\"colSpan\":1,\"isFixedWidth\":false,\"width\":50,\"childGravity\":\"leftTop\",\"marginLeft\":8,\"marginRight\":8,\"marginTop\":0,\"marginBottom\":0,\"visible\":{\"type\":\"dynamicVisible\",\"value\":true,\"valueType\":\"fixed\",\"condition\":{\"op\":\"and\",\"conditions\":[]}},\"direction\":\"vertical\",\"isAutoWidth\":true,\"statPoint\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"statPointParams\":[],\"enableColSpan\":true,\"isAutoHeight\":true,\"height\":50,\"disabledWhileForward\":false,\"hasHoverBackground\":false,\"hasBackground\":false,\"backgroundType\":\"Standard\",\"standardBackgroundColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"common_bg_color\",\"variable\":\"\",\"variableType\":\"global\"},\"backgroundColor\":\"#F6F6F6\",\"darkModeBackgroundColor\":\"#3C3C3C\",\"hasGradientBackground\":false,\"gradientBackgroundType\":\"Custom\",\"standardGradientBackground\":\"AIGradient\",\"backgroundGradientStartColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"},\"backgroundGradientEndColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"},\"backgroundGradientDirection\":{\"type\":\"dynamicSelect\",\"valueType\":\"fixed\",\"value\":\"toBottom\",\"variable\":\"\",\"variableType\":\"global\"},\"hasBorder\":false,\"cornerRadiusLeftTop\":4,\"cornerRadiusRightTop\":4,\"cornerRadiusRightBottom\":4,\"cornerRadiusLeftBottom\":4,\"paddingLeft\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":8,\"variable\":\"\",\"variableType\":\"global\"},\"paddingRight\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":8,\"variable\":\"\",\"variableType\":\"global\"},\"paddingTop\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":8,\"variable\":\"\",\"variableType\":\"global\"},\"paddingBottom\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":8,\"variable\":\"\",\"variableType\":\"global\"},\"innerOffset\":0,\"enableMouseEvent\":false,\"onMouseEnterActionType\":\"setLocalState\",\"onMouseEnterLocalVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"onMouseEnterBooleanLocalValue\":{\"type\":\"dynamicBoolean\",\"valueType\":\"fixed\",\"value\":false,\"variable\":\"\",\"variableType\":\"global\"},\"onMouseEnterNumberLocalValue\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"onMouseEnterStringLocalValue\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"onMouseLeaveActionType\":\"setLocalState\",\"onMouseLeaveLocalVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"onMouseLeaveBooleanLocalValue\":{\"type\":\"dynamicBoolean\",\"valueType\":\"fixed\",\"value\":false,\"variable\":\"\",\"variableType\":\"global\"},\"onMouseLeaveNumberLocalValue\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"onMouseLeaveStringLocalValue\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"enableOnAppear\":false,\"enableStatPoint\":false,\"margin\":-2,\"cornerRadius\":4,\"isFullHeight\":false,\"transformToEventChain\":false,\"enableGradientMiddleColor\":false,\"backgroundGradientMiddleColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"},\"blur\":false,\"borderWidth\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":1,\"variable\":\"\",\"variableType\":\"global\"},\"borderColor\":\"#F6F6F6\",\"darkModeBorderColor\":\"#3C3C3C\",\"enableExposeStatPoint\":true,\"exposeStatPoint\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"exposeStatPointParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"minHeight\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"maxHeight\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"bgGradient\":[{\"type\":\"linear\",\"direction\":{\"type\":\"dynamicSelect\",\"valueType\":\"fixed\",\"value\":\"toBottom\",\"variable\":\"\",\"variableType\":\"global\"},\"colors\":[{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"},{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"}]}],\"enableDarkBgGradient\":false,\"darkBgGradient\":[{\"type\":\"linear\",\"direction\":{\"type\":\"dynamicSelect\",\"valueType\":\"fixed\",\"value\":\"toBottom\",\"variable\":\"\",\"variableType\":\"global\"},\"colors\":[{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"},{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"}]}],\"hoverText\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"hoverBackgroundColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"common_overlay_hover_color\",\"variable\":\"\",\"variableType\":\"global\"}},\"title\":\"布局\",\"hidden\":false,\"isLocked\":false,\"condition\":true,\"conditionGroup\":\"\",\"children\":[{\"componentName\":\"BaseText\",\"id\":\"node_ocl9s7wvur7\",\"props\":{\"text\":{\"i18n\":false,\"type\":\"dynamicString\",\"content\":\"审批\"},\"icon\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"darkIcon\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"autoWidth\":true,\"maxWidth\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"fixedWidth\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"marginLeft\":0,\"marginRight\":0,\"marginTop\":0,\"marginBottom\":0,\"fontColorType\":\"Standard\",\"maxLine\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":2,\"variable\":\"\",\"variableType\":\"global\"},\"color\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"common_level1_base_color\",\"variable\":\"\",\"variableType\":\"global\"},\"customLightColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#35404b\",\"variable\":\"\",\"variableType\":\"global\"},\"customDarkColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#f6f6f6\",\"variable\":\"\",\"variableType\":\"global\"},\"gravity\":\"left\",\"fontSizeType\":\"Standard\",\"size\":\"middle\",\"customFontSize\":15,\"customFontLineHeight\":22,\"bold\":false,\"italic\":false,\"strikeThrough\":false,\"lineHeight\":\"normal\",\"visible\":{\"type\":\"dynamicVisible\",\"value\":true,\"valueType\":\"fixed\",\"condition\":{\"op\":\"and\",\"conditions\":[]}},\"hoverText\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"iconType\":\"image\",\"iconFont\":{\"type\":\"icon\",\"icon\":\"icon_XDS_goodlike_line\",\"iconType\":\"ddIcon\"},\"autoMaxWidth\":false,\"enableHighlight\":false,\"styleType\":\"custom\",\"styleToken\":\"common_body_text_style\",\"innerOffset\":0,\"enableIcon\":false,\"margin\":-2,\"widthMode\":\"match_content\"},\"title\":\"基础文本\",\"hidden\":false,\"isLocked\":false,\"condition\":true,\"conditionGroup\":\"\"}]},{\"componentName\":\"Grid\",\"id\":\"node_ocl9s7wvur5\",\"props\":{\"colSpan\":1,\"isFixedWidth\":false,\"width\":50,\"childGravity\":\"leftTop\",\"marginLeft\":0,\"marginRight\":0,\"marginTop\":0,\"marginBottom\":0,\"visible\":{\"type\":\"dynamicVisible\",\"value\":true,\"valueType\":\"fixed\",\"condition\":{\"op\":\"and\",\"conditions\":[]}},\"direction\":\"vertical\",\"isAutoWidth\":false,\"statPoint\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"statPointParams\":[],\"enableColSpan\":true,\"isAutoHeight\":true,\"height\":50,\"disabledWhileForward\":false,\"hasHoverBackground\":false,\"hasBackground\":false,\"backgroundType\":\"Standard\",\"standardBackgroundColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"common_bg_color\",\"variable\":\"\",\"variableType\":\"global\"},\"backgroundColor\":\"#F6F6F6\",\"darkModeBackgroundColor\":\"#3C3C3C\",\"hasGradientBackground\":false,\"gradientBackgroundType\":\"Custom\",\"standardGradientBackground\":\"AIGradient\",\"backgroundGradientStartColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"},\"backgroundGradientEndColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"},\"backgroundGradientDirection\":{\"type\":\"dynamicSelect\",\"valueType\":\"fixed\",\"value\":\"toBottom\",\"variable\":\"\",\"variableType\":\"global\"},\"hasBorder\":false,\"cornerRadiusLeftTop\":4,\"cornerRadiusRightTop\":4,\"cornerRadiusRightBottom\":4,\"cornerRadiusLeftBottom\":4,\"paddingLeft\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":8,\"variable\":\"\",\"variableType\":\"global\"},\"paddingRight\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":8,\"variable\":\"\",\"variableType\":\"global\"},\"paddingTop\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":8,\"variable\":\"\",\"variableType\":\"global\"},\"paddingBottom\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":8,\"variable\":\"\",\"variableType\":\"global\"},\"innerOffset\":0,\"enableMouseEvent\":false,\"onMouseEnterActionType\":\"setLocalState\",\"onMouseEnterLocalVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"onMouseEnterBooleanLocalValue\":{\"type\":\"dynamicBoolean\",\"valueType\":\"fixed\",\"value\":false,\"variable\":\"\",\"variableType\":\"global\"},\"onMouseEnterNumberLocalValue\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"onMouseEnterStringLocalValue\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"onMouseLeaveActionType\":\"setLocalState\",\"onMouseLeaveLocalVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"onMouseLeaveBooleanLocalValue\":{\"type\":\"dynamicBoolean\",\"valueType\":\"fixed\",\"value\":false,\"variable\":\"\",\"variableType\":\"global\"},\"onMouseLeaveNumberLocalValue\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"onMouseLeaveStringLocalValue\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"enableOnAppear\":false,\"enableStatPoint\":false,\"margin\":-2,\"cornerRadius\":4,\"isFullHeight\":false,\"transformToEventChain\":false,\"enableGradientMiddleColor\":false,\"backgroundGradientMiddleColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"},\"blur\":false,\"borderWidth\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":1,\"variable\":\"\",\"variableType\":\"global\"},\"borderColor\":\"#F6F6F6\",\"darkModeBorderColor\":\"#3C3C3C\",\"enableExposeStatPoint\":true,\"exposeStatPoint\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"exposeStatPointParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"minHeight\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"maxHeight\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"bgGradient\":[{\"type\":\"linear\",\"direction\":{\"type\":\"dynamicSelect\",\"valueType\":\"fixed\",\"value\":\"toBottom\",\"variable\":\"\",\"variableType\":\"global\"},\"colors\":[{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"},{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"}]}],\"enableDarkBgGradient\":false,\"darkBgGradient\":[{\"type\":\"linear\",\"direction\":{\"type\":\"dynamicSelect\",\"valueType\":\"fixed\",\"value\":\"toBottom\",\"variable\":\"\",\"variableType\":\"global\"},\"colors\":[{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"},{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#ffffff\",\"variable\":\"\",\"variableType\":\"global\"}]}],\"hoverText\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"hoverBackgroundColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"common_overlay_hover_color\",\"variable\":\"\",\"variableType\":\"global\"}},\"title\":\"布局\",\"hidden\":false,\"isLocked\":false,\"condition\":true,\"conditionGroup\":\"\",\"children\":[{\"componentName\":\"Tag\",\"id\":\"node_ocl9s7wvur8\",\"props\":{\"text\":{\"i18n\":false,\"type\":\"dynamicString\",\"content\":\"工具审批\"},\"color\":{\"type\":\"dynamicSelect\",\"valueType\":\"fixed\",\"value\":\"blue\",\"variable\":\"\",\"variableType\":\"global\"},\"tagStyle\":\"hollow\",\"maxWidth\":{\"type\":\"dynamicWidth\",\"valueType\":\"adaptive\",\"value\":100,\"variableType\":\"global\",\"variable\":\"\",\"full\":false,\"adaptive\":true},\"marginLeft\":0,\"marginRight\":0,\"marginTop\":0,\"marginBottom\":0,\"visible\":{\"type\":\"dynamicVisible\",\"value\":true,\"valueType\":\"fixed\",\"condition\":{\"op\":\"and\",\"conditions\":[]}},\"innerOffset\":0,\"margin\":-2,\"size\":\"small\"},\"title\":\"标签\",\"hidden\":false,\"isLocked\":false,\"condition\":true,\"conditionGroup\":\"\"}]}]},{\"componentName\":\"BaseText\",\"id\":\"node_ocky8kbrbm4\",\"props\":{\"text\":{\"i18n\":false,\"type\":\"dynamicString\",\"content\":\"${title}\"},\"maxLine\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":2,\"variable\":\"\",\"variableType\":\"global\"},\"icon\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"darkIcon\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"marginLeft\":12,\"marginRight\":12,\"marginTop\":6,\"marginBottom\":0,\"visible\":{\"type\":\"dynamicVisible\",\"value\":true,\"valueType\":\"fixed\",\"condition\":{\"op\":\"and\",\"conditions\":[]}},\"fontColorType\":\"Standard\",\"color\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"common_level1_base_color\",\"variable\":\"\",\"variableType\":\"global\"},\"customLightColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#35404b\",\"variable\":\"\",\"variableType\":\"global\"},\"customDarkColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#f6f6f6\",\"variable\":\"\",\"variableType\":\"global\"},\"maxWidth\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":100,\"variable\":\"\",\"variableType\":\"global\"},\"width\":100,\"autoWidth\":false,\"gravity\":\"left\",\"fontSizeType\":\"Standard\",\"size\":\"middle\",\"customFontSize\":15,\"customFontLineHeight\":22,\"bold\":true,\"italic\":false,\"strikeThrough\":false,\"lineHeight\":\"normal\",\"fixedWidth\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"hoverText\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"iconType\":\"image\",\"iconFont\":{\"type\":\"icon\",\"icon\":\"icon_XDS_goodlike_line\",\"iconType\":\"ddIcon\"},\"autoMaxWidth\":false,\"enableHighlight\":false,\"styleType\":\"custom\",\"styleToken\":\"common_body_text_style\",\"innerOffset\":0,\"enableIcon\":false,\"margin\":-2,\"widthMode\":\"match_parent\"},\"title\":\"基础文本\",\"hidden\":false,\"isLocked\":false,\"condition\":true,\"conditionGroup\":\"\"},{\"componentName\":\"BaseText\",\"id\":\"node_ocky8kbrbm1\",\"props\":{\"text\":{\"i18n\":false,\"type\":\"dynamicString\",\"content\":\"工具:${name}\"},\"maxLine\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":2,\"variable\":\"\",\"variableType\":\"global\"},\"icon\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"darkIcon\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"marginLeft\":12,\"marginRight\":12,\"marginTop\":6,\"marginBottom\":0,\"visible\":{\"type\":\"dynamicVisible\",\"value\":true,\"valueType\":\"fixed\",\"condition\":{\"op\":\"and\",\"conditions\":[]}},\"fontColorType\":\"Standard\",\"color\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"common_level1_base_color\",\"variable\":\"\",\"variableType\":\"global\"},\"customLightColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#35404b\",\"variable\":\"\",\"variableType\":\"global\"},\"customDarkColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#f6f6f6\",\"variable\":\"\",\"variableType\":\"global\"},\"maxWidth\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":100,\"variable\":\"\",\"variableType\":\"global\"},\"width\":100,\"autoWidth\":false,\"gravity\":\"left\",\"fontSizeType\":\"Standard\",\"size\":\"middle\",\"customFontSize\":15,\"customFontLineHeight\":22,\"bold\":false,\"italic\":false,\"strikeThrough\":false,\"lineHeight\":\"normal\",\"fixedWidth\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"hoverText\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"iconType\":\"image\",\"iconFont\":{\"type\":\"icon\",\"icon\":\"icon_XDS_goodlike_line\",\"iconType\":\"ddIcon\"},\"autoMaxWidth\":false,\"enableHighlight\":false,\"styleType\":\"custom\",\"styleToken\":\"common_body_text_style\",\"innerOffset\":0,\"enableIcon\":false,\"margin\":-2,\"widthMode\":\"match_parent\"},\"title\":\"基础文本\",\"hidden\":false,\"isLocked\":false,\"condition\":true,\"conditionGroup\":\"\"},{\"componentName\":\"BaseText\",\"id\":\"node_ocky8kbrbm2\",\"props\":{\"text\":{\"i18n\":false,\"type\":\"dynamicString\",\"content\":\"参数:${input}\"},\"maxLine\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":3,\"variable\":\"\",\"variableType\":\"global\"},\"icon\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"darkIcon\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"marginLeft\":12,\"marginRight\":12,\"marginTop\":6,\"marginBottom\":0,\"visible\":{\"type\":\"dynamicVisible\",\"value\":true,\"valueType\":\"fixed\",\"condition\":{\"op\":\"and\",\"conditions\":[]}},\"fontColorType\":\"Standard\",\"color\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"common_level1_base_color\",\"variable\":\"\",\"variableType\":\"global\"},\"customLightColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#35404b\",\"variable\":\"\",\"variableType\":\"global\"},\"customDarkColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#f6f6f6\",\"variable\":\"\",\"variableType\":\"global\"},\"maxWidth\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":100,\"variable\":\"\",\"variableType\":\"global\"},\"width\":100,\"autoWidth\":false,\"gravity\":\"left\",\"fontSizeType\":\"Standard\",\"size\":\"middle\",\"customFontSize\":15,\"customFontLineHeight\":22,\"bold\":false,\"italic\":false,\"strikeThrough\":false,\"lineHeight\":\"normal\",\"fixedWidth\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"hoverText\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"iconType\":\"image\",\"iconFont\":{\"type\":\"icon\",\"icon\":\"icon_XDS_goodlike_line\",\"iconType\":\"ddIcon\"},\"autoMaxWidth\":false,\"enableHighlight\":false,\"styleType\":\"custom\",\"styleToken\":\"common_body_text_style\",\"innerOffset\":0,\"enableIcon\":false,\"margin\":-2,\"widthMode\":\"match_parent\"},\"title\":\"基础文本\",\"hidden\":false,\"isLocked\":false,\"condition\":true,\"conditionGroup\":\"\"},{\"componentName\":\"BaseText\",\"id\":\"node_ocl9s7wvur9\",\"props\":{\"text\":{\"i18n\":false,\"type\":\"dynamicString\",\"content\":\"创建时间:${created_at}\"},\"icon\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"darkIcon\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"autoWidth\":false,\"maxWidth\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"fixedWidth\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"marginLeft\":12,\"marginRight\":12,\"marginTop\":12,\"marginBottom\":4,\"fontColorType\":\"Standard\",\"maxLine\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":2,\"variable\":\"\",\"variableType\":\"global\"},\"color\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"common_level3_base_color\",\"variable\":\"\",\"variableType\":\"global\"},\"customLightColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#35404b\",\"variable\":\"\",\"variableType\":\"global\"},\"customDarkColor\":{\"type\":\"dynamicColor\",\"valueType\":\"fixed\",\"value\":\"#f6f6f6\",\"variable\":\"\",\"variableType\":\"global\"},\"gravity\":\"left\",\"fontSizeType\":\"Standard\",\"size\":\"small\",\"customFontSize\":15,\"customFontLineHeight\":22,\"bold\":false,\"italic\":false,\"strikeThrough\":false,\"lineHeight\":\"normal\",\"visible\":{\"type\":\"dynamicVisible\",\"value\":true,\"valueType\":\"fixed\",\"condition\":{\"op\":\"and\",\"conditions\":[]}},\"hoverText\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"iconType\":\"image\",\"iconFont\":{\"type\":\"icon\",\"icon\":\"icon_XDS_goodlike_line\",\"iconType\":\"ddIcon\"},\"autoMaxWidth\":false,\"enableHighlight\":false,\"styleType\":\"custom\",\"styleToken\":\"common_body_text_style\",\"innerOffset\":0,\"enableIcon\":false,\"margin\":-2,\"widthMode\":\"match_parent\"},\"title\":\"基础文本\",\"hidden\":false,\"isLocked\":false,\"condition\":true,\"conditionGroup\":\"\"},{\"componentName\":\"ButtonList\",\"id\":\"node_ocl64fihiz1\",\"props\":{\"direction\":\"horizontal\",\"buttons\":{\"type\":\"button\",\"list\":[{\"id\":\"2\",\"text\":{\"i18n\":false,\"type\":\"dynamicString\",\"content\":\"拒绝\"},\"status\":\"normal\",\"color\":\"gray\",\"icon\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"darkModeIcon\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"visible\":{\"type\":\"dynamicVisible\",\"value\":true,\"valueType\":\"fixed\",\"condition\":{\"op\":\"and\",\"conditions\":[]}},\"actionType\":\"request\",\"statPoint\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"statPointParams\":[],\"disabledWhileForward\":false,\"urlType\":\"all\",\"url\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"androidUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"pcUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"iosUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"ipadUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"apadUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"isDtmd\":false,\"actionId\":{\"i18n\":false,\"type\":\"dynamicString\",\"content\":\"denied\"},\"params\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"denied\",\"name\":\"action\",\"variableType\":\"global\",\"id\":\"1\"}],\"successToast\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"failureToast\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"successCondition\":{\"op\":\"and\",\"conditions\":[]},\"copyValue\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"copyVariable\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"copyType\":\"common\",\"customHandler\":\"\",\"customDurboHandler\":\"\",\"confirmTitle\":{\"type\":\"dynamicString\",\"content\":\"标题\",\"i18n\":false},\"confirmMessage\":{\"type\":\"dynamicString\",\"content\":\"内容\",\"i18n\":false},\"confirmOkText\":{\"type\":\"dynamicString\",\"content\":\"确认\",\"i18n\":false},\"confirmOkAction\":\"request\",\"confirmOkReqActionActionId\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"confirmOkReqActionParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"confirmOkReqActionToast\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"confirmCancelText\":{\"type\":\"dynamicString\",\"content\":\"取消\",\"i18n\":false},\"confirmCancelAction\":\"none\",\"confirmCancelReqActionActionId\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"confirmCancelReqActionParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"confirmCancelReqActionToast\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"actionSheetTitle\":{\"type\":\"dynamicString\",\"content\":\"标题\",\"i18n\":false},\"actionSheetMessage\":{\"type\":\"dynamicString\",\"content\":\"面板描述\",\"i18n\":false},\"actionSheetItems\":[],\"toastContent\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"toastType\":1,\"toastActionText\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"toastActionUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"localVarAction\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"booleanLocalValue\":{\"type\":\"dynamicBoolean\",\"valueType\":\"fixed\",\"value\":false,\"variable\":\"\",\"variableType\":\"global\"},\"numberLocalValue\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"stringLocalValue\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"enableCustomLocalData\":false,\"customLocalData\":\"{}\",\"keyOfDynamicObject\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"openModalTitle\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"openModalHeight\":500,\"openModalWidth\":400,\"events\":[],\"selectActionType\":\"setLocalState\",\"selectDataKey\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"selectOptions\":{\"type\":\"dynamicSelectOptions\",\"valueType\":\"fixed\",\"value\":[],\"variable\":\"\",\"variableType\":\"global\"},\"selectParams\":[],\"selectIndex\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"fixWidth\":false,\"fixedWidth\":0,\"autoWidth\":false,\"dataSources\":[],\"updateTargetValue\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"updateTargetVariable\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"apiName\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"apiParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"apiRetLocalVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"jsapiName\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"jsapiParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"jsapiRetLocalVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"callAPIName\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"callAPIType\":\"jsapi\",\"callAPIParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"isCallAPIParamsVariable\":false,\"callAPIVariableParams\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"videoUrl\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"dynamicEventVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"fold\":{\"type\":\"dynamicBoolean\",\"valueType\":\"fixed\",\"value\":false,\"variable\":\"\",\"variableType\":\"global\"},\"commentData\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"commentContent\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"commentMode\":\"predefine\",\"commentExtraParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"groupCreateResult\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"groupName\":{\"type\":\"dynamicString\",\"content\":\"群名称\",\"i18n\":false},\"groupTemplateID\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"iconType\":\"iconCode\",\"iconFont\":{\"type\":\"icon\",\"iconType\":\"ddIcon\",\"icon\":\"icon_refused\"}},{\"id\":\"1\",\"text\":{\"i18n\":false,\"type\":\"dynamicString\",\"content\":\"同意\"},\"status\":\"normal\",\"color\":\"blue\",\"icon\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"darkModeIcon\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"visible\":{\"type\":\"dynamicVisible\",\"value\":true,\"valueType\":\"fixed\",\"condition\":{\"op\":\"and\",\"conditions\":[]}},\"actionType\":\"request\",\"statPoint\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"statPointParams\":[],\"disabledWhileForward\":false,\"urlType\":\"all\",\"url\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"androidUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"pcUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"iosUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"ipadUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"apadUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"isDtmd\":false,\"actionId\":{\"i18n\":false,\"type\":\"dynamicString\",\"content\":\"approved\"},\"params\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"approved\",\"name\":\"action\",\"variableType\":\"global\",\"id\":\"1\"}],\"successToast\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"failureToast\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"successCondition\":{\"op\":\"and\",\"conditions\":[]},\"copyValue\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"copyVariable\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"copyType\":\"common\",\"customHandler\":\"\",\"customDurboHandler\":\"\",\"confirmTitle\":{\"type\":\"dynamicString\",\"content\":\"标题\",\"i18n\":false},\"confirmMessage\":{\"type\":\"dynamicString\",\"content\":\"内容\",\"i18n\":false},\"confirmOkText\":{\"type\":\"dynamicString\",\"content\":\"确认\",\"i18n\":false},\"confirmOkAction\":\"request\",\"confirmOkReqActionActionId\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"confirmOkReqActionParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"confirmOkReqActionToast\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"confirmCancelText\":{\"type\":\"dynamicString\",\"content\":\"取消\",\"i18n\":false},\"confirmCancelAction\":\"none\",\"confirmCancelReqActionActionId\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"confirmCancelReqActionParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"confirmCancelReqActionToast\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"actionSheetTitle\":{\"type\":\"dynamicString\",\"content\":\"标题\",\"i18n\":false},\"actionSheetMessage\":{\"type\":\"dynamicString\",\"content\":\"面板描述\",\"i18n\":false},\"actionSheetItems\":[],\"toastContent\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"toastType\":1,\"toastActionText\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"toastActionUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"localVarAction\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"booleanLocalValue\":{\"type\":\"dynamicBoolean\",\"valueType\":\"fixed\",\"value\":false,\"variable\":\"\",\"variableType\":\"global\"},\"numberLocalValue\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"stringLocalValue\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"enableCustomLocalData\":false,\"customLocalData\":\"{}\",\"keyOfDynamicObject\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"openModalTitle\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"openModalHeight\":500,\"openModalWidth\":400,\"events\":[],\"selectActionType\":\"setLocalState\",\"selectDataKey\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"selectOptions\":{\"type\":\"dynamicSelectOptions\",\"valueType\":\"fixed\",\"value\":[],\"variable\":\"\",\"variableType\":\"global\"},\"selectParams\":[],\"selectIndex\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"fixWidth\":false,\"fixedWidth\":0,\"autoWidth\":false,\"dataSources\":[],\"updateTargetValue\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"updateTargetVariable\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"apiName\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"apiParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"apiRetLocalVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"jsapiName\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"jsapiParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"jsapiRetLocalVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"callAPIName\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"callAPIType\":\"jsapi\",\"callAPIParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"isCallAPIParamsVariable\":false,\"callAPIVariableParams\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"videoUrl\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"dynamicEventVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"fold\":{\"type\":\"dynamicBoolean\",\"valueType\":\"fixed\",\"value\":false,\"variable\":\"\",\"variableType\":\"global\"},\"commentData\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"commentContent\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"commentMode\":\"predefine\",\"commentExtraParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"groupCreateResult\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"groupName\":{\"type\":\"dynamicString\",\"content\":\"群名称\",\"i18n\":false},\"groupTemplateID\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"iconType\":\"iconCode\",\"iconFont\":{\"type\":\"icon\",\"iconType\":\"ddIcon\",\"icon\":\"icon_accept\"}}]},\"marginLeft\":6,\"marginRight\":6,\"marginTop\":6,\"marginBottom\":6,\"widthMode\":\"AutoWidth\",\"innerOffset\":0,\"visible\":{\"type\":\"dynamicVisible\",\"value\":true,\"valueType\":\"condition\",\"condition\":{\"op\":\"and\",\"conditions\":[{\"value\":\"approved\",\"op\":\"notEqual\",\"variable\":\"status\",\"variableType\":\"global\",\"type\":\"variable\",\"valueType\":\"fixed\",\"valueVariableType\":\"global\"},{\"value\":\"denied\",\"op\":\"notEqual\",\"variable\":\"status\",\"variableType\":\"global\",\"type\":\"variable\",\"valueType\":\"fixed\",\"valueVariableType\":\"global\"}]}},\"margin\":-2},\"title\":\"横排按钮\",\"hidden\":false,\"isLocked\":false,\"condition\":true,\"conditionGroup\":\"\"},{\"componentName\":\"SingleButton\",\"id\":\"node_ocly43oyjo1\",\"props\":{\"text\":{\"i18n\":false,\"type\":\"dynamicString\",\"content\":\"已同意\"},\"status\":{\"type\":\"dynamicSelect\",\"valueType\":\"fixed\",\"value\":\"disabled\",\"variable\":\"\",\"variableType\":\"global\"},\"color\":{\"type\":\"dynamicSelect\",\"valueType\":\"fixed\",\"value\":\"blue\",\"variable\":\"\",\"variableType\":\"global\"},\"icon\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"darkModeIcon\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"iconType\":\"image\",\"iconFont\":{\"type\":\"dynamicIcon\",\"valueType\":\"fixed\",\"value\":{\"type\":\"icon\",\"icon\":\"icon_XDS_goodlike_line\",\"iconType\":\"ddIcon\"},\"variable\":\"\",\"variableType\":\"global\"},\"actionType\":\"url\",\"statPoint\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"statPointParams\":[],\"urlType\":\"all\",\"url\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"androidUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"pcUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"iosUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"isDtmd\":false,\"actionId\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"params\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"successToast\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"failureToast\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"successCondition\":{\"op\":\"and\",\"conditions\":[]},\"copyValue\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"copyVariable\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"customHandler\":\"\",\"confirmTitle\":{\"type\":\"dynamicString\",\"content\":\"标题\",\"i18n\":false},\"confirmMessage\":{\"type\":\"dynamicString\",\"content\":\"内容\",\"i18n\":false},\"confirmOkText\":{\"type\":\"dynamicString\",\"content\":\"确认\",\"i18n\":false},\"confirmOkAction\":\"request\",\"confirmOkReqActionActionId\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"confirmOkReqActionParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"confirmOkReqActionToast\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"confirmCancelText\":{\"type\":\"dynamicString\",\"content\":\"取消\",\"i18n\":false},\"confirmCancelAction\":\"none\",\"confirmCancelReqActionActionId\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"confirmCancelReqActionParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"confirmCancelReqActionToast\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"actionSheetTitle\":{\"type\":\"dynamicString\",\"content\":\"标题\",\"i18n\":false},\"actionSheetMessage\":{\"type\":\"dynamicString\",\"content\":\"面板描述\",\"i18n\":false},\"actionSheetItems\":[],\"toastContent\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"toastType\":1,\"localVarAction\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"booleanLocalValue\":{\"type\":\"dynamicBoolean\",\"valueType\":\"fixed\",\"value\":false,\"variable\":\"\",\"variableType\":\"global\"},\"numberLocalValue\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"stringLocalValue\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"openModalTitle\":{\"type\":\"dynamicString\",\"content\":\"标题\",\"i18n\":false},\"openModalHeight\":500,\"openModalWidth\":400,\"events\":[],\"selectActionType\":\"setLocalState\",\"selectDataKey\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"selectOptions\":{\"type\":\"dynamicSelectOptions\",\"valueType\":\"fixed\",\"value\":[],\"variable\":\"\",\"variableType\":\"global\"},\"selectParams\":[],\"selectIndex\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"fixWidth\":false,\"fixedWidth\":0,\"autoWidth\":false,\"dataSources\":[],\"updateTargetValue\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"updateTargetVariable\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"apiName\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"apiParams\":[{\"type\":\"variable\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"apiRetLocalVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"jsapiName\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"jsapiParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"jsapiRetLocalVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"callAPIName\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"callAPIParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"isCallAPIParamsVariable\":false,\"callAPIVariableParams\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"visible\":{\"type\":\"dynamicVisible\",\"value\":true,\"valueType\":\"condition\",\"condition\":{\"op\":\"and\",\"conditions\":[{\"value\":\"approved\",\"op\":\"equal\",\"variable\":\"status\",\"variableType\":\"global\",\"type\":\"variable\",\"valueType\":\"fixed\",\"valueVariableType\":\"global\"}]}},\"marginLeft\":12,\"marginRight\":12,\"marginTop\":8,\"marginBottom\":8,\"disabledWhileForward\":false,\"innerOffset\":0,\"enableIcon\":false,\"enableClickEvent\":true,\"enableStatPoint\":false,\"margin\":-2,\"iconPosition\":\"left\",\"enableCornerMark\":false,\"cornerMarkPosition\":\"right\",\"cornerMarkText\":{\"type\":\"dynamicString\",\"content\":\"按钮角标文案\",\"i18n\":false},\"cornerMarkTextColor\":\"white\",\"cornerBackgroundColorType\":\"standard\",\"standardCornerBackgroundColor\":\"RedGradient\",\"customCornerBackgroundColor\":\"#FF9200\",\"customCornerDarkModeBackgroundColor\":\"#FF9200\",\"cornerMarkVisible\":{\"type\":\"dynamicVisible\",\"value\":true,\"valueType\":\"fixed\",\"condition\":{\"op\":\"and\",\"conditions\":[]}},\"transformToEventChain\":false,\"widthMode\":\"match_parent\",\"width\":200,\"copyType\":\"common\",\"toastActionText\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"toastActionUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"customDurboHandler\":\"\",\"enableCustomLocalData\":false,\"customLocalData\":\"{}\",\"videoUrl\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"dynamicEventVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"fold\":{\"type\":\"dynamicBoolean\",\"valueType\":\"fixed\",\"value\":false,\"variable\":\"\",\"variableType\":\"global\"},\"enablePadButtonText\":false,\"ipadUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"apadUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"keyOfDynamicObject\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"commentData\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"commentMode\":\"predefine\",\"commentContent\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"commentExtraParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}]},\"title\":\"单个按钮\",\"hidden\":false,\"isLocked\":false,\"condition\":true,\"conditionGroup\":\"\"},{\"componentName\":\"SingleButton\",\"id\":\"node_ocly43oyjo2\",\"props\":{\"text\":{\"i18n\":false,\"type\":\"dynamicString\",\"content\":\"已拒绝\"},\"status\":{\"type\":\"dynamicSelect\",\"valueType\":\"fixed\",\"value\":\"disabled\",\"variable\":\"\",\"variableType\":\"global\"},\"color\":{\"type\":\"dynamicSelect\",\"valueType\":\"fixed\",\"value\":\"red\",\"variable\":\"\",\"variableType\":\"global\"},\"icon\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"darkModeIcon\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"iconType\":\"image\",\"iconFont\":{\"type\":\"dynamicIcon\",\"valueType\":\"fixed\",\"value\":{\"type\":\"icon\",\"icon\":\"icon_XDS_goodlike_line\",\"iconType\":\"ddIcon\"},\"variable\":\"\",\"variableType\":\"global\"},\"actionType\":\"url\",\"statPoint\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"statPointParams\":[],\"urlType\":\"all\",\"url\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"androidUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"pcUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"iosUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"isDtmd\":false,\"actionId\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"params\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"successToast\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"failureToast\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"successCondition\":{\"op\":\"and\",\"conditions\":[]},\"copyValue\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"copyVariable\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"customHandler\":\"\",\"confirmTitle\":{\"type\":\"dynamicString\",\"content\":\"标题\",\"i18n\":false},\"confirmMessage\":{\"type\":\"dynamicString\",\"content\":\"内容\",\"i18n\":false},\"confirmOkText\":{\"type\":\"dynamicString\",\"content\":\"确认\",\"i18n\":false},\"confirmOkAction\":\"request\",\"confirmOkReqActionActionId\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"confirmOkReqActionParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"confirmOkReqActionToast\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"confirmCancelText\":{\"type\":\"dynamicString\",\"content\":\"取消\",\"i18n\":false},\"confirmCancelAction\":\"none\",\"confirmCancelReqActionActionId\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"confirmCancelReqActionParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"confirmCancelReqActionToast\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"actionSheetTitle\":{\"type\":\"dynamicString\",\"content\":\"标题\",\"i18n\":false},\"actionSheetMessage\":{\"type\":\"dynamicString\",\"content\":\"面板描述\",\"i18n\":false},\"actionSheetItems\":[],\"toastContent\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"toastType\":1,\"localVarAction\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"booleanLocalValue\":{\"type\":\"dynamicBoolean\",\"valueType\":\"fixed\",\"value\":false,\"variable\":\"\",\"variableType\":\"global\"},\"numberLocalValue\":{\"type\":\"dynamicNumber\",\"valueType\":\"fixed\",\"value\":0,\"variable\":\"\",\"variableType\":\"global\"},\"stringLocalValue\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"openModalTitle\":{\"type\":\"dynamicString\",\"content\":\"标题\",\"i18n\":false},\"openModalHeight\":500,\"openModalWidth\":400,\"events\":[],\"selectActionType\":\"setLocalState\",\"selectDataKey\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"selectOptions\":{\"type\":\"dynamicSelectOptions\",\"valueType\":\"fixed\",\"value\":[],\"variable\":\"\",\"variableType\":\"global\"},\"selectParams\":[],\"selectIndex\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"fixWidth\":false,\"fixedWidth\":0,\"autoWidth\":false,\"dataSources\":[],\"updateTargetValue\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"updateTargetVariable\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"apiName\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"apiParams\":[{\"type\":\"variable\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"apiRetLocalVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"jsapiName\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"jsapiParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"jsapiRetLocalVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"callAPIName\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"callAPIParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}],\"isCallAPIParamsVariable\":false,\"callAPIVariableParams\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"visible\":{\"type\":\"dynamicVisible\",\"value\":true,\"valueType\":\"condition\",\"condition\":{\"op\":\"and\",\"conditions\":[{\"value\":\"denied\",\"op\":\"equal\",\"variable\":\"status\",\"variableType\":\"global\",\"type\":\"variable\",\"valueType\":\"fixed\",\"valueVariableType\":\"global\"}]}},\"marginLeft\":12,\"marginRight\":12,\"marginTop\":8,\"marginBottom\":8,\"disabledWhileForward\":false,\"innerOffset\":0,\"enableIcon\":false,\"enableClickEvent\":true,\"enableStatPoint\":false,\"margin\":-2,\"iconPosition\":\"left\",\"enableCornerMark\":false,\"cornerMarkPosition\":\"right\",\"cornerMarkText\":{\"type\":\"dynamicString\",\"content\":\"按钮角标文案\",\"i18n\":false},\"cornerMarkTextColor\":\"white\",\"cornerBackgroundColorType\":\"standard\",\"standardCornerBackgroundColor\":\"RedGradient\",\"customCornerBackgroundColor\":\"#FF9200\",\"customCornerDarkModeBackgroundColor\":\"#FF9200\",\"cornerMarkVisible\":{\"type\":\"dynamicVisible\",\"value\":true,\"valueType\":\"fixed\",\"condition\":{\"op\":\"and\",\"conditions\":[]}},\"transformToEventChain\":false,\"widthMode\":\"match_parent\",\"width\":200,\"copyType\":\"common\",\"toastActionText\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"toastActionUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"customDurboHandler\":\"\",\"enableCustomLocalData\":false,\"customLocalData\":\"{}\",\"videoUrl\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"dynamicEventVar\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"fold\":{\"type\":\"dynamicBoolean\",\"valueType\":\"fixed\",\"value\":false,\"variable\":\"\",\"variableType\":\"global\"},\"enablePadButtonText\":false,\"ipadUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"apadUrl\":{\"type\":\"dynamicLink\",\"value\":\"\",\"valueType\":\"fixed\",\"variable\":\"\",\"variableType\":\"global\"},\"keyOfDynamicObject\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"commentData\":{\"type\":\"variableValue\",\"variableType\":\"global\",\"variable\":\"\"},\"commentMode\":\"predefine\",\"commentContent\":{\"type\":\"dynamicString\",\"content\":\"\",\"i18n\":false},\"commentExtraParams\":[{\"type\":\"fixed\",\"variable\":\"\",\"value\":\"\",\"name\":\"\",\"variableType\":\"global\",\"id\":\"1\"}]},\"title\":\"单个按钮\",\"hidden\":false,\"isLocked\":false,\"condition\":true,\"conditionGroup\":\"\"}]}],\"i18n\":{},\"version\":\"1.0.0\"},\"mockData\":{\"cardData\":{\"name\":\"Bash\",\"input\":\"{\\\"command\\\": \\\"pwd\\\"}\",\"created_at\":\"2023-10-10 10:10:10\",\"title\":\"Friday 提交的工具执行\",\"status\":\"\"},\"cardPrivateData\":{},\"localData\":{\"title\":\"\",\"type\":\"\",\"amount\":\"\",\"reason\":\"\",\"lastMessage\":\"\",\"status\":\"\"},\"richTextData\":{}},\"renderContext\":{\"regenerateEnabled\":\"1\",\"regenerateIndex\":\"2\",\"regenerateTotal\":\"5\"},\"editVersion\":0,\"customWidgetInfo\":\"\",\"useCustomWidgetInfo\":false,\"variableList\":[{\"id\":\"title\",\"name\":\"title\",\"description\":\"审批标题\",\"type\":\"string\",\"private\":false,\"editorVarType\":\"variables\"},{\"id\":\"name\",\"name\":\"name\",\"description\":\"工具名\",\"type\":\"string\",\"private\":false,\"editorVarType\":\"variables\"},{\"id\":\"input\",\"name\":\"input\",\"description\":\"工具参数\",\"type\":\"string\",\"private\":false,\"editorVarType\":\"variables\"},{\"name\":\"status\",\"private\":false,\"type\":\"string\",\"id\":\"status\",\"description\":\"审批状态\",\"editorVarType\":\"variables\"},{\"name\":\"created_at\",\"private\":false,\"type\":\"string\",\"id\":\"created_at\",\"description\":\"创建时间\",\"editorVarType\":\"variables\"}],\"formList\":[],\"customContextList\":[],\"expList\":[],\"localList\":[],\"hsfList\":[],\"lwpList\":[],\"pageData\":{},\"extension\":{\"extendType\":\"NORMAL\",\"fileTypeList\":[{\"fileName\":\"event_chain\",\"fileSource\":\"{}\",\"fileType\":\"json\"}]}}","widgetInfo":"<LinearLayout\n width=\"@data{width}\"\n height=\"match_content\"\n userId=\"node_dockcviv8fo1\"\n orientation=\"vertical\"\n cornerRadius=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@concat{@dtDesignTokenParser{'common_border_radius_xl', '12'},'np'},'6np'}\"\n backgroundColor=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@dtDesignTokenParser{'common_fg_z10_color'},@dtDarkModeAdapter{'#FFFFFF', '#1E1E1E'}}\">\n <LinearLayout\n width=\"match_parent\"\n height=\"match_content\"\n orientation=\"horizontal\"\n userId=\"node_ocl9s7wvur2\"\n marginLeft=\"12np\"\n marginBottom=\"4np\"\n marginTop=\"12np\"\n marginRight=\"12np\"\n childGravity=\"leftCenter\">\n <LinearLayout\n width=\"16np\"\n height=\"match_content\"\n orientation=\"vertical\"\n userId=\"node_ocl9s7wvur3\"\n childGravity=\"leftTop\">\n <LinearLayout\n width=\"16np\"\n height=\"match_content\"\n userId=\"node_ocl9s7wvur6\"\n onTap=\"@dtUtStat{@dtMapAppend{null,'gmKey',logTrack_autolog,'goKey',@dtMapAppend{null,'currentLoggedUserId',@triple{@data{data.renderContext.currentLoggedUserId},@data{data.renderContext.currentLoggedUserId},''},'logTrack_key',logTrack_autolog,'logTrack_text',@triple{@substr{@toStr{''},0,20},@substr{@toStr{''},0,20},''},'logTrack_componentType',Image,'logTrack_nodeId',node_ocl9s7wvur6,'logTrack_templateId',8a4ff239-6eea-44f4-a7b8-7f2c4bb0389c.schema,'logTrack_cardJson',@triple{@toStr{@data{data.cardData.logTrack_cardJson}},@toStr{@data{data.cardData.logTrack_cardJson}},''},'logTrack_itemJson',@triple{@toStr{@subdata{logTrack_itemJson}},@toStr{@subdata{logTrack_itemJson}},''}}}},@dtPreviewImage{@toStr{'@lALPDfJ6ZmKe0eZAQA'},@dtArrayAppend{null,@toStr{'@lALPDfJ6ZmKe0eZAQA'}}}\">\n <ImageView\n width=\"match_parent\"\n height=\"16np\"\n imageUrl=\"@toStr{'@lALPDfJ6ZmKe0eZAQA'}\"\n scaleType=\"fitCenter\">\n\n </ImageView>\n\n </LinearLayout>\n\n </LinearLayout>\n <LinearLayout\n width=\"match_content\"\n height=\"match_content\"\n orientation=\"vertical\"\n userId=\"node_ocl9s7wvur4\"\n marginLeft=\"8np\"\n marginRight=\"8np\"\n childGravity=\"leftTop\">\n <LinearLayout\n width=\"match_content\"\n height=\"match_content\"\n orientation=\"horizontal\"\n childGravity=\"leftTop\"\n userId=\"node_ocl9s7wvur7\">\n <FastTextView\n text=\"@toStr{'审批'}\"\n width=\"match_content\"\n height=\"match_content\"\n lineBreakMode=\"end\"\n textGravity=\"left\"\n maxLines=\"2\"\n textSize=\"15np\"\n lineHeight=\"22np\"\n isBold=\"false\"\n isItalic=\"false\"\n isStrikeThrough=\"false\"\n textColor=\"@triple{@triple{@dtParserAvailable{'dtDesignTokenParser'},@dtDesignTokenParser{'common_level1_base_color'},@dtDarkModeAdapter{'#181C1F','#EEF1F5'}},@triple{@dtParserAvailable{'dtDesignTokenParser'},@dtDesignTokenParser{'common_level1_base_color'},@dtDarkModeAdapter{'#181C1F','#EEF1F5'}},@dtDarkModeAdapter{'#181C1F','#EEF1F5'}}\"\n weight=\"@triple{@equal{match_content,match_content},'1',''}\"\n maxWidth=\"@triple{@greater{@toLong{'0'},0},'0np',@concat{@toStr{@sub{@toLong{@substr{@toStr{@data{width}},'0',@toStr{@sub{@toLong{@len{@toStr{@data{width}}}},2}}}},40}},'np'}}\">\n\n </FastTextView>\n\n </LinearLayout>\n\n </LinearLayout>\n <LinearLayout\n width=\"match_parent\"\n height=\"match_content\"\n orientation=\"vertical\"\n userId=\"node_ocl9s7wvur5\"\n childGravity=\"leftTop\"\n weight=\"1\">\n <LinearLayout\n orientation=\"horizontal\"\n width=\"match_content\"\n height=\"match_content\"\n paddingTop=\"2np\"\n paddingBottom=\"2np\"\n backgroundColor=\"#00000000\"\n paddingLeft=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'6np','4np'}\"\n paddingRight=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'6np','4np'}\"\n cornerRadius=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'10np','4np'}\"\n borderWidth=\"1np\"\n borderColor=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@dtDesignTokenParser{@concat{'common_',@triple{@equal{'blue',black},line_hard_color,@concat{'blue','3_color'}}}},'#7A007FFF'}\"\n userId=\"node_ocl9s7wvur8\">\n <FastTextView\n lineBreakMode=\"end\"\n width=\"match_content\"\n height=\"match_content\"\n text=\"@toStr{'工具审批'}\"\n maxLines=\"1\"\n textColor=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@dtDesignTokenParser{@concat{'common_',@triple{@equal{'blue',black},level1_base_color,@concat{'blue','1_color'}}}},'#007FFF'}\"\n textSize=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@dtDesignTokenParser{'common_footnote_text_style__font_size', '12np'},'12np'}\"\n lineHeight=\"14np\">\n\n </FastTextView>\n\n </LinearLayout>\n\n </LinearLayout>\n\n </LinearLayout>\n <LinearLayout\n marginLeft=\"12np\"\n marginTop=\"6np\"\n marginRight=\"12np\"\n width=\"match_parent\"\n height=\"match_content\"\n orientation=\"horizontal\"\n childGravity=\"leftTop\"\n userId=\"node_ocky8kbrbm4\">\n <FastTextView\n text=\"@toStr{@data{data.cardData.title}}\"\n width=\"@triple{@greater{@toLong{'0'},0},'0np',match_content}\"\n height=\"match_content\"\n lineBreakMode=\"end\"\n textGravity=\"left\"\n maxLines=\"2\"\n textSize=\"15np\"\n lineHeight=\"22np\"\n isBold=\"true\"\n isItalic=\"false\"\n isStrikeThrough=\"false\"\n textColor=\"@triple{@triple{@dtParserAvailable{'dtDesignTokenParser'},@dtDesignTokenParser{'common_level1_base_color'},@dtDarkModeAdapter{'#181C1F','#EEF1F5'}},@triple{@dtParserAvailable{'dtDesignTokenParser'},@dtDesignTokenParser{'common_level1_base_color'},@dtDarkModeAdapter{'#181C1F','#EEF1F5'}},@dtDarkModeAdapter{'#181C1F','#EEF1F5'}}\"\n weight=\"@triple{@equal{@triple{@greater{@toLong{'0'},0},'0np',match_content},match_content},'1',''}\">\n\n </FastTextView>\n\n </LinearLayout>\n <LinearLayout\n marginLeft=\"12np\"\n marginTop=\"6np\"\n marginRight=\"12np\"\n width=\"match_parent\"\n height=\"match_content\"\n orientation=\"horizontal\"\n childGravity=\"leftTop\"\n userId=\"node_ocky8kbrbm1\">\n <FastTextView\n text=\"@concat{'工具:', @toStr{@data{data.cardData.name}}}\"\n width=\"@triple{@greater{@toLong{'0'},0},'0np',match_content}\"\n height=\"match_content\"\n lineBreakMode=\"end\"\n textGravity=\"left\"\n maxLines=\"2\"\n textSize=\"15np\"\n lineHeight=\"22np\"\n isBold=\"false\"\n isItalic=\"false\"\n isStrikeThrough=\"false\"\n textColor=\"@triple{@triple{@dtParserAvailable{'dtDesignTokenParser'},@dtDesignTokenParser{'common_level1_base_color'},@dtDarkModeAdapter{'#181C1F','#EEF1F5'}},@triple{@dtParserAvailable{'dtDesignTokenParser'},@dtDesignTokenParser{'common_level1_base_color'},@dtDarkModeAdapter{'#181C1F','#EEF1F5'}},@dtDarkModeAdapter{'#181C1F','#EEF1F5'}}\"\n weight=\"@triple{@equal{@triple{@greater{@toLong{'0'},0},'0np',match_content},match_content},'1',''}\">\n\n </FastTextView>\n\n </LinearLayout>\n <LinearLayout\n marginLeft=\"12np\"\n marginTop=\"6np\"\n marginRight=\"12np\"\n width=\"match_parent\"\n height=\"match_content\"\n orientation=\"horizontal\"\n childGravity=\"leftTop\"\n userId=\"node_ocky8kbrbm2\">\n <FastTextView\n text=\"@concat{'参数:', @toStr{@data{data.cardData.input}}}\"\n width=\"@triple{@greater{@toLong{'0'},0},'0np',match_content}\"\n height=\"match_content\"\n lineBreakMode=\"end\"\n textGravity=\"left\"\n maxLines=\"3\"\n textSize=\"15np\"\n lineHeight=\"22np\"\n isBold=\"false\"\n isItalic=\"false\"\n isStrikeThrough=\"false\"\n textColor=\"@triple{@triple{@dtParserAvailable{'dtDesignTokenParser'},@dtDesignTokenParser{'common_level1_base_color'},@dtDarkModeAdapter{'#181C1F','#EEF1F5'}},@triple{@dtParserAvailable{'dtDesignTokenParser'},@dtDesignTokenParser{'common_level1_base_color'},@dtDarkModeAdapter{'#181C1F','#EEF1F5'}},@dtDarkModeAdapter{'#181C1F','#EEF1F5'}}\"\n weight=\"@triple{@equal{@triple{@greater{@toLong{'0'},0},'0np',match_content},match_content},'1',''}\">\n\n </FastTextView>\n\n </LinearLayout>\n <LinearLayout\n marginLeft=\"12np\"\n marginBottom=\"4np\"\n marginTop=\"12np\"\n marginRight=\"12np\"\n width=\"match_parent\"\n height=\"match_content\"\n orientation=\"horizontal\"\n childGravity=\"leftTop\"\n userId=\"node_ocl9s7wvur9\">\n <FastTextView\n text=\"@concat{'创建时间:', @toStr{@data{data.cardData.created_at}}}\"\n width=\"@triple{@greater{@toLong{'0'},0},'0np',match_content}\"\n height=\"match_content\"\n lineBreakMode=\"end\"\n textGravity=\"left\"\n maxLines=\"2\"\n textSize=\"12np\"\n lineHeight=\"16np\"\n isBold=\"false\"\n isItalic=\"false\"\n isStrikeThrough=\"false\"\n textColor=\"@triple{@triple{@dtParserAvailable{'dtDesignTokenParser'},@dtDesignTokenParser{'common_level3_base_color'},@dtDarkModeAdapter{'#83898F','#808488'}},@triple{@dtParserAvailable{'dtDesignTokenParser'},@dtDesignTokenParser{'common_level3_base_color'},@dtDarkModeAdapter{'#83898F','#808488'}},@dtDarkModeAdapter{'#83898F','#808488'}}\"\n weight=\"@triple{@equal{@triple{@greater{@toLong{'0'},0},'0np',match_content},match_content},'1',''}\">\n\n </FastTextView>\n\n </LinearLayout>\n <LinearLayout\n width=\"@triple{@greater{@toLong{@substr{@data{'width'},'0',@toStr{@sub{@len{@data{'width'}},'2'}}}},360},'match_content','match_parent'}\"\n height=\"match_content\"\n orientation=\"vertical\"\n marginLeft=\"6np\"\n marginBottom=\"6np\"\n marginTop=\"6np\"\n marginRight=\"6np\"\n userId=\"node_ocl64fihiz1\"\n visibility=\"@triple{@and{@not{@equal{@toStr{@data{data.cardData.status}}, @toStr{'approved'}}},@not{@equal{@toStr{@data{data.cardData.status}}, @toStr{'denied'}}}}, 'visible', 'gone'}\">\n <LinearLayout\n width=\"@triple{@greater{@toLong{@substr{@data{'width'},'0',@toStr{@sub{@len{@data{'width'}},'2'}}}},360},'match_content','match_parent'}\"\n height=\"match_content\"\n orientation=\"horizontal\"\n marginTop=\"6np\"\n marginBottom=\"6np\"\n marginLeft=\"6np\"\n marginRight=\"6np\">\n <LinearLayout\n weight=\"@triple{@greater{@toLong{@substr{@data{'width'},'0',@toStr{@sub{@len{@data{'width'}},'2'}}}},360},'','1'}\"\n width=\"@triple{@greater{@toLong{@substr{@data{'width'},'0',@toStr{@sub{@len{@data{'width'}},'2'}}}},360},'match_content','match_parent'}\"\n height=\"match_content\"\n orientation=\"horizontal\"\n onTap=\"@dtUtStat{@dtMapAppend{null,'gmKey',logTrack_autolog,'goKey',@dtMapAppend{null,'currentLoggedUserId',@triple{@data{data.renderContext.currentLoggedUserId},@data{data.renderContext.currentLoggedUserId},''},'logTrack_key',logTrack_autolog,'logTrack_text',@triple{@substr{@toStr{@toStr{'拒绝'}},0,20},@substr{@toStr{@toStr{'拒绝'}},0,20},''},'logTrack_componentType',ButtonList,'logTrack_nodeId',undefined,'logTrack_templateId',8a4ff239-6eea-44f4-a7b8-7f2c4bb0389c.schema,'logTrack_cardJson',@triple{@toStr{@data{data.cardData.logTrack_cardJson}},@toStr{@data{data.cardData.logTrack_cardJson}},''},'logTrack_itemJson',@triple{@toStr{@subdata{logTrack_itemJson}},@toStr{@subdata{logTrack_itemJson}},''}}}},@dtSendOutData{@dtMapAppend{null, 'actionType', '0', 'cardInstanceId', @data{data.cardInstanceId}, 'actionId', @toStr{'denied'}, 'actionData', @dtMapAppend{null, 'context', @dtMapAppend{@data{data.renderContext}, 'platform', 'im', 'platformBizId', @data{data.renderContext.mid}}, 'cardPrivateData', @dtMapAppend{null, 'params', @dtMapAppend{null, 'action', 'denied'}, 'actionIds', @dtArrayAppend{null, @toStr{'denied'}}}}, 'requestEventId', @toStr{'denied'}, 'requestStatusKey', @toStr{'denied'}}}\"\n enabled=\"@triple{@equal{@data{@concat{'data.localData.',@toStr{'denied'}}},'loading'},'false','true'}\"\n cornerRadius=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'19np','6np'}\"\n backgroundColor=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@triple{@equal{'gray','gold'},'#00FFFFFF',@dtDesignTokenParser{'common_overlay_area_color'}},@triple{@equal{'gray','gold'},'#00FFFFFF',@dict_get{@dtMapAppend{null,'normal_blue','#007FFF','disabled_blue','#7a007fff','normal_blue_filled','#007FFF','disabled_blue_filled','#7a007fff','normal_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'disabled_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'normal_red',@dtDarkModeAdapter{'#FF5219', '#FF5E2B'},'disabled_red',@dtDarkModeAdapter{'#7aff5219', '#7AFF5E2B'}},@concat{normal,'_',gray}}}}\"\n tborderJson=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@concat{'hover-color-',@dtDesignTokenParser{'common_overlay_press_color'}},@dict_get{@dtMapAppend{null,'normal_blue',@concat{'hover-color-','#0075EB'},'disabled_blue',notAllowedCursor,'normal_blue_filled',@concat{'hover-color-','#0075EB'},'disabled_blue_filled',notAllowedCursor,'normal_gray',@concat{'hover-color-','#297E868E'},'disabled_gray',notAllowedCursor,'normal_red',@concat{'hover-color-','#EB4B17'},'disabled_red',notAllowedCursor},@concat{normal,'_',gray}}}\"\n borderWidth=\"1\"\n borderColor=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'#00000000',@dict_get{@dtMapAppend{null,'normal_blue','#007FFF','disabled_blue','#00ffffff','normal_blue_filled','#007FFF','disabled_blue_filled','#00ffffff','normal_gray',@dtDarkModeAdapter{'#3d7e868e', '#994a4a4a'},'disabled_gray',@dtDarkModeAdapter{'#3d7e868e', '#994a4a4a'},'normal_red',@dtDarkModeAdapter{'#FF5219', '#FF5E2B'},'disabled_red','#00ffffff'},@concat{normal,'_',gray}}}\">\n <LinearLayout\n width=\"@triple{@greater{@toLong{@substr{@data{'width'},'0',@toStr{@sub{@len{@data{'width'}},'2'}}}},360},'match_content','match_parent'}\"\n childGravity=\"center\"\n height=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'38np','36np'}\"\n paddingLeft=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'16np','12ap'}\"\n paddingRight=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'16np','12ap'}\">\n <DDLoadingView\n width=\"match_content\"\n height=\"match_content\"\n gravity=\"leftCenter\"\n visibility=\"@triple{@equal{@data{@concat{'data.localData.',@toStr{'denied'}}},'loading'},'visible','gone'}\"\n size=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'15np','14np'}\"\n color=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@dtDesignTokenParser{'common_level1_base_color'},@dict_get{@dtMapAppend{null,'normal_blue','#ffffff','disabled_blue','#66ffffff','normal_blue_filled','#ffffff','disabled_blue_filled','#66ffffff','normal_gray',@dtDarkModeAdapter{'#171a1d', '#f5ffffff'},'disabled_gray',@dtDarkModeAdapter{'#66171A1D', '#7affffff'},'normal_red','#ffffff','disabled_red','#66ffffff'},@concat{normal,'_',gray}}}\"\n marginRight=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'5np','4np'}\">\n\n </DDLoadingView>\n <DDIconView\n width=\"match_content\"\n height=\"match_content\"\n text=\"::icon_refused::\"\n visibility=\"@triple{@equal{@data{@concat{'data.localData.',@toStr{'denied'}}},'loading'},'gone','visible'}\"\n textSize=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'15np','14np'}\"\n textColor=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@dtDesignTokenParser{'common_level1_base_color'},@dict_get{@dtMapAppend{null,'normal_blue','#ffffff','disabled_blue','#66ffffff','normal_blue_filled','#ffffff','disabled_blue_filled','#66ffffff','normal_gray',@dtDarkModeAdapter{'#171a1d', '#f5ffffff'},'disabled_gray',@dtDarkModeAdapter{'#66171A1D', '#7affffff'},'normal_red','#ffffff','disabled_red','#66ffffff'},@concat{normal,'_',gray}}}\"\n marginRight=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'5np','4np'}\">\n\n </DDIconView>\n <FastTextView\n width=\"match_content\"\n height=\"match_content\"\n maxLines=\"1\"\n lineBreakMode=\"end\"\n textGravity=\"center\"\n text=\"@toStr{'拒绝'}\"\n textSize=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'15np','14np'}\"\n textColor=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@dtDesignTokenParser{'common_level1_base_color'},@dict_get{@dtMapAppend{null,'normal_blue','#ffffff','disabled_blue','#66ffffff','normal_blue_filled','#ffffff','disabled_blue_filled','#66ffffff','normal_gray',@dtDarkModeAdapter{'#171a1d', '#f5ffffff'},'disabled_gray',@dtDarkModeAdapter{'#66171A1D', '#7affffff'},'normal_red','#ffffff','disabled_red','#66ffffff'},@concat{normal,'_',gray}}}\"\n isBold=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@triple{@not{@equal{'gray','gray'}},'true','false'},'false'}\">\n\n </FastTextView>\n\n </LinearLayout>\n\n </LinearLayout>\n <View\n width=\"8np\"\n height=\"8np\"\n visibility=\"@triple{@or{@equal{visible, 'gone'} ,@and{@equal{visible, 'gone'},true}}, 'gone', 'visible'}\">\n\n </View>\n <LinearLayout\n weight=\"@triple{@greater{@toLong{@substr{@data{'width'},'0',@toStr{@sub{@len{@data{'width'}},'2'}}}},360},'','1'}\"\n width=\"@triple{@greater{@toLong{@substr{@data{'width'},'0',@toStr{@sub{@len{@data{'width'}},'2'}}}},360},'match_content','match_parent'}\"\n height=\"match_content\"\n orientation=\"horizontal\"\n onTap=\"@dtUtStat{@dtMapAppend{null,'gmKey',logTrack_autolog,'goKey',@dtMapAppend{null,'currentLoggedUserId',@triple{@data{data.renderContext.currentLoggedUserId},@data{data.renderContext.currentLoggedUserId},''},'logTrack_key',logTrack_autolog,'logTrack_text',@triple{@substr{@toStr{@toStr{'同意'}},0,20},@substr{@toStr{@toStr{'同意'}},0,20},''},'logTrack_componentType',ButtonList,'logTrack_nodeId',undefined,'logTrack_templateId',8a4ff239-6eea-44f4-a7b8-7f2c4bb0389c.schema,'logTrack_cardJson',@triple{@toStr{@data{data.cardData.logTrack_cardJson}},@toStr{@data{data.cardData.logTrack_cardJson}},''},'logTrack_itemJson',@triple{@toStr{@subdata{logTrack_itemJson}},@toStr{@subdata{logTrack_itemJson}},''}}}},@dtSendOutData{@dtMapAppend{null, 'actionType', '0', 'cardInstanceId', @data{data.cardInstanceId}, 'actionId', @toStr{'approved'}, 'actionData', @dtMapAppend{null, 'context', @dtMapAppend{@data{data.renderContext}, 'platform', 'im', 'platformBizId', @data{data.renderContext.mid}}, 'cardPrivateData', @dtMapAppend{null, 'params', @dtMapAppend{null, 'action', 'approved'}, 'actionIds', @dtArrayAppend{null, @toStr{'approved'}}}}, 'requestEventId', @toStr{'approved'}, 'requestStatusKey', @toStr{'approved'}}}\"\n enabled=\"@triple{@equal{@data{@concat{'data.localData.',@toStr{'approved'}}},'loading'},'false','true'}\"\n cornerRadius=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'19np','6np'}\"\n backgroundColor=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@triple{@equal{'blue','gold'},'#00FFFFFF',@dtDesignTokenParser{'common_overlay_area_color'}},@triple{@equal{'blue','gold'},'#00FFFFFF',@dict_get{@dtMapAppend{null,'normal_blue','#007FFF','disabled_blue','#7a007fff','normal_blue_filled','#007FFF','disabled_blue_filled','#7a007fff','normal_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'disabled_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'normal_red',@dtDarkModeAdapter{'#FF5219', '#FF5E2B'},'disabled_red',@dtDarkModeAdapter{'#7aff5219', '#7AFF5E2B'}},@concat{normal,'_',blue}}}}\"\n tborderJson=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@concat{'hover-color-',@dtDesignTokenParser{'common_overlay_press_color'}},@dict_get{@dtMapAppend{null,'normal_blue',@concat{'hover-color-','#0075EB'},'disabled_blue',notAllowedCursor,'normal_blue_filled',@concat{'hover-color-','#0075EB'},'disabled_blue_filled',notAllowedCursor,'normal_gray',@concat{'hover-color-','#297E868E'},'disabled_gray',notAllowedCursor,'normal_red',@concat{'hover-color-','#EB4B17'},'disabled_red',notAllowedCursor},@concat{normal,'_',blue}}}\"\n borderWidth=\"1\"\n borderColor=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'#00000000',@dict_get{@dtMapAppend{null,'normal_blue','#007FFF','disabled_blue','#00ffffff','normal_blue_filled','#007FFF','disabled_blue_filled','#00ffffff','normal_gray',@dtDarkModeAdapter{'#3d7e868e', '#994a4a4a'},'disabled_gray',@dtDarkModeAdapter{'#3d7e868e', '#994a4a4a'},'normal_red',@dtDarkModeAdapter{'#FF5219', '#FF5E2B'},'disabled_red','#00ffffff'},@concat{normal,'_',blue}}}\">\n <LinearLayout\n width=\"@triple{@greater{@toLong{@substr{@data{'width'},'0',@toStr{@sub{@len{@data{'width'}},'2'}}}},360},'match_content','match_parent'}\"\n childGravity=\"center\"\n height=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'38np','36np'}\"\n paddingLeft=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'16np','12ap'}\"\n paddingRight=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'16np','12ap'}\">\n <DDLoadingView\n width=\"match_content\"\n height=\"match_content\"\n gravity=\"leftCenter\"\n visibility=\"@triple{@equal{@data{@concat{'data.localData.',@toStr{'approved'}}},'loading'},'visible','gone'}\"\n size=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'15np','14np'}\"\n color=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@dtDesignTokenParser{'theme_primary1_color'},@dict_get{@dtMapAppend{null,'normal_blue','#ffffff','disabled_blue','#66ffffff','normal_blue_filled','#ffffff','disabled_blue_filled','#66ffffff','normal_gray',@dtDarkModeAdapter{'#171a1d', '#f5ffffff'},'disabled_gray',@dtDarkModeAdapter{'#66171A1D', '#7affffff'},'normal_red','#ffffff','disabled_red','#66ffffff'},@concat{normal,'_',blue}}}\"\n marginRight=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'5np','4np'}\">\n\n </DDLoadingView>\n <DDIconView\n width=\"match_content\"\n height=\"match_content\"\n text=\"::icon_accept::\"\n visibility=\"@triple{@equal{@data{@concat{'data.localData.',@toStr{'approved'}}},'loading'},'gone','visible'}\"\n textSize=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'15np','14np'}\"\n textColor=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@dtDesignTokenParser{'theme_primary1_color'},@dict_get{@dtMapAppend{null,'normal_blue','#ffffff','disabled_blue','#66ffffff','normal_blue_filled','#ffffff','disabled_blue_filled','#66ffffff','normal_gray',@dtDarkModeAdapter{'#171a1d', '#f5ffffff'},'disabled_gray',@dtDarkModeAdapter{'#66171A1D', '#7affffff'},'normal_red','#ffffff','disabled_red','#66ffffff'},@concat{normal,'_',blue}}}\"\n marginRight=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'5np','4np'}\">\n\n </DDIconView>\n <FastTextView\n width=\"match_content\"\n height=\"match_content\"\n maxLines=\"1\"\n lineBreakMode=\"end\"\n textGravity=\"center\"\n text=\"@toStr{'同意'}\"\n textSize=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'15np','14np'}\"\n textColor=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@dtDesignTokenParser{'theme_primary1_color'},@dict_get{@dtMapAppend{null,'normal_blue','#ffffff','disabled_blue','#66ffffff','normal_blue_filled','#ffffff','disabled_blue_filled','#66ffffff','normal_gray',@dtDarkModeAdapter{'#171a1d', '#f5ffffff'},'disabled_gray',@dtDarkModeAdapter{'#66171A1D', '#7affffff'},'normal_red','#ffffff','disabled_red','#66ffffff'},@concat{normal,'_',blue}}}\"\n isBold=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@triple{@not{@equal{'blue','gray'}},'true','false'},'false'}\">\n\n </FastTextView>\n\n </LinearLayout>\n\n </LinearLayout>\n\n </LinearLayout>\n\n </LinearLayout>\n <LinearLayout\n width=\"match_parent\"\n height=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'38np','36np'}\"\n paddingLeft=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'16np','12ap'}\"\n paddingRight=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'16np','12ap'}\"\n childGravity=\"center\"\n orientation=\"horizontal\"\n visibility=\"@triple{@equal{@toStr{@data{data.cardData.status}}, @toStr{'approved'}}, 'visible', 'gone'}\"\n enabled=\"false\"\n onTap=\"@dtUtStat{@dtMapAppend{null,'gmKey',logTrack_autolog,'goKey',@dtMapAppend{null,'currentLoggedUserId',@triple{@data{data.renderContext.currentLoggedUserId},@data{data.renderContext.currentLoggedUserId},''},'logTrack_key',logTrack_autolog,'logTrack_text',@triple{@substr{@toStr{@toStr{'已同意'}},0,20},@substr{@toStr{@toStr{'已同意'}},0,20},''},'logTrack_componentType',SingleButton,'logTrack_nodeId',node_ocly43oyjo1,'logTrack_templateId',8a4ff239-6eea-44f4-a7b8-7f2c4bb0389c.schema,'logTrack_cardJson',@triple{@toStr{@data{data.cardData.logTrack_cardJson}},@toStr{@data{data.cardData.logTrack_cardJson}},''},'logTrack_itemJson',@triple{@toStr{@subdata{logTrack_itemJson}},@toStr{@subdata{logTrack_itemJson}},''}}}},@dtOpenLink{}\"\n marginTop=\"8np\"\n marginBottom=\"8np\"\n marginLeft=\"12np\"\n marginRight=\"12np\"\n cornerRadius=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'19np','6np'}\"\n backgroundColor=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@triple{@equal{'blue','gold'},'#00FFFFFF',@dtDesignTokenParser{'common_overlay_area_color'}},@triple{@equal{'blue','gold'},'#00FFFFFF',@dict_get{@dtMapAppend{null,'normal_blue','#007FFF','disabled_blue','#7a007fff','normal_blue_filled','#007FFF','disabled_blue_filled','#7a007fff','normal_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'disabled_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'normal_red',@dtDarkModeAdapter{'#FF5219', '#FF5E2B'},'disabled_red',@dtDarkModeAdapter{'#7aff5219', '#7AFF5E2B'},'normal_gold',@linearGradient{'toLeft', '#FFD5B5', '#FFE9D5'},'disabled_gold',@linearGradient{'toLeft', @dtDarkModeAdapter{'#7BFFD5B5', '#99FFD5B5'}, @dtDarkModeAdapter{'#7BFFE9D5', '#99FFE9D5'}}},@concat{disabled,'_',blue}}}}\"\n tborderJson=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'notAllowedCursor',@dict_get{@dtMapAppend{null,'normal_blue',@concat{'hover-color-','#0075EB'},'disabled_blue',notAllowedCursor,'normal_blue_filled',@concat{'hover-color-','#0075EB'},'disabled_blue_filled',notAllowedCursor,'normal_gray',@concat{'hover-color-','#297E868E'},'disabled_gray',notAllowedCursor,'normal_red',@concat{'hover-color-','#EB4B17'},'disabled_red',notAllowedCursor,'normal_gold',@concat{'hover-color-','#FBD3B4'},'disabled_gold',notAllowedCursor},@concat{disabled,'_',blue}}}\"\n borderWidth=\"1\"\n borderColor=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'#00000000',@dict_get{@dtMapAppend{null,'normal_blue','#007FFF','disabled_blue','#00ffffff','normal_blue_filled','#007FFF','disabled_blue_filled','#00ffffff','normal_gray',@dtDarkModeAdapter{'#3d7e868e', '#994a4a4a'},'disabled_gray',@dtDarkModeAdapter{'#3d7e868e', '#994a4a4a'},'normal_red',@dtDarkModeAdapter{'#FF5219', '#FF5E2B'},'disabled_red','#00ffffff','normal_gold','#00ffffff','disabled_gold','#00ffffff'},@concat{disabled,'_',blue}}}\"\n backgroundGradient=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@triple{@and{@equal{'blue',gold},@dtDesignTokenParser{'common_overlay_area_color'}},@dtArrayAppend{null,@dtDesignTokenParser{'common_overlay_area_color'}},@dtArrayAppend{null}},@triple{@and{@equal{'blue','gold'},@dict_get{@dtMapAppend{null,'normal_blue','#007FFF','disabled_blue','#7a007fff','normal_blue_filled','#007FFF','disabled_blue_filled','#7a007fff','normal_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'disabled_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'normal_red',@dtDarkModeAdapter{'#FF5219', '#FF5E2B'},'disabled_red',@dtDarkModeAdapter{'#7aff5219', '#7AFF5E2B'},'normal_gold',@linearGradient{'toLeft', '#FFD5B5', '#FFE9D5'},'disabled_gold',@linearGradient{'toLeft', @dtDarkModeAdapter{'#7BFFD5B5', '#99FFD5B5'}, @dtDarkModeAdapter{'#7BFFE9D5', '#99FFE9D5'}}},@concat{disabled,'_',blue}}},@dict_get{@dtMapAppend{null,'normal_blue','#007FFF','disabled_blue','#7a007fff','normal_blue_filled','#007FFF','disabled_blue_filled','#7a007fff','normal_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'disabled_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'normal_red',@dtDarkModeAdapter{'#FF5219', '#FF5E2B'},'disabled_red',@dtDarkModeAdapter{'#7aff5219', '#7AFF5E2B'},'normal_gold',@linearGradient{'toLeft', '#FFD5B5', '#FFE9D5'},'disabled_gold',@linearGradient{'toLeft', @dtDarkModeAdapter{'#7BFFD5B5', '#99FFD5B5'}, @dtDarkModeAdapter{'#7BFFE9D5', '#99FFE9D5'}}},@concat{disabled,'_',blue}},@triple{@equal{@data{env},'pc'},@linearGradient{'toLeft', '#00FFFFFF', '#00FFFFFF'},@linearGradient{'toLeft', @dict_get{@dtMapAppend{null,'normal_blue','#007FFF','disabled_blue','#7a007fff','normal_blue_filled','#007FFF','disabled_blue_filled','#7a007fff','normal_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'disabled_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'normal_red',@dtDarkModeAdapter{'#FF5219', '#FF5E2B'},'disabled_red',@dtDarkModeAdapter{'#7aff5219', '#7AFF5E2B'},'normal_gold',@linearGradient{'toLeft', '#FFD5B5', '#FFE9D5'},'disabled_gold',@linearGradient{'toLeft', @dtDarkModeAdapter{'#7BFFD5B5', '#99FFD5B5'}, @dtDarkModeAdapter{'#7BFFE9D5', '#99FFE9D5'}}},@concat{disabled,'_',blue}}, @dict_get{@dtMapAppend{null,'normal_blue','#007FFF','disabled_blue','#7a007fff','normal_blue_filled','#007FFF','disabled_blue_filled','#7a007fff','normal_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'disabled_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'normal_red',@dtDarkModeAdapter{'#FF5219', '#FF5E2B'},'disabled_red',@dtDarkModeAdapter{'#7aff5219', '#7AFF5E2B'},'normal_gold',@linearGradient{'toLeft', '#FFD5B5', '#FFE9D5'},'disabled_gold',@linearGradient{'toLeft', @dtDarkModeAdapter{'#7BFFD5B5', '#99FFD5B5'}, @dtDarkModeAdapter{'#7BFFE9D5', '#99FFE9D5'}}},@concat{disabled,'_',blue}}}}}}\"\n userId=\"node_ocly43oyjo1\">\n <FastTextView\n lineBreakMode=\"end\"\n width=\"match_content\"\n height=\"match_content\"\n maxLines=\"1\"\n textGravity=\"center\"\n text=\"@toStr{'已同意'}\"\n textSize=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'15np','14np'}\"\n textColor=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@dtDesignTokenParser{'common_level4_base_color'},@dict_get{@dtMapAppend{null,'normal_blue','#ffffff','disabled_blue','#66ffffff','normal_blue_filled','#ffffff','disabled_blue_filled','#66ffffff','normal_gray',@dtDarkModeAdapter{'#171a1d', '#f5ffffff'},'disabled_gray',@dtDarkModeAdapter{'#66171A1D', '#7affffff'},'normal_red','#ffffff','disabled_red','#66ffffff','normal_gold','#492D0A','disabled_gold',@dtDarkModeAdapter{'#3E492D0A', '#66492D0A'}},@concat{disabled,'_',blue}}}\"\n isBold=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@triple{@not{@equal{'blue','gray'}},'true','false'},'false'}\">\n\n </FastTextView>\n\n </LinearLayout>\n <LinearLayout\n width=\"match_parent\"\n height=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'38np','36np'}\"\n paddingLeft=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'16np','12ap'}\"\n paddingRight=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'16np','12ap'}\"\n childGravity=\"center\"\n orientation=\"horizontal\"\n visibility=\"@triple{@equal{@toStr{@data{data.cardData.status}}, @toStr{'denied'}}, 'visible', 'gone'}\"\n enabled=\"false\"\n onTap=\"@dtUtStat{@dtMapAppend{null,'gmKey',logTrack_autolog,'goKey',@dtMapAppend{null,'currentLoggedUserId',@triple{@data{data.renderContext.currentLoggedUserId},@data{data.renderContext.currentLoggedUserId},''},'logTrack_key',logTrack_autolog,'logTrack_text',@triple{@substr{@toStr{@toStr{'已拒绝'}},0,20},@substr{@toStr{@toStr{'已拒绝'}},0,20},''},'logTrack_componentType',SingleButton,'logTrack_nodeId',node_ocly43oyjo2,'logTrack_templateId',8a4ff239-6eea-44f4-a7b8-7f2c4bb0389c.schema,'logTrack_cardJson',@triple{@toStr{@data{data.cardData.logTrack_cardJson}},@toStr{@data{data.cardData.logTrack_cardJson}},''},'logTrack_itemJson',@triple{@toStr{@subdata{logTrack_itemJson}},@toStr{@subdata{logTrack_itemJson}},''}}}},@dtOpenLink{}\"\n marginTop=\"8np\"\n marginBottom=\"8np\"\n marginLeft=\"12np\"\n marginRight=\"12np\"\n cornerRadius=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'19np','6np'}\"\n backgroundColor=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@triple{@equal{'red','gold'},'#00FFFFFF',@dtDesignTokenParser{'common_overlay_area_color'}},@triple{@equal{'red','gold'},'#00FFFFFF',@dict_get{@dtMapAppend{null,'normal_blue','#007FFF','disabled_blue','#7a007fff','normal_blue_filled','#007FFF','disabled_blue_filled','#7a007fff','normal_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'disabled_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'normal_red',@dtDarkModeAdapter{'#FF5219', '#FF5E2B'},'disabled_red',@dtDarkModeAdapter{'#7aff5219', '#7AFF5E2B'},'normal_gold',@linearGradient{'toLeft', '#FFD5B5', '#FFE9D5'},'disabled_gold',@linearGradient{'toLeft', @dtDarkModeAdapter{'#7BFFD5B5', '#99FFD5B5'}, @dtDarkModeAdapter{'#7BFFE9D5', '#99FFE9D5'}}},@concat{disabled,'_',red}}}}\"\n tborderJson=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'notAllowedCursor',@dict_get{@dtMapAppend{null,'normal_blue',@concat{'hover-color-','#0075EB'},'disabled_blue',notAllowedCursor,'normal_blue_filled',@concat{'hover-color-','#0075EB'},'disabled_blue_filled',notAllowedCursor,'normal_gray',@concat{'hover-color-','#297E868E'},'disabled_gray',notAllowedCursor,'normal_red',@concat{'hover-color-','#EB4B17'},'disabled_red',notAllowedCursor,'normal_gold',@concat{'hover-color-','#FBD3B4'},'disabled_gold',notAllowedCursor},@concat{disabled,'_',red}}}\"\n borderWidth=\"1\"\n borderColor=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'#00000000',@dict_get{@dtMapAppend{null,'normal_blue','#007FFF','disabled_blue','#00ffffff','normal_blue_filled','#007FFF','disabled_blue_filled','#00ffffff','normal_gray',@dtDarkModeAdapter{'#3d7e868e', '#994a4a4a'},'disabled_gray',@dtDarkModeAdapter{'#3d7e868e', '#994a4a4a'},'normal_red',@dtDarkModeAdapter{'#FF5219', '#FF5E2B'},'disabled_red','#00ffffff','normal_gold','#00ffffff','disabled_gold','#00ffffff'},@concat{disabled,'_',red}}}\"\n backgroundGradient=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@triple{@and{@equal{'red',gold},@dtDesignTokenParser{'common_overlay_area_color'}},@dtArrayAppend{null,@dtDesignTokenParser{'common_overlay_area_color'}},@dtArrayAppend{null}},@triple{@and{@equal{'red','gold'},@dict_get{@dtMapAppend{null,'normal_blue','#007FFF','disabled_blue','#7a007fff','normal_blue_filled','#007FFF','disabled_blue_filled','#7a007fff','normal_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'disabled_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'normal_red',@dtDarkModeAdapter{'#FF5219', '#FF5E2B'},'disabled_red',@dtDarkModeAdapter{'#7aff5219', '#7AFF5E2B'},'normal_gold',@linearGradient{'toLeft', '#FFD5B5', '#FFE9D5'},'disabled_gold',@linearGradient{'toLeft', @dtDarkModeAdapter{'#7BFFD5B5', '#99FFD5B5'}, @dtDarkModeAdapter{'#7BFFE9D5', '#99FFE9D5'}}},@concat{disabled,'_',red}}},@dict_get{@dtMapAppend{null,'normal_blue','#007FFF','disabled_blue','#7a007fff','normal_blue_filled','#007FFF','disabled_blue_filled','#7a007fff','normal_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'disabled_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'normal_red',@dtDarkModeAdapter{'#FF5219', '#FF5E2B'},'disabled_red',@dtDarkModeAdapter{'#7aff5219', '#7AFF5E2B'},'normal_gold',@linearGradient{'toLeft', '#FFD5B5', '#FFE9D5'},'disabled_gold',@linearGradient{'toLeft', @dtDarkModeAdapter{'#7BFFD5B5', '#99FFD5B5'}, @dtDarkModeAdapter{'#7BFFE9D5', '#99FFE9D5'}}},@concat{disabled,'_',red}},@triple{@equal{@data{env},'pc'},@linearGradient{'toLeft', '#00FFFFFF', '#00FFFFFF'},@linearGradient{'toLeft', @dict_get{@dtMapAppend{null,'normal_blue','#007FFF','disabled_blue','#7a007fff','normal_blue_filled','#007FFF','disabled_blue_filled','#7a007fff','normal_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'disabled_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'normal_red',@dtDarkModeAdapter{'#FF5219', '#FF5E2B'},'disabled_red',@dtDarkModeAdapter{'#7aff5219', '#7AFF5E2B'},'normal_gold',@linearGradient{'toLeft', '#FFD5B5', '#FFE9D5'},'disabled_gold',@linearGradient{'toLeft', @dtDarkModeAdapter{'#7BFFD5B5', '#99FFD5B5'}, @dtDarkModeAdapter{'#7BFFE9D5', '#99FFE9D5'}}},@concat{disabled,'_',red}}, @dict_get{@dtMapAppend{null,'normal_blue','#007FFF','disabled_blue','#7a007fff','normal_blue_filled','#007FFF','disabled_blue_filled','#7a007fff','normal_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'disabled_gray',@dtDarkModeAdapter{'#ffffff', '#4A4A4A'},'normal_red',@dtDarkModeAdapter{'#FF5219', '#FF5E2B'},'disabled_red',@dtDarkModeAdapter{'#7aff5219', '#7AFF5E2B'},'normal_gold',@linearGradient{'toLeft', '#FFD5B5', '#FFE9D5'},'disabled_gold',@linearGradient{'toLeft', @dtDarkModeAdapter{'#7BFFD5B5', '#99FFD5B5'}, @dtDarkModeAdapter{'#7BFFE9D5', '#99FFE9D5'}}},@concat{disabled,'_',red}}}}}}\"\n userId=\"node_ocly43oyjo2\">\n <FastTextView\n lineBreakMode=\"end\"\n width=\"match_content\"\n height=\"match_content\"\n maxLines=\"1\"\n textGravity=\"center\"\n text=\"@toStr{'已拒绝'}\"\n textSize=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},'15np','14np'}\"\n textColor=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@dtDesignTokenParser{'common_level4_base_color'},@dict_get{@dtMapAppend{null,'normal_blue','#ffffff','disabled_blue','#66ffffff','normal_blue_filled','#ffffff','disabled_blue_filled','#66ffffff','normal_gray',@dtDarkModeAdapter{'#171a1d', '#f5ffffff'},'disabled_gray',@dtDarkModeAdapter{'#66171A1D', '#7affffff'},'normal_red','#ffffff','disabled_red','#66ffffff','normal_gold','#492D0A','disabled_gold',@dtDarkModeAdapter{'#3E492D0A', '#66492D0A'}},@concat{disabled,'_',red}}}\"\n isBold=\"@triple{@equal{@data{data.renderContext.isVersion8Style},'1'},@triple{@not{@equal{'red','gray'}},'true','false'},'false'}\">\n\n </FastTextView>\n\n </LinearLayout>\n\n</LinearLayout>\n","type":"im","mode":"card"}\ No newline at end of filediff --git a/src/agentscope/app/_service/_chat.py b/src/agentscope/app/_service/_chat.pyindex 0c50bceab..5c01689a6 100644--- a/src/agentscope/app/_service/_chat.py+++ b/src/agentscope/app/_service/_chat.py@@ -941,14 +941,17 @@ class ChatService:tools = ", ".join(t.name for t in channel_tools)chat_id = session_record.source_chat_id or ""kind = await channel.chat_kind(chat_id)- name = await channel.chat_name(chat_id)+ name = (+ session_record.source_chat_name+ or await channel.chat_name(chat_id)+ )where = f' named "{name}"' if name else ""attachment += (- f" This session is bound to a chat{where} on the "- f"{channel.display_name} platform: the messages, "- f"images and files people send there are relayed "- f"to you here, and your replies are delivered "- f"back to that same chat."+ f" This session is bound to a chat{where} (id "+ f"{chat_id!r}) on the {channel.display_name} "+ f"platform: the messages, images and files people "+ f"send there are relayed to you here, and your "+ f"replies are delivered back to that same chat.")if kind is ChatKind.GROUP:attachment += (@@ -964,7 +967,8 @@ class ChatService:if tools:attachment += (f" You also have these {channel.display_name} "- f"tools available: {tools}."+ f"tools available: {tools}. Pass this chat's id "+ f"as their target to act on this chat.")attachment = (diff --git a/src/agentscope/app/channel/_base.py b/src/agentscope/app/channel/_base.pyindex da0a85369..2f9db46a0 100644--- a/src/agentscope/app/channel/_base.py+++ b/src/agentscope/app/channel/_base.py@@ -361,14 +361,16 @@ class ChannelBase(ABC):data.append(block)elif isinstance(block, ThinkingBlock):if show_thinking:- parts.append(f"\n💭 {block.thinking}\n")+ parts.append(f"💭 {block.thinking}")elif isinstance(block, ToolCallBlock):if show_tool_process:- parts.append(f"\n🔧 Calling tool: {block.name}\n")+ parts.append(f"🔧 Calling tool: {block.name}")elif isinstance(block, ToolResultBlock):if show_tool_process and isinstance(block.output, str):parts.append(block.output)- text = "".join(parts).strip()+ # Every block is already folded whole, and Markdown needs a blank+ # line between them or thinking runs into the text that follows.+ text = "\n\n".join(part for part in parts if part.strip()).strip()if reply.finished_reason == ReplyFinishedReason.ERROR:text = text or _AGENT_ERROR_REPLYelif not text and not data:diff --git a/src/agentscope/app/channel/_dingtalk/_card.py b/src/agentscope/app/channel/_dingtalk/_card.pyindex 2b80f0847..d7f10a4ce 100644--- a/src/agentscope/app/channel/_dingtalk/_card.py+++ b/src/agentscope/app/channel/_dingtalk/_card.py@@ -8,10 +8,56 @@ state remains authoritative; none of the tool input is trusted on callback.import jsonfrom dataclasses import dataclass-from typing import Any+from typing import Any, TYPE_CHECKING+from uuid import uuid4-_APPROVE_ACTIONS = frozenset({"allow", "approve", "accept", "agree"})-_DENY_ACTIONS = frozenset({"deny", "reject"})+if TYPE_CHECKING:+ from ....message import ToolCallBlock++# A template author reaches for the same word the card's own status uses,+# so the settled spellings are accepted alongside the imperative ones.+_APPROVE_ACTIONS = frozenset(+ {"allow", "approve", "approved", "accept", "agree"},+)+_DENY_ACTIONS = frozenset({"deny", "denied", "reject"})++# A card's tracking id has to be unique and a tool call id is+# not: the Ollama adapter names the first call of every response+# ``0_<tool>``. Prefix a fresh one, so the tracking id is unique+# and the call it answers is still readable off the end of it.+# The prefix is fixed-width hex, so it needs no separator and+# introduces no character the id did not already allow.+_TRACK_PREFIX_LEN = 32++# DingTalk's general AI card renders the components its layout names and+# takes its buttons with them, so an approval card needs no template of+# the operator's own. A button reports its ``id`` when clicked.+_PENDING_LAYOUT = json.dumps(+ {+ "order": ["msgTitle", "staticMsgContent", "msgButtons"],+ "msgButtons": [+ {+ "text": "✅ 同意",+ "color": "blue",+ "id": "agree",+ "request": True,+ },+ {+ "text": "🚫 拒绝",+ "color": "gray",+ "id": "reject",+ "request": True,+ },+ ],+ },+ ensure_ascii=False,+)+_SETTLED_LAYOUT = json.dumps({"order": ["msgTitle", "staticMsgContent"]})+_PENDING_TITLE = "工具审批"+# DingTalk caps one cardParamMap value at 1KB, so this bounds what a+# card is created and updated with. It says nothing about the streaming+# endpoint, which documents no limit of its own.+_PARAM_VALUE_BUDGET = 900@dataclass(frozen=True, slots=True)@@ -28,39 +74,70 @@ class _ApprovalDecision:approved: bool+def _tracking_id(tool_call_id: str) -> str:+ """Build the card tracking id that answers ``tool_call_id``.++ Args:+ tool_call_id (`str`): The tool call the card asks about.++ Returns:+ `str`: A tracking id unique to this card.+ """+ return uuid4().hex + tool_call_id+++def _tool_call_id(track: str) -> str:+ """Read back the tool call a tracking id was built for.++ Args:+ track (`str`): The ``outTrackId`` a callback reported.++ Returns:+ `str`: The tool call id, or ``""`` when the id is not one of ours.+ """+ return track[_TRACK_PREFIX_LEN:]++def _approval_card_data(- tool_call_id: str,- chat_id: str,- tool_name: str,- summary: str,- approver_id: str,- agent_id: str = "",- session_id: str = "",+ tool: "ToolCallBlock",+ agent_name: str,) -> dict[str, str]:"""Build the parameter map consumed by the configured card template.+ A template of the operator's own binds the tool call under the field+ names it already has — ``name``, ``input`` and ``created_at`` — so+ authoring one needs no vocabulary beyond the block being approved.+ ``status`` is the card's own lifecycle, which the block does not+ carry: its own state stays ``asking`` throughout.+Args:- tool_call_id (`str`): Awaiting tool call answered by the card.- chat_id (`str`): Encoded DingTalk chat used for session routing.- tool_name (`str`): Tool name displayed to the user.- summary (`str`): Truncated tool arguments displayed to the user.- approver_id (`str`): Optional user permitted to decide the request.- agent_id (`str`): Resolved agent id, echoed through the callback.- session_id (`str`): Resolved session id, echoed through the callback.+ tool (`ToolCallBlock`): The tool call awaiting a decision.+ agent_name (`str`): The agent that asked, for the ready-made+ ``title``; the built-in card does not show it.Returns:`dict[str, str]`: DingTalk card template parameter map."""- shown = summary if len(summary) <= 800 else summary[:799] + "…"+ # A card parameter value is capped at 1KB, which a Chinese argument+ # reaches in a third of the characters a counted trim would allow.+ # Nothing else here is caller-sized.+ encoded = tool.input.encode("utf-8")+ shown = encoded[:_PARAM_VALUE_BUDGET].decode("utf-8", "ignore")+ if len(encoded) > _PARAM_VALUE_BUDGET:+ shown += "…"+ # Markdown reads a lone newline as a space, so the two lines need a+ # blank one between them to stay two lines.return {- "title": "Tool execution needs approval",- "markdown": f"**Tool:** `{tool_name}`\n**Arguments:** {shown}",+ # What the built-in AI card renders.+ "msgTitle": _PENDING_TITLE,+ "staticMsgContent": f"工具:{tool.name}\n\n参数:{shown}",+ "sys_full_json_obj": _PENDING_LAYOUT,+ # What a template of the operator's own binds.+ "title": f"{agent_name} 提交的工具执行".strip(),+ "name": tool.name,+ "input": shown,+ "created_at": tool.created_at[:19].replace("T", " "),"status": "pending",- "toolCallId": tool_call_id,- "chatId": chat_id,- "agentId": agent_id,- "sessionId": session_id,- "approverId": approver_id,}@@ -74,12 +151,13 @@ def _resolved_card_data(approved: bool) -> dict[str, str]:`dict[str, str]`: Replacement values for the card template."""return {- "title": "Tool execution approved" if approved else "Tool denied",- "markdown": (- "The tool was approved and will continue."- if approved- else "The tool was denied."- ),+ # Settling drops the buttons: the decision is already made. The+ # flow status has to be repeated — an update that omits it leaves+ # the AI card with nothing to render.+ "msgTitle": _PENDING_TITLE,+ "staticMsgContent": ("✅ 已同意,工具继续执行。" if approved else "🚫 已拒绝。"),+ "sys_full_json_obj": _SETTLED_LAYOUT,+ "flowStatus": "3","status": "approved" if approved else "denied",}@@ -100,13 +178,19 @@ def _parse_card_callback(payload: Any) -> _ApprovalDecision | None:"""if not isinstance(payload, dict):return None- if payload.get("type") not in (None, "", "actionCallback"):- return None+ # Deliberately no check on ``type``: the official SDK never reads it,+ # so its wire values are undocumented and gating on them drops every+ # callback the moment DingTalk sends one we did not guess.content = _json_object(payload.get("content"))private_data = _json_object(content.get("cardPrivateData"))params = _json_object(private_data.get("params"))- action = str(params.get("action") or "").strip().lower()+ # A button built into the layout reports itself by ``id``; a template+ # authored with an explicit action reports that instead. The sibling+ # ``actionIds`` names the layout node, which identifies nothing.+ action = (+ str(params.get("action") or params.get("id") or "").strip().lower()+ )if action in _APPROVE_ACTIONS:approved = Trueelif action in _DENY_ACTIONS:@@ -114,12 +198,24 @@ def _parse_card_callback(payload: Any) -> _ApprovalDecision | None:else:return None- tool_call_id = _field(params, "toolCallId", "tool_call_id")- chat_id = _field(params, "chatId", "chat_id")- approver_id = _field(params, "approverId", "approver_id")user_id = _field(payload, "userId", "user_id")out_track_id = _field(payload, "outTrackId", "out_track_id")- if not all((tool_call_id, chat_id, user_id, out_track_id)):+ if not all((user_id, out_track_id)):+ return None+ # Routing rides on the template only when the template was built to+ # carry it. Otherwise the tracking id names the tool call it was+ # created for, and the callback says which chat it came from.+ tool_call_id = _field(+ params,+ "toolCallId",+ "tool_call_id",+ ) or _tool_call_id(out_track_id)+ chat_id = _field(params, "chatId", "chat_id") or _chat_from_space(+ payload,+ user_id,+ )+ approver_id = _field(params, "approverId", "approver_id")+ if not tool_call_id or not chat_id:return Nonereturn _ApprovalDecision(out_track_id=out_track_id,@@ -133,6 +229,29 @@ def _parse_card_callback(payload: Any) -> _ApprovalDecision | None:)+def _chat_from_space(payload: dict[str, Any], user_id: str) -> str:+ """Recover the chat a card was delivered into from its callback.++ Args:+ payload (`dict[str, Any]`): Callback data supplied by the SDK.+ user_id (`str`): The staff id of whoever clicked.++ Returns:+ `str`: Encoded chat, or ``""`` when the space is unrecognised.+ """+ space_type = _field(payload, "spaceType", "space_type").upper()+ space_id = _field(payload, "spaceId", "space_id")+ if "GROUP" in space_type and space_id:+ return f"group:{space_id}"+ if "ROBOT" in space_type and user_id:+ return f"user:{user_id}"+ # A plain "im" space names the conversation the card sits in — which+ # in a one-to-one chat is the person who clicked.+ if space_id and space_id != user_id:+ return f"group:{space_id}"+ return f"user:{user_id}" if user_id else ""++def _json_object(value: Any) -> dict[str, Any]:"""Return a mapping from a mapping or JSON object string."""if isinstance(value, dict):diff --git a/src/agentscope/app/channel/_dingtalk/_channel.py b/src/agentscope/app/channel/_dingtalk/_channel.pyindex e5981aad6..0d5685058 100644--- a/src/agentscope/app/channel/_dingtalk/_channel.py+++ b/src/agentscope/app/channel/_dingtalk/_channel.py@@ -1,20 +1,19 @@# -*- coding: utf-8 -*-"""DingTalk channel using the official Stream SDK.-The Stream SDK owns the long-lived inbound connection. Markdown replies use-the short-lived ``sessionWebhook`` included in an inbound callback. Stable-target sends, media transfer, cards, and user search use DingTalk OpenAPI.+The Stream SDK owns the long-lived inbound connection. Everything outbound+— replies, media transfer, cards, and user search — is DingTalk OpenAPI, so+an instance that never connects can still send."""import asyncioimport base64import binascii-from dataclasses import dataclassimport jsonimport mimetypesimport timefrom typing import Any, AsyncIterator, Awaitable, Callable, TYPE_CHECKING-from urllib.parse import quote_plus, urlparse+from urllib.parse import quote_plusfrom pydantic import BaseModel, Field@@ -42,6 +41,7 @@ from ._card import (_approval_card_data,_parse_card_callback,_resolved_card_data,+ _tracking_id,)from ._openapi import _DingTalkOpenAPI@@ -53,10 +53,15 @@ _CHATBOT_TOPIC = "/v1.0/im/bot/messages/get"_CARD_CALLBACK_TOPIC = "/v1.0/card/instances/callback"_GROUP_CONVERSATION = "2"_MAX_LEN = 4000-_MARKDOWN_TITLE = "AgentScope"+# The streaming AI card DingTalk publishes, and its Markdown variable —+# the template the official typewriter example streams into.+_AI_CARD_TEMPLATE_ID = "8aebdfb9-28f4-4a98-98f5-396c3dde41a0.schema"+_AI_CARD_CONTENT_KEY = "content"+# The general-purpose AI card, the published template that takes its+# layout and buttons at send time — see ``_card`` for what it is sent.+_APPROVAL_CARD_TEMPLATE_ID = "382e4302-551d-4880-bf29-a30acfab2e71.schema"_STATUS_POLL_INTERVAL = 0.2_STREAM_MIN_INTERVAL = 0.3-_STREAM_MAX_CONTENT_BYTES = 1024_STREAM_FALLBACK_NOTICE = ("Streaming stopped. The complete reply follows as a Markdown message.")@@ -66,14 +71,6 @@ _MEDIA_MESSAGE_TYPES = frozenset()-@dataclass(frozen=True, slots=True)-class _SessionWebhook:- """A callback-scoped reply URL and its expiration time."""-- url: str- expires_at_ms: int | None--class DingTalkChannel(ChannelBase):"""DingTalk enterprise application robot channel."""@@ -124,19 +121,22 @@ class DingTalkChannel(ChannelBase):"outbound attachment",)approval_card_template_id: str = Field(- default="",+ default=_APPROVAL_CARD_TEMPLATE_ID,title="Approval card template ID",description="DingTalk Card Platform template used for tool "- "approval. Send tools are available only when configured.",+ "approval. Defaults to the published card the channel builds "+ "its own layout on; tool calls needing approval stall if it "+ "is cleared.",)streaming_card_template_id: str = Field(- default="",+ default=_AI_CARD_TEMPLATE_ID,title="Streaming card template ID",- description="Optional DingTalk AI Card template used for "- "streaming replies. Replies use normal Markdown when empty.",+ description="DingTalk AI Card template used for streaming "+ "replies. Defaults to the public template the official SDK "+ "uses; clear it to reply in plain Markdown instead.",)streaming_card_key: str = Field(- default="content",+ default=_AI_CARD_CONTENT_KEY,min_length=1,title="Streaming card content key",description="Template variable key of the AI Card streaming "@@ -188,7 +188,6 @@ class DingTalkChannel(ChannelBase):]| None) = None- self._session_webhooks: dict[str, _SessionWebhook] = {}self._chat_names: dict[str, str] = {}@property@@ -218,12 +217,7 @@ class DingTalkChannel(ChannelBase):stream_task: asyncio.Task[Any] | None = Noneever_connected = Falsetry:- self._http = self._new_http_client()- self._openapi = _DingTalkOpenAPI(- self._client_id,- self._client_secret,- self._http,- )+ self._api()self._stream_client = self._new_stream_client()stream_task = asyncio.create_task(self._stream_client.start())while not stream_task.done():@@ -268,6 +262,32 @@ class DingTalkChannel(ChannelBase):self._openapi = Noneself.status.state = "stopped"+ def _api(self) -> _DingTalkOpenAPI:+ """Return the OpenAPI client, building it on first use.++ Everything outbound is plain REST, so an instance built by+ :class:`~agentscope.app.channel.ChannelClients` — one that never+ runs ``start_listening`` — must reach DingTalk too.++ Returns:+ `_DingTalkOpenAPI`: This channel's OpenAPI client.+ """+ if self._openapi is None:+ self._http = self._new_http_client()+ self._openapi = _DingTalkOpenAPI(+ self._client_id,+ self._client_secret,+ self._http,+ )+ return self._openapi++ async def aclose(self) -> None:+ """Close an HTTP client opened outside the connection loop."""+ if self._http is not None:+ await self._http.aclose()+ self._http = None+ self._openapi = None+async def send_response(self,event: ChannelEvent,@@ -296,8 +316,10 @@ class DingTalkChannel(ChannelBase):reply_id = getattr(agent_event, "reply_id", None)if reply_id is not None:if reply is None:+ # The reply opens with the agent's own name; keep it,+ # an approval card names who asked.reply = Msg(- name="assistant",+ name=getattr(agent_event, "name", "") or "assistant",role="assistant",content=[],)@@ -325,9 +347,6 @@ class DingTalkChannel(ChannelBase):)if not text:continue- if not self._fits_streaming_card(text):- stream_failed = True- continueif stream_ref is None:stream_ref = await self._open_streaming_card(event.chat_id)if stream_ref is None:@@ -357,16 +376,15 @@ class DingTalkChannel(ChannelBase):continuefor part in self._split_long_message(block.text):if part:- await self._send_text(event.chat_id, part)+ await self._api().send_text(event.chat_id, part)elif isinstance(block, DataBlock):await self._send_data(event.chat_id, block)if confirm is not None:- await self._present_confirm(event, confirm)-- @staticmethod- def _fits_streaming_card(text: str) -> bool:- """Whether a full Markdown update fits DingTalk's request limit."""- return len(text.encode("utf-8")) <= _STREAM_MAX_CONTENT_BYTES+ await self._present_confirm(+ event,+ confirm,+ reply.name if reply else "",+ )def _has_streaming_text(self, reply: Msg) -> bool:"""Whether the partial reply contains text enabled for display."""@@ -395,9 +413,7 @@ class DingTalkChannel(ChannelBase):async def _open_streaming_card(self, chat_id: str) -> str | None:"""Create and deliver a configured AI streaming card."""- if self._openapi is None:- return None- return await self._openapi.create_streaming_card(+ return await self._api().create_streaming_card(chat_id,self._config.streaming_card_template_id,self._config.streaming_card_key,@@ -412,9 +428,7 @@ class DingTalkChannel(ChannelBase):is_error: bool = False,) -> bool:"""Write the complete Markdown value to one AI streaming card."""- if self._openapi is None or not self._fits_streaming_card(text):- return False- return await self._openapi.stream_card(+ return await self._api().stream_card(out_track_id,self._config.streaming_card_key,text,@@ -515,19 +529,13 @@ class DingTalkChannel(ChannelBase):)backend = workspace.get_backend()- tools: list["ToolBase"] = [+ return [ListConversations(self, backend),ListUsers(self, backend),+ SendMessage(self, backend),+ SendFile(self, backend),+ SendImage(self, backend),]- if self._config.approval_card_template_id:- tools.extend(- [- SendMessage(self, backend),- SendFile(self, backend),- SendImage(self, backend),- ],- )- return toolsasync def search_users(self,@@ -543,10 +551,7 @@ class DingTalkChannel(ChannelBase):Returns:`list[dict[str, Any]]`: Basic visible user profiles."""- if self._openapi is None:- logger.warning("DingTalk OpenAPI client is not running")- return []- return await self._openapi.search_users(query, limit)+ return await self._api().search_users(query, limit)async def send_message_to(self, target: str, text: str) -> bool:"""Send Markdown text to an encoded DingTalk target.@@ -558,10 +563,7 @@ class DingTalkChannel(ChannelBase):Returns:`bool`: Whether DingTalk accepted the message."""- if self._openapi is None:- logger.warning("DingTalk OpenAPI client is not running")- return False- return await self._openapi.send_text(target, text)+ return await self._api().send_text(target, text)async def send_file_to(self,@@ -579,13 +581,10 @@ class DingTalkChannel(ChannelBase):Returns:`bool`: Whether DingTalk accepted the file."""- if self._openapi is None:- logger.warning("DingTalk OpenAPI client is not running")- return Falseif len(data) > self._config.max_media_bytes:logger.warning("DingTalk outbound media exceeds the size limit")return False- return await self._openapi.send_media(+ return await self._api().send_media(target,data,self._safe_file_name(file_name),@@ -608,9 +607,6 @@ class DingTalkChannel(ChannelBase):Returns:`bool`: Whether DingTalk accepted the image."""- if self._openapi is None:- logger.warning("DingTalk OpenAPI client is not running")- return Falseif len(data) > self._config.max_media_bytes:logger.warning("DingTalk outbound media exceeds the size limit")return False@@ -619,7 +615,7 @@ class DingTalkChannel(ChannelBase):if not media_type.startswith("image/"):logger.warning("DingTalk SendImage requires an image file")return False- return await self._openapi.send_media(+ return await self._api().send_media(target,data,safe_name,@@ -810,19 +806,27 @@ class DingTalkChannel(ChannelBase):self,event: ChannelEvent,request: RequireUserConfirmEvent,+ agent_name: str,) -> None:"""Create one approval card for each pending tool call.Args:event (`ChannelEvent`): Chat receiving the cards.request (`RequireUserConfirmEvent`): Pending tool calls.+ agent_name (`str`): The agent that asked for approval."""template_id = self._config.approval_card_template_id- if not template_id or self._openapi is None:+ if not template_id:logger.error("DingTalk '%s' cannot deliver tool approval cards",self._channel_id,)+ # The run is parked on an approval nobody can give. Say so+ # here, or the chat simply goes quiet.+ await self._api().send_text(+ event.chat_id,+ "无法展示工具审批卡片:审批卡片模板为空,请管理员配置。",+ )returnapprover_id = (event.chat_id.removeprefix("user:")@@ -830,27 +834,17 @@ class DingTalkChannel(ChannelBase):else "")for tool in request.tool_calls:- card_data = _approval_card_data(- tool.id,- event.chat_id,- tool.name,- tool.input,- approver_id,- str(event.metadata.get("agent_id") or ""),- str(event.metadata.get("session_id") or ""),- )- out_track_id = await self._openapi.create_approval_card(+ out_track_id = await self._api().create_approval_card(event.chat_id,approver_id,template_id,- card_data,+ _approval_card_data(tool, agent_name),+ _tracking_id(tool.id),)if out_track_id is None:- await self._send_text(+ await self._api().send_text(event.chat_id,- "DingTalk could not present the tool approval card. "- "Please ask the administrator to verify the card "- "template and application permissions.",+ "工具审批卡片投放失败,请管理员检查卡片模板与应用权限。",)async def _on_card_callback(self, payload: dict[str, Any]) -> None:@@ -861,11 +855,13 @@ class DingTalkChannel(ChannelBase):"""decision = _parse_card_callback(payload)if decision is None:- logger.warning("DingTalk ignored an invalid card callback")- return- if decision.approver_id and decision.user_id != decision.approver_id:+ # The payload carries the clicker, the conversation and+ # whatever the card was built with; name the card instead.logger.warning(- "DingTalk ignored an approval from an unexpected user",+ "DingTalk '%s' ignored a card callback on '%s' from '%s'",+ self._channel_id,+ payload.get("outTrackId"),+ payload.get("userId"),)returnif self._emit is None:@@ -882,11 +878,10 @@ class DingTalkChannel(ChannelBase):actor=decision.user_id,),)- if self._openapi is not None:- await self._openapi.update_approval_card(- decision.out_track_id,- _resolved_card_data(decision.approved),- )+ await self._api().update_approval_card(+ decision.out_track_id,+ _resolved_card_data(decision.approved),+ )async def _on_callback(self, payload: dict[str, Any]) -> None:"""Normalise a DingTalk robot callback and emit it.@@ -920,7 +915,6 @@ class DingTalkChannel(ChannelBase):title = str(payload.get("conversationTitle") or "")sender_name = str(payload.get("senderNick") or "")self._chat_names[chat_id] = title if is_group else sender_name- self._cache_session_webhook(chat_id, payload)content = await self._parse_content(payload)if not content or self._emit is None:return@@ -1035,10 +1029,7 @@ class DingTalkChannel(ChannelBase):Returns:`DataBlock | None`: Downloaded media, or ``None`` on failure."""- if self._openapi is None:- logger.warning("DingTalk OpenAPI client is not running")- return None- result = await self._openapi.download_media(+ result = await self._api().download_media(download_code,self._config.max_media_bytes,)@@ -1068,9 +1059,6 @@ class DingTalkChannel(ChannelBase):if not isinstance(block.source, Base64Source):logger.warning("DingTalk cannot send URL data blocks as files")return False- if self._openapi is None:- logger.warning("DingTalk OpenAPI client is not running")- return Falsetry:data = base64.b64decode(block.source.data, validate=True)except (binascii.Error, ValueError):@@ -1086,7 +1074,7 @@ class DingTalkChannel(ChannelBase):extension = mimetypes.guess_extension(media_type) or ""fallback_name = f"file{extension}"file_name = self._safe_file_name(block.name or fallback_name)- return await self._openapi.send_media(+ return await self._api().send_media(chat_id,data,file_name,@@ -1116,111 +1104,3 @@ class DingTalkChannel(ChannelBase):def _safe_file_name(file_name: str) -> str:"""Strip directory components from a platform filename."""return file_name.replace("\\", "/").rsplit("/", 1)[-1] or "file"-- def _cache_session_webhook(- self,- chat_id: str,- payload: dict[str, Any],- ) -> None:- """Cache a trusted callback reply URL for the current process.-- Args:- chat_id (`str`): Encoded DingTalk destination.- payload (`dict[str, Any]`): Inbound callback data.- """- url = str(payload.get("sessionWebhook") or "")- if not self._is_dingtalk_url(url):- return- raw_expiry = payload.get("sessionWebhookExpiredTime")- expires_at_ms: int | None = None- if raw_expiry not in (None, ""):- try:- expires_at_ms = int(str(raw_expiry))- if expires_at_ms < 100_000_000_000:- expires_at_ms *= 1000- except (TypeError, ValueError):- logger.warning(- "DingTalk '%s' received an invalid webhook expiration",- self._channel_id,- )- return- self._session_webhooks[chat_id] = _SessionWebhook(- url=url,- expires_at_ms=expires_at_ms,- )-- async def _send_text(self, chat_id: str, text: str) -> bool:- """Send Markdown through a webhook or stable OpenAPI target.-- Args:- chat_id (`str`): Encoded DingTalk destination.- text (`str`): Markdown-formatted text to send.-- Returns:- `bool`: Whether DingTalk accepted the request.- """- webhook = self._session_webhooks.get(chat_id)- now_ms = int(time.time() * 1000)- if webhook is None or (- webhook.expires_at_ms is not None- and webhook.expires_at_ms <= now_ms- ):- self._session_webhooks.pop(chat_id, None)- if self._openapi is not None:- return await self._openapi.send_text(chat_id, text)- logger.warning(- "DingTalk '%s' has no valid reply webhook for '%s'",- self._channel_id,- chat_id,- )- return False- if self._http is None:- logger.warning(- "DingTalk '%s' HTTP client is not running",- self._channel_id,- )- return False-- try:- response = await self._http.post(- webhook.url,- json={- "msgtype": "markdown",- "markdown": {- "title": _MARKDOWN_TITLE,- "text": text,- },- },- )- response.raise_for_status()- result = response.json()- if result.get("errcode", 0) != 0:- logger.warning(- "DingTalk '%s' rejected a session reply: code=%s",- self._channel_id,- result.get("errcode"),- )- return False- return True- except Exception: # pylint: disable=broad-except- logger.exception(- "DingTalk '%s' session reply failed",- self._channel_id,- )- return False-- @staticmethod- def _is_dingtalk_url(url: str) -> bool:- """Return whether a callback URL belongs to DingTalk over HTTPS.-- Args:- url (`str`): URL supplied in an inbound callback.-- Returns:- `bool`: Whether the URL is safe to use as a session webhook.- """- parsed = urlparse(url)- hostname = (parsed.hostname or "").lower()- return parsed.scheme == "https" and (- hostname == "dingtalk.com" or hostname.endswith(".dingtalk.com")- )diff --git a/src/agentscope/app/channel/_dingtalk/_openapi.py b/src/agentscope/app/channel/_dingtalk/_openapi.pyindex f08e5a0e8..f6b2ce291 100644--- a/src/agentscope/app/channel/_dingtalk/_openapi.py+++ b/src/agentscope/app/channel/_dingtalk/_openapi.py@@ -14,7 +14,16 @@ from ...._logging import logger_API = "https://api.dingtalk.com/v1.0"_OAPI = "https://oapi.dingtalk.com"_TOKEN_REFRESH_BUFFER_SECONDS = 300+# Enough of a refusal to name the offending field, not so much that a+# rejected payload is echoed back into the log.+_ERROR_BODY_CHARS = 500_SUPPORTED_FILE_TYPES = frozenset({"doc", "docx", "pdf", "rar", "xlsx", "zip"})+# An AI card's creation call carries no content: it opens the card in+# a running state, and the update that follows tells it what to render.+# "Done rendering" is about the card's own progress, not about whether+# an approval has been decided. Both go over the wire as strings.+_AI_CARD_RENDERING = "1"+_AI_CARD_RENDERED = "3"class _DingTalkOpenAPI:@@ -150,6 +159,7 @@ class _DingTalkOpenAPI:approver_id: str,template_id: str,card_data: dict[str, str],+ out_track_id: str = "",) -> str | None:"""Create and deliver one Stream-callback approval card.@@ -159,17 +169,27 @@ class _DingTalkOpenAPI:the card. Empty means normal audience visibility.template_id (`str`): Card Platform template identifier.card_data (`dict[str, str]`): Template parameter map.+ out_track_id (`str`): Tracking id to pin on the card; a random+ one when empty.Returns:`str | None`: The card's outbound tracking id, or ``None`` whencreation or delivery fails."""- return await self._create_and_deliver_card(+ track = await self._create_and_deliver_card(chat_id,template_id,- card_data,+ {"flowStatus": _AI_CARD_RENDERING},approver_id,+ out_track_id,+ )+ if track is None:+ return None+ settled = await self.update_approval_card(+ track,+ {**card_data, "flowStatus": _AI_CARD_RENDERED},)+ return track if settled else Noneasync def create_streaming_card(self,@@ -257,6 +277,10 @@ class _DingTalkOpenAPI:{"outTrackId": out_track_id,"cardData": {"cardParamMap": card_data},+ # Without this the map replaces the card's whole data, so+ # every variable this update does not name comes back+ # empty — the tool and its arguments included.+ "cardUpdateOptions": {"updateCardDataByKey": True},},"card update",)@@ -267,6 +291,7 @@ class _DingTalkOpenAPI:template_id: str,card_data: dict[str, str],recipient_id: str = "",+ out_track_id: str = "",) -> str | None:"""Create a Card Platform instance and deliver it to a target."""if chat_id.startswith("group:"):@@ -293,7 +318,7 @@ class _DingTalkOpenAPI:token = await self._access_token()if token is None:return None- out_track_id = uuid4().hex+ out_track_id = out_track_id or uuid4().hexcreated = await self._request("POST",f"{_API}/card/instances",@@ -547,7 +572,16 @@ class _DingTalkOpenAPI:headers=self._headers(token),json=body,)- response.raise_for_status()+ if response.status_code >= 400:+ # The status alone never says which field was wrong;+ # DingTalk puts that in the body.+ logger.warning(+ "DingTalk rejected %s with HTTP %s: %s",+ msg_key,+ response.status_code,+ response.text[:_ERROR_BODY_CHARS],+ )+ return Falseresult = response.json()code = result.get("code")if code not in (None, "", 0, "0"):@@ -577,7 +611,14 @@ class _DingTalkOpenAPI:headers=self._headers(token),json=body,)- response.raise_for_status()+ if response.status_code >= 400:+ logger.warning(+ "DingTalk rejected %s with HTTP %s: %s",+ operation,+ response.status_code,+ response.text[:_ERROR_BODY_CHARS],+ )+ return Falseresult = response.json()code = result.get("code")if code not in (None, "", 0, "0"):diff --git a/src/agentscope/app/channel/_dingtalk/_tools/_list_conversations.py b/src/agentscope/app/channel/_dingtalk/_tools/_list_conversations.pyindex af6d5bcff..441588662 100644--- a/src/agentscope/app/channel/_dingtalk/_tools/_list_conversations.py+++ b/src/agentscope/app/channel/_dingtalk/_tools/_list_conversations.py@@ -25,9 +25,11 @@ class ListConversations(_DingTalkToolBase):already received messages from.## Important Limitation-DingTalk application robots cannot enumerate every group they belong to. \-This result contains only conversations observed since the channel process \-started.+DingTalk application robots cannot enumerate every group they belong to, \+and the process answering this call is not the one holding the robot's \+connection — so in a deployment that separates them this list is empty \+and stays empty. Treat an empty array as the normal case and ask the user \+for the target; waiting for it to fill will not help.## OutputA JSON array of ``{target, name, chat_type}``. Copy ``target`` verbatim into \diff --git a/src/agentscope/app/channel/_dingtalk/_tools/_list_users.py b/src/agentscope/app/channel/_dingtalk/_tools/_list_users.pyindex 5e933ae63..87809a121 100644--- a/src/agentscope/app/channel/_dingtalk/_tools/_list_users.py+++ b/src/agentscope/app/channel/_dingtalk/_tools/_list_users.py@@ -32,10 +32,17 @@ class ListUsers(_DingTalkToolBase):## When to Use- You need a stable DingTalk user target before sending a direct message.+## Important Limitation+Searching the directory needs contact permission, which the DingTalk \+application may not have been granted, and a failed lookup reads the same \+as one that matched nobody. An empty array therefore proves nothing: it \+may mean no match, no permission, or a request that did not go through. \+Ask the user for the target rather than retrying, and say the search came \+back empty rather than that the person does not exist.+## OutputA JSON array of ``{target, name, title, department_ids}``. Copy ``target`` \-verbatim into a DingTalk Send* tool. Results depend on the application's \-directory permissions."""+verbatim into a DingTalk Send* tool."""is_read_only: bool = Trueinput_schema: dict = _ListUsersParams.model_json_schema()diff --git a/src/agentscope/app/channel/_gateway.py b/src/agentscope/app/channel/_gateway.pyindex a7f560735..f9567970a 100644--- a/src/agentscope/app/channel/_gateway.py+++ b/src/agentscope/app/channel/_gateway.py@@ -104,9 +104,9 @@ class ChannelGateway:# Prefer the target pinned on the card at send time; re-resolving# via routing here would misroute clicks whose original message# matched on metadata, or in per-chat-user scope when a different- # member clicks. Fall back to routing only for older cards.+ # member clicks.if event.agent_id and event.session_id:- agent_id, session_id = event.agent_id, event.session_id+ guess = (event.agent_id, event.session_id)else:agent_id, session_id, _ = resolve(ChannelEvent(@@ -116,10 +116,58 @@ class ChannelGateway:),record,)- await resume_after_decision(+ guess = (agent_id, session_id)++ if await self._resume(record.user_id, guess, event):+ return++ # A card that reports nothing but the click cannot name its run,+ # and routing only guesses at one: a platform that identifies the+ # clicker differently than the sender lands on another session+ # entirely. Ask the sessions serving the chat the card was+ # delivered into which of them is waiting; a click cannot answer+ # for a chat it did not come from.+ for session in await self._storage.list_sessions_by_channel(+ record.user_id,+ event.channel_id,+ ):+ target = (session.agent_id, session.id)+ if target == guess or session.source_chat_id != event.chat_id:+ continue+ if await self._resume(record.user_id, target, event):+ return++ logger.warning(+ "channel '%s': no session is waiting on tool call '%s' "+ "(clicked in chat '%s' by '%s')",+ event.channel_id,+ event.tool_call_id,+ event.chat_id,+ event.channel_user_id,+ )++ async def _resume(+ self,+ user_id: str,+ target: tuple[str, str],+ event: ChannelConfirmationResultEvent,+ ) -> bool:+ """Answer the decision in one session, if it is waiting for it.++ Args:+ user_id (`str`): Owner of the session.+ target (`tuple[str, str]`): The ``(agent_id, session_id)`` to+ try.+ event (`ChannelConfirmationResultEvent`): The click decision.++ Returns:+ `bool`: Whether the run was resumed.+ """+ agent_id, session_id = target+ return await resume_after_decision(self._bus,self._storage,- user_id=record.user_id,+ user_id=user_id,agent_id=agent_id,session_id=session_id,tool_call_id=event.tool_call_id,@@ -269,6 +317,7 @@ class ChannelGateway:session_id=session_id,source=SessionSource.CHANNEL,source_chat_id=event.chat_id,+ source_chat_name=event.chat_name or None,source_channel_id=record.id,)diff --git a/src/agentscope/app/storage/_base.py b/src/agentscope/app/storage/_base.pyindex 3fcce650a..229d6fd1e 100644--- a/src/agentscope/app/storage/_base.py+++ b/src/agentscope/app/storage/_base.py@@ -373,6 +373,7 @@ class StorageBase(ABC):source: SessionSource = SessionSource.USER,source_schedule_id: str | None = None,source_chat_id: str | None = None,+ source_chat_name: str | None = None,source_channel_id: str | None = None,) -> SessionRecord:"""Create or update a session for a (user, agent) pair.@@ -393,6 +394,11 @@ class StorageBase(ABC):source_schedule_id (`str | None`, optional): The schedule thatcreated this session. When set, the session is indexed underthe schedule for execution history queries.+ source_chat_id (`str | None`, optional): The platform chat this+ session serves.+ source_chat_name (`str | None`, optional): That chat's title, as+ supplied by the inbound message.+ source_channel_id (`str | None`, optional): The owning channel.Returns:`SessionRecord`: The created or updated record.diff --git a/src/agentscope/app/storage/_model/_session.py b/src/agentscope/app/storage/_model/_session.pyindex 1fe2ec795..79d9b8303 100644--- a/src/agentscope/app/storage/_model/_session.py+++ b/src/agentscope/app/storage/_model/_session.py@@ -197,6 +197,11 @@ class SessionRecord(_RecordBase):even on a background / scheduled wake, where no inbound message isavailable to supply it."""+ source_chat_name: str | None = None+ """For channel-created sessions, that chat's title when the platform+ supplied one. Recorded because the name arrives with the inbound+ message: a node that never holds the connection cannot look it up."""+source_channel_id: str | None = None"""For channel-created sessions, the owning channel id. Lets theoutput forwarder locate the channel adapter + presentation settingsdiff --git a/src/agentscope/app/storage/_redis_storage.py b/src/agentscope/app/storage/_redis_storage.pyindex ee5b7cda8..d91276ce7 100644--- a/src/agentscope/app/storage/_redis_storage.py+++ b/src/agentscope/app/storage/_redis_storage.py@@ -875,6 +875,7 @@ class RedisStorage(StorageBase):source: SessionSource = SessionSource.USER,source_schedule_id: str | None = None,source_chat_id: str | None = None,+ source_chat_name: str | None = None,source_channel_id: str | None = None,) -> SessionRecord:"""Create or update a session for a (user, agent) pair.@@ -909,6 +910,7 @@ class RedisStorage(StorageBase):source=source,source_schedule_id=source_schedule_id,source_chat_id=source_chat_id,+ source_chat_name=source_chat_name,source_channel_id=source_channel_id,state=state if state is not None else AgentState(),**new_id_kwargs,diff --git a/src/agentscope/app/storage/_sql/_storage.py b/src/agentscope/app/storage/_sql/_storage.pyindex 1d4666b6c..c3746c0ce 100644--- a/src/agentscope/app/storage/_sql/_storage.py+++ b/src/agentscope/app/storage/_sql/_storage.py@@ -1051,6 +1051,7 @@ class AsyncSQLAlchemyStorage(StorageBase):source: SessionSource = SessionSource.USER,source_schedule_id: str | None = None,source_chat_id: str | None = None,+ source_chat_name: str | None = None,source_channel_id: str | None = None,) -> SessionRecord:"""Create or update a session — same shape as the Redis backend."""@@ -1073,6 +1074,7 @@ class AsyncSQLAlchemyStorage(StorageBase):source=source,source_schedule_id=source_schedule_id,source_chat_id=source_chat_id,+ source_chat_name=source_chat_name,source_channel_id=source_channel_id,state=state if state is not None else AgentState(),**new_id_kwargs,diff --git a/tests/channel_dingtalk_e2e.py b/tests/channel_dingtalk_e2e.pydeleted file mode 100644index 65eb354aa..000000000--- a/tests/channel_dingtalk_e2e.py+++ /dev/null@@ -1,554 +0,0 @@-# -*- coding: utf-8 -*--"""Manual end-to-end checks for the DingTalk channel.--These checks use a real DingTalk internal application and intentionally do-not run as part of the pytest suite. Credentials are accepted only through-environment variables so they cannot be exposed in shell history::-- export DINGTALK_CLIENT_ID=ding...- export DINGTALK_CLIENT_SECRET=...- export DINGTALK_APPROVAL_CARD_TEMPLATE_ID=....schema- export DINGTALK_STREAMING_CARD_TEMPLATE_ID=....schema- uv run python tests/channel_dingtalk_e2e.py direct--Available scenarios are ``direct``, ``group``, ``approval``, ``streaming``,-``shutdown``, and ``all``. Follow the interactive instructions printed by-the selected scenario.-"""--import argparse-import asyncio-import base64-from collections.abc import AsyncIterator, Awaitable, Callable-import os-from typing import Any, TypeAlias-from uuid import uuid4--from agentscope.app.channel import DingTalkChannel-from agentscope.app.channel._base import (- ChannelConfirmationResultEvent,- ChannelEvent,-)-from agentscope.app.channel._dingtalk._card import _approval_card_data-from agentscope.event import (- ReplyEndEvent,- ReplyStartEvent,- TextBlockDeltaEvent,- TextBlockEndEvent,- TextBlockStartEvent,-)-from agentscope.message import DataBlock--_PNG = base64.b64decode(- "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk"- "/x8AAusB9Y9Z3xkAAAAASUVORK5CYII=",-)-_PDF = (- b"%PDF-1.4\n1 0 obj<</Type/Catalog/Pages 2 0 R>>endobj\n"- b"2 0 obj<</Type/Pages/Count 0/Kids[]>>endobj\n"- b"trailer<</Root 1 0 R>>\n%%EOF\n"-)-_Event: TypeAlias = ChannelEvent | ChannelConfirmationResultEvent-_Emitter = Callable[[_Event], Awaitable[None]]---def _credentials() -> DingTalkChannel.Credentials:- """Read real-application credentials from the environment."""- client_id = os.environ.get("DINGTALK_CLIENT_ID", "")- client_secret = os.environ.get("DINGTALK_CLIENT_SECRET", "")- if not client_id or not client_secret:- raise ValueError(- "Set DINGTALK_CLIENT_ID and DINGTALK_CLIENT_SECRET first.",- )- return DingTalkChannel.Credentials(- client_id=client_id,- client_secret=client_secret,- )---def _template_id(variable: str) -> str:- """Read a required Card Platform template id."""- value = os.environ.get(variable, "")- if not value:- raise ValueError(f"Set {variable} to a published template id.")- return value---def _channel(- name: str,- **config: Any,-) -> DingTalkChannel:- """Construct a real DingTalk channel for one isolated scenario."""- config.setdefault("only_at_reply", False)- return DingTalkChannel(- name,- _credentials(),- DingTalkChannel.Config(**config),- )---async def _run_until(- channel: DingTalkChannel,- emit: _Emitter,- completed: asyncio.Event,- instruction: str,- timeout: float,-) -> bool:- """Run a listener until a scenario completes or times out."""- listener = asyncio.create_task(channel.start_listening(emit))- try:- for _ in range(150):- if channel.status.state == "connected":- print(f"READY: {instruction}", flush=True)- break- if channel.status.state == "failed":- print("FAIL: Stream connection failed", flush=True)- return False- await asyncio.sleep(0.2)- else:- print("FAIL: Stream connection timed out", flush=True)- return False-- try:- await asyncio.wait_for(completed.wait(), timeout=timeout)- except TimeoutError:- print("FAIL: interactive scenario timed out", flush=True)- return False- return True- finally:- listener.cancel()- await asyncio.gather(listener, return_exceptions=True)---async def _direct(timeout: float) -> bool:- """Check direct callbacks, discovery, users, and bidirectional media."""- channel = _channel("dingtalk-direct-e2e")- completed = asyncio.Event()- results: dict[str, bool] = {}-- def maybe_complete() -> None:- required = (- "inbound_text",- "conversation",- "user_search",- "target_text",- "target_image",- "target_file",- "inbound_image",- "inbound_file",- )- if all(results.get(key) for key in required):- completed.set()-- async def emit(event: _Event) -> None:- if not isinstance(event, ChannelEvent):- return- data_blocks = [- block for block in event.content if isinstance(block, DataBlock)- ]- for block in data_blocks:- media_type = block.source.media_type- if media_type.startswith("image/"):- results["inbound_image"] = True- print("PASS: inbound image converted to DataBlock", flush=True)- else:- results["inbound_file"] = True- print("PASS: inbound file converted to DataBlock", flush=True)- if data_blocks:- maybe_complete()- return- if results.get("inbound_text"):- return-- results["inbound_text"] = event.metadata.get("chat_type") == "private"- print(- (- "PASS: direct Stream callback normalized"- if results["inbound_text"]- else "FAIL: callback is not a direct message"- ),- flush=True,- )- api = channel._openapi # pylint: disable=protected-access- if api is None:- print("FAIL: OpenAPI client unavailable", flush=True)- completed.set()- return-- conversations = await channel.list_bot_chats()- results["conversation"] = any(- item.get("chat_id") == event.chat_id for item in conversations- )- print(- (- "PASS: observed direct conversation listed"- if results["conversation"]- else "FAIL: direct conversation is missing"- ),- flush=True,- )-- users = await api.search_users(event.channel_user_name, 20)- results["user_search"] = any(- user.get("user_id") == event.channel_user_id for user in users- )- print(- (- "PASS: user search returned the inbound user"- if results["user_search"]- else "FAIL: inbound user is missing from search"- ),- flush=True,- )-- target = f"user:{event.channel_user_id}"- results["target_text"] = await api.send_text(- target,- "**AgentScope DingTalk E2E**\n\nTargeted Markdown passed.",- )- results["target_image"] = await api.send_media(- target,- _PNG,- "agentscope-e2e.png",- "image/png",- )- results["target_file"] = await api.send_media(- target,- _PDF,- "agentscope-e2e.pdf",- "application/pdf",- )- for key, label in (- ("target_text", "targeted Markdown"),- ("target_image", "targeted image"),- ("target_file", "targeted file"),- ):- print(- (- f"PASS: {label} accepted"- if results[key]- else f"FAIL: {label} rejected"- ),- flush=True,- )- maybe_complete()-- finished = await _run_until(- channel,- emit,- completed,- "send a direct text message, then one image and one PDF",- timeout,- )- return finished and all(results.values())---async def _group(timeout: float) -> bool:- """Check group callback normalization, discovery, and targeted send."""- channel = _channel("dingtalk-group-e2e", only_at_reply=True)- completed = asyncio.Event()- succeeded = False-- async def emit(event: _Event) -> None:- nonlocal succeeded- if not isinstance(event, ChannelEvent) or completed.is_set():- return- is_group = event.metadata.get("chat_type") == "group"- conversations = await channel.list_bot_chats()- discovered = any(- item.get("chat_id") == event.chat_id- and item.get("chat_type") == "group"- for item in conversations- )- api = channel._openapi # pylint: disable=protected-access- sent = bool(- api- and await api.send_text(- event.chat_id,- "**AgentScope group E2E**\n\nTargeted group Markdown passed.",- ),- )- for ok, label in (- (is_group, "group callback normalized"),- (discovered, "observed group conversation listed"),- (sent, "targeted group Markdown accepted"),- ):- print(f"{'PASS' if ok else 'FAIL'}: {label}", flush=True)- succeeded = is_group and discovered and sent- completed.set()-- finished = await _run_until(- channel,- emit,- completed,- "mention the robot in a test group",- timeout,- )- return finished and succeeded---async def _approval(timeout: float) -> bool:- """Check approval-card delivery and both callback decisions."""- template_id = _template_id("DINGTALK_APPROVAL_CARD_TEMPLATE_ID")- channel = _channel(- "dingtalk-approval-e2e",- approval_card_template_id=template_id,- )- completed = asyncio.Event()- run_id = uuid4().hex- inbound: ChannelEvent | None = None- expected = True- current_tool_call_id = ""- results: list[bool] = []-- async def deliver(decision: bool) -> bool:- nonlocal current_tool_call_id- if inbound is None:- return False- api = channel._openapi # pylint: disable=protected-access- if api is None:- return False- label = "approve" if decision else "deny"- current_tool_call_id = f"e2e-{run_id}-{label}"- out_track_id = await api.create_approval_card(- inbound.chat_id,- inbound.channel_user_id,- template_id,- _approval_card_data(- current_tool_call_id,- inbound.chat_id,- "SendMessage",- '{"target":"user:e2e","text":"approval E2E"}',- inbound.channel_user_id,- f"e2e-agent-{run_id}",- f"e2e-session-{run_id}",- ),- )- if out_track_id:- print(- f"READY: click {'approve' if decision else 'reject'}",- flush=True,- )- else:- print("FAIL: approval card was not delivered", flush=True)- return bool(out_track_id)-- async def emit(event: _Event) -> None:- nonlocal inbound, expected- if isinstance(event, ChannelEvent):- if inbound is not None:- return- inbound = event- if not await deliver(True):- completed.set()- return- if event.tool_call_id != current_tool_call_id:- print("IGNORED: callback from another card", flush=True)- return- matched = event.approved is expected- results.append(matched)- print(- f"{'PASS' if matched else 'FAIL'}: "- f"{'approval' if expected else 'denial'} callback routed",- flush=True,- )- if expected:- expected = False- if not await deliver(False):- completed.set()- else:- completed.set()-- finished = await _run_until(- channel,- emit,- completed,- "send a direct message to receive the first approval card",- timeout,- )- return finished and results == [True, True]---async def _streaming_events() -> AsyncIterator[dict[str, Any]]:- """Yield a small Agent event stream with visible update intervals."""- reply_id = f"dingtalk-streaming-e2e-{uuid4().hex}"- for start_event in (- ReplyStartEvent(- session_id="dingtalk-streaming-e2e",- reply_id=reply_id,- name="assistant",- ),- TextBlockStartEvent(reply_id=reply_id, block_id="text-1"),- ):- yield start_event.model_dump(mode="json")- for delta in (- "# AgentScope DingTalk streaming E2E",- "\n\n- AI card created",- "\n- Incremental Markdown updated",- "\n- Stream finalized successfully",- ):- yield TextBlockDeltaEvent(- reply_id=reply_id,- block_id="text-1",- delta=delta,- ).model_dump(mode="json")- await asyncio.sleep(0.4)- for end_event in (- TextBlockEndEvent(reply_id=reply_id, block_id="text-1"),- ReplyEndEvent(- session_id="dingtalk-streaming-e2e",- reply_id=reply_id,- ),- ):- yield end_event.model_dump(mode="json")---async def _streaming(timeout: float) -> bool:- """Check AI-card creation, incremental updates, and finalization."""- template_id = _template_id("DINGTALK_STREAMING_CARD_TEMPLATE_ID")- channel = _channel(- "dingtalk-streaming-e2e",- streaming_card_template_id=template_id,- streaming_card_key="content",- )- completed = asyncio.Event()- succeeded = False-- async def emit(event: _Event) -> None:- nonlocal succeeded- if not isinstance(event, ChannelEvent) or completed.is_set():- return- api = channel._openapi # pylint: disable=protected-access- if api is None:- print("FAIL: OpenAPI client unavailable", flush=True)- completed.set()- return- create = api.create_streaming_card- update = api.stream_card- created = False- updates: list[tuple[bool, bool]] = []-- async def tracked_create(*args: Any, **kwargs: Any) -> str | None:- nonlocal created- result = await create(*args, **kwargs)- created = bool(result)- return result-- async def tracked_update(*args: Any, **kwargs: Any) -> bool:- result = await update(*args, **kwargs)- updates.append((bool(kwargs.get("finalize")), result))- return result-- setattr(api, "create_streaming_card", tracked_create)- setattr(api, "stream_card", tracked_update)- try:- await channel.send_response(event, _streaming_events())- finally:- setattr(api, "create_streaming_card", create)- setattr(api, "stream_card", update)- succeeded = (- created- and len(updates) >= 2- and all(ok for _, ok in updates)- and any(finalize for finalize, _ in updates)- )- print(- (- "PASS: AI card created, incrementally updated, and finalized"- if succeeded- else "FAIL: AI streaming-card lifecycle was incomplete"- ),- flush=True,- )- completed.set()-- finished = await _run_until(- channel,- emit,- completed,- "send a direct message to receive the streaming AI card",- timeout,- )- return finished and succeeded---async def _shutdown(_timeout: float) -> bool:- """Check that the official Stream connection stops promptly."""- channel = _channel("dingtalk-shutdown-e2e")-- async def emit(event: _Event) -> None:- del event-- listener = asyncio.create_task(channel.start_listening(emit))- for _ in range(150):- if channel.status.state == "connected":- break- if channel.status.state == "failed":- print("FAIL: Stream connection failed", flush=True)- return False- await asyncio.sleep(0.2)- else:- print("FAIL: Stream connection timed out", flush=True)- return False-- listener.cancel()- try:- await asyncio.wait_for(listener, timeout=5.0)- except asyncio.CancelledError:- pass- except TimeoutError:- print("FAIL: Stream listener did not stop within 5 seconds")- return False- succeeded = channel.status.state == "stopped"- print(- (- "PASS: real DingTalk Stream stopped cleanly"- if succeeded- else "FAIL: Channel did not enter stopped state"- ),- flush=True,- )- return succeeded---_SCENARIOS: dict[str, Callable[[float], Awaitable[bool]]] = {- "direct": _direct,- "group": _group,- "approval": _approval,- "streaming": _streaming,- "shutdown": _shutdown,-}---async def _main(scenario: str, timeout: float) -> int:- """Run one scenario or the complete interactive sequence."""- names = list(_SCENARIOS) if scenario == "all" else [scenario]- for name in names:- print(f"\n=== DingTalk E2E: {name} ===", flush=True)- if not await _SCENARIOS[name](timeout):- print(f"FAIL: {name}", flush=True)- return 1- print(f"PASS: {name}", flush=True)- return 0---def _parse_args() -> argparse.Namespace:- """Parse the manual runner command line."""- parser = argparse.ArgumentParser(description=__doc__)- parser.add_argument(- "scenario",- choices=(*_SCENARIOS, "all"),- help="real DingTalk scenario to run",- )- parser.add_argument(- "--timeout",- type=float,- default=300.0,- help="seconds allowed for each interactive scenario",- )- return parser.parse_args()---if __name__ == "__main__":- _ARGS = _parse_args()- raise SystemExit(asyncio.run(_main(_ARGS.scenario, _ARGS.timeout)))diff --git a/tests/channel_dingtalk_test.py b/tests/channel_dingtalk_test.pyindex da14dccf7..7d2d118fd 100644--- a/tests/channel_dingtalk_test.py+++ b/tests/channel_dingtalk_test.py@@ -5,7 +5,6 @@import asyncioimport base64import json-import timefrom typing import Any, AsyncIterator, castfrom unittest import IsolatedAsyncioTestCasefrom unittest.mock import patch@@ -17,6 +16,11 @@ from agentscope.app.channel._base import (ChannelEvent,ChatKind,)+from agentscope.app.channel._dingtalk._card import (+ _PENDING_LAYOUT,+ _tool_call_id,+ _tracking_id,+)from agentscope.app.channel._dingtalk._openapi import _DingTalkOpenAPIfrom agentscope.app.channel._registry import ChannelTypeRegistryfrom agentscope.event import (@@ -40,14 +44,22 @@ from agentscope.permission import PermissionBehavior, PermissionContextfrom agentscope.workspace import WorkspaceBase_REPLY_ID = "reply-1"-_WEBHOOK = "https://oapi.dingtalk.com/robot/sendBySession?session=secret"class _FakeResponse:"""Minimal successful HTTP response."""- def __init__(self, result: dict[str, Any] | None = None) -> None:+ def __init__(+ self,+ result: dict[str, Any] | None = None,+ status_code: int = 200,+ ) -> None:self._result = result if result is not None else {"errcode": 0}+ self.status_code = status_code++ @property+ def text(self) -> str:+ return json.dumps(self._result, ensure_ascii=False)def raise_for_status(self) -> None:pass@@ -57,7 +69,7 @@ class _FakeResponse:class _FakeHTTP:- """Record outbound webhook calls."""+ """Record outbound HTTP calls."""def __init__(self) -> None:self.posts: list[tuple[str, dict[str, Any]]] = []@@ -101,7 +113,9 @@ class _FakeMediaOpenAPI:self.send_calls: list[tuple[str, bytes, str, str]] = []self.text_calls: list[tuple[str, str]] = []self.search_result: list[dict[str, Any]] = []- self.approval_calls: list[tuple[str, str, str, dict[str, str]]] = []+ self.approval_calls: list[+ tuple[str, str, str, dict[str, str], str]+ ] = []self.card_updates: list[tuple[str, dict[str, str]]] = []self.streaming_card_id: str | None = "stream-track-1"self.streaming_card_calls: list[tuple[str, str, str]] = []@@ -144,11 +158,12 @@ class _FakeMediaOpenAPI:approver_id: str,template_id: str,card_data: dict[str, str],+ out_track_id: str = "",) -> str:self.approval_calls.append(- (chat_id, approver_id, template_id, card_data),+ (chat_id, approver_id, template_id, card_data, out_track_id),)- return "track-1"+ return out_track_id or "track-1"async def update_approval_card(self,@@ -330,8 +345,6 @@ def _payload(**overrides: Any) -> dict[str, Any]:"msgtype": "text","text": {"content": " hello "},"isInAtList": True,- "sessionWebhook": _WEBHOOK,- "sessionWebhookExpiredTime": int(time.time() * 1000) + 60_000,}payload.update(overrides)return payload@@ -705,34 +718,6 @@ class DingTalkChannelTest( # pylint: disable=too-many-public-methodsself.assertIn("Unable to download", received[0].message)- async def test_unsafe_session_webhook_is_not_cached(self) -> None:- channel = _channel()- received = await _message_callbacks(- channel,- _payload(sessionWebhook="https://example.com/steal"),- )-- self.assertEqual(len(received), 1)- self.assertNotIn(received[0].chat_id, channel._session_webhooks)-- async def test_send_response_uses_cached_session_webhook(self) -> None:- channel = _channel()- received = await _message_callbacks(channel, _payload())- http = _FakeHTTP()- channel._http = http-- await channel.send_response(received[0], _event_stream())-- self.assertEqual(len(http.posts), 1)- url, request = http.posts[0]- self.assertEqual(url, _WEBHOOK)- self.assertEqual(request["json"]["msgtype"], "markdown")- self.assertEqual(- request["json"]["markdown"]["text"],- "hello from agent",- )- self.assertEqual(request["json"]["markdown"]["title"], "AgentScope")-async def test_streaming_is_disabled_without_ai_card_template(self,) -> None:@@ -740,6 +725,35 @@ class DingTalkChannelTest( # pylint: disable=too-many-public-methodsself.assertFalse(channel.capabilities.streaming)+ async def test_default_config_needs_no_card_platform_work(self) -> None:+ """Both cards default to published templates, so neither is set up."""+ channel = DingTalkChannel(+ "ding-1",+ DingTalkChannel.Credentials(+ client_id="client-id",+ client_secret="client-secret",+ ),+ DingTalkChannel.Config(),+ )++ self.assertDictEqual(+ channel._config.model_dump(),+ {+ "only_at_reply": True,+ "show_tool_process": False,+ "show_thinking": False,+ "max_media_bytes": 10 * 1024 * 1024,+ "approval_card_template_id": (+ "382e4302-551d-4880-bf29-a30acfab2e71.schema"+ ),+ "streaming_card_template_id": (+ "8aebdfb9-28f4-4a98-98f5-396c3dde41a0.schema"+ ),+ "streaming_card_key": "content",+ },+ )+ self.assertTrue(channel.capabilities.streaming)+async def test_send_response_streams_when_ai_card_is_configured(self,) -> None:@@ -807,17 +821,20 @@ class DingTalkChannelTest( # pylint: disable=too-many-public-methodsself.assertTrue(media_api.streaming_updates[-1][3])self.assertTrue(media_api.streaming_updates[-1][4])- async def test_oversized_streaming_reply_uses_markdown_only(self) -> None:+ async def test_long_streaming_reply_is_not_capped(self) -> None:+ """Only DingTalk decides a reply is too long, not a local guess."""channel, media_api = _channel_with_openapi(streaming_card_template_id="ai-card.schema",)event = _message_event()- text = "中" * 342- await channel.send_response(event, _event_stream(text))+ await channel.send_response(event, _event_stream("中" * 342))- self.assertEqual(media_api.streaming_card_calls, [])- self.assertEqual(media_api.text_calls, [(event.chat_id, text)])+ self.assertListEqual(+ media_api.streaming_card_calls,+ [("group:cid-group-1", "ai-card.schema", "content")],+ )+ self.assertListEqual(media_api.text_calls, [])async def test_send_response_uploads_image_data_block(self) -> None:channel, media_api = _channel_with_openapi()@@ -837,6 +854,42 @@ class DingTalkChannelTest( # pylint: disable=too-many-public-methods],)+ async def test_rejected_send_reports_what_dingtalk_said(self) -> None:+ """A refusal names the field; the status code alone never does."""+ api, http = _openapi()+ http._responses.append(+ _FakeResponse(+ {"code": "InvalidParameter", "message": "photoURL invalid"},+ status_code=400,+ ),+ )++ with self.assertLogs("as", level="WARNING") as captured:+ sent = await api.send_text("user:user-1", "hello")++ self.assertFalse(sent)+ self.assertIn("photoURL invalid", "\n".join(captured.output))++ async def test_approval_card_value_fits_the_platform_cap(self) -> None:+ """A Chinese argument must not push a card value past 1KB."""+ from agentscope.app.channel._dingtalk._card import (+ _approval_card_data,+ )++ card_data = _approval_card_data(+ ToolCallBlock(+ type="tool_call",+ id="tool-1",+ name="Bash",+ input="中" * 800,+ ),+ "Friday",+ )++ for key in ("input", "staticMsgContent", "sys_full_json_obj"):+ self.assertLessEqual(len(card_data[key].encode("utf-8")), 1024)+ self.assertTrue(card_data["input"].endswith("…"))+async def test_send_response_presents_tool_approval_card(self) -> None:channel, media_api = _channel_with_openapi()event = _message_event(@@ -846,12 +899,99 @@ class DingTalkChannelTest( # pylint: disable=too-many-public-methodsawait channel.send_response(event, _confirmation_event_stream())self.assertEqual(len(media_api.approval_calls), 1)- chat_id, approver, template, card_data = media_api.approval_calls[0]+ (+ chat_id,+ approver,+ template,+ card_data,+ track,+ ) = media_api.approval_calls[0]self.assertEqual(chat_id, "group:cid-group-1")self.assertEqual(approver, "")self.assertEqual(template, "approval.schema")- self.assertEqual(card_data["toolCallId"], "tool-1")- self.assertEqual(card_data["agentId"], "agent-1")+ # Unique per card, and the tool call reads off the end of it.+ self.assertNotEqual(track, "tool-1")+ self.assertEqual(_tool_call_id(track), "tool-1")+ self.assertRegex(+ card_data["created_at"],+ r"^\d{4}-\d\d-\d\d \d\d:\d\d:\d\d$",+ )+ self.assertDictEqual(+ card_data,+ {+ # What the built-in AI card renders.+ "msgTitle": "工具审批",+ "staticMsgContent": (+ "工具:SendMessage\n\n"+ '参数:{"target":"user:user-2","text":"hello"}'+ ),+ "sys_full_json_obj": _PENDING_LAYOUT,+ # What a template of the operator's own binds.+ "title": "assistant 提交的工具执行",+ "name": "SendMessage",+ "input": '{"target":"user:user-2","text":"hello"}',+ "created_at": card_data["created_at"],+ "status": "pending",+ },+ )++ async def test_built_in_button_callback_routes_on_id_and_space(+ self,+ ) -> None:+ """The shape a real click sends: button id, and a plain "im" space."""+ channel, _ = _channel_with_openapi()+ received = await _confirmation_callbacks(+ channel,+ {+ "type": "actionCallback",+ "outTrackId": _tracking_id("call_c45eafeaa1ab"),+ "userId": "staff-1",+ "spaceType": "im",+ "spaceId": "cidAAABBBCCCDDDEEE000111222333444==",+ "content": json.dumps(+ {+ "cardPrivateData": {+ "actionIds": ["single_button_node_ocljy2j7wg2"],+ "params": {"id": "agree", "text": "Approve"},+ },+ },+ ),+ },+ )++ self.assertEqual(len(received), 1)+ self.assertEqual(received[0].tool_call_id, "call_c45eafeaa1ab")+ self.assertEqual(+ received[0].chat_id,+ "group:cidAAABBBCCCDDDEEE000111222333444==",+ )+ self.assertEqual(received[0].channel_user_id, "staff-1")+ self.assertEqual(received[0].agent_id, "")+ self.assertTrue(received[0].approved)++ async def test_built_in_button_callback_routes_a_private_chat(+ self,+ ) -> None:+ """A one-to-one card sits in the space of whoever clicked."""+ channel, _ = _channel_with_openapi()+ received = await _confirmation_callbacks(+ channel,+ {+ "type": "actionCallback",+ "outTrackId": _tracking_id("call_deny"),+ "userId": "user-7",+ "spaceType": "im",+ "spaceId": "user-7",+ "content": json.dumps(+ {"cardPrivateData": {"params": {"id": "reject"}}},+ ),+ },+ )++ self.assertEqual(len(received), 1)+ self.assertEqual(received[0].tool_call_id, "call_deny")+ self.assertEqual(received[0].chat_id, "user:user-7")+ self.assertFalse(received[0].approved)async def test_approval_callback_emits_resume_event_and_updates_card(self,@@ -873,7 +1013,7 @@ class DingTalkChannelTest( # pylint: disable=too-many-public-methodsself.assertEqual(media_api.card_updates[0][1]["status"], "denied")async def test_approval_callback_accepts_approval_aliases(self) -> None:- for action in ("approve", "agree"):+ for action in ("approve", "agree", "approved"):with self.subTest(action=action):channel, media_api = _channel_with_openapi()received = await _confirmation_callbacks(@@ -887,19 +1027,6 @@ class DingTalkChannelTest( # pylint: disable=too-many-public-methods"approved",)- async def test_approval_callback_rejects_another_user(self) -> None:- channel, media_api = _channel_with_openapi()- received = await _confirmation_callbacks(- channel,- _card_callback(- user_id="unexpected-user",- approver_id="user-1",- ),- )-- self.assertEqual(received, [])- self.assertEqual(media_api.card_updates, [])-async def test_send_file_strips_path_and_keeps_extension(self) -> None:channel, media_api = _channel_with_openapi()block = DataBlock(@@ -1034,49 +1161,69 @@ class DingTalkToolTest(IsolatedAsyncioTestCase):self.assertEqual(read_decision.behavior, PermissionBehavior.ALLOW)self.assertEqual(send_decision.behavior, PermissionBehavior.ASK)- async def test_send_tools_require_approval_card_configuration(+ async def test_send_tools_do_not_depend_on_card_configuration(self,) -> None:+ """Approval gates the call, not whether the tool is equipped."""channel = _channel(approval_card_template_id="")tools = await channel.list_tools(cast(WorkspaceBase, _FakeWorkspace(_FakeBackend())),)- self.assertEqual(+ self.assertListEqual([tool.name for tool in tools],- ["ListConversations", "ListUsers"],+ [+ "ListConversations",+ "ListUsers",+ "SendMessage",+ "SendFile",+ "SendImage",+ ],)class DingTalkChannelLifecycleTest(IsolatedAsyncioTestCase):- """DingTalk reply-webhook and connection lifecycle tests."""+ """DingTalk delivery-without-connection and lifecycle tests."""- async def test_expired_session_webhook_is_not_used(self) -> None:+ async def test_reply_works_without_start_listening(self) -> None:+ """The node that delivers a reply never runs the connection loop."""channel = _channel()- received = await _message_callbacks(- channel,- _payload(- sessionWebhookExpiredTime=int(time.time() * 1000) - 1,- ),+ http = _OpenAPIHTTP(+ [+ _FakeResponse({"accessToken": "token", "expireIn": 7200}),+ _FakeResponse({}),+ ],)- http = _FakeHTTP()- channel._http = http- sent = await channel._send_text(received[0].chat_id, "late reply")+ with patch.object(channel, "_new_http_client", return_value=http):+ await channel.send_response(_message_event(), _event_stream())+ await channel.aclose()- self.assertFalse(sent)- self.assertEqual(http.posts, [])-- async def test_missing_webhook_falls_back_to_openapi(self) -> None:- channel, media_api = _channel_with_openapi()-- sent = await channel._send_text("group:cid-2", "fallback")-- self.assertTrue(sent)- self.assertEqual(- media_api.text_calls,- [("group:cid-2", "fallback")],+ self.assertListEqual(+ [(url, request["json"]) for url, request in http.posts],+ [+ (+ "https://api.dingtalk.com/v1.0/oauth2/accessToken",+ {"appKey": "client-id", "appSecret": "client-secret"},+ ),+ (+ "https://api.dingtalk.com/v1.0/robot/groupMessages/send",+ {+ "robotCode": "client-id",+ "msgKey": "sampleMarkdown",+ "msgParam": json.dumps(+ {+ "title": "AgentScope",+ "text": "hello from agent",+ },+ ensure_ascii=False,+ ),+ "openConversationId": "cid-group-1",+ },+ ),+ ],)+ self.assertTrue(http.closed)async def test_lifecycle_stops_stream_and_http_clients(self) -> None:channel = _channel()@@ -1318,7 +1465,7 @@ class DingTalkOpenAPITest(IsolatedAsyncioTestCase):self.assertEqual(users[1]["name"], "")async def test_create_deliver_and_update_group_approval_card(self) -> None:- api, http = _openapi({}, {}, {})+ api, http = _openapi({}, {}, {}, {})out_track_id = await api.create_approval_card("group:cid-1",@@ -1341,6 +1488,21 @@ class DingTalkOpenAPITest(IsolatedAsyncioTestCase):"approval.schema",)self.assertEqual(create_request["json"]["callbackType"], "STREAM")+ # Creation opens the card; its content arrives in the update.+ self.assertDictEqual(+ create_request["json"]["cardData"]["cardParamMap"],+ {"flowStatus": "1"},+ )+ settle = http.requests[2][2]["json"]+ self.assertDictEqual(+ settle["cardData"]["cardParamMap"],+ {"toolCallId": "tool-1", "flowStatus": "3"},+ )+ # By key, or the variables this update omits are wiped.+ self.assertDictEqual(+ settle["cardUpdateOptions"],+ {"updateCardDataByKey": True},+ )deliver_method, deliver_url, deliver_request = http.requests[1]self.assertEqual(deliver_method, "POST")self.assertTrue(deliver_url.endswith("/card/instances/deliver"))@@ -1359,7 +1521,7 @@ class DingTalkOpenAPITest(IsolatedAsyncioTestCase):)async def test_deliver_private_approval_card_to_encoded_user(self) -> None:- api, http = _openapi({}, {})+ api, http = _openapi({}, {}, {})out_track_id = await api.create_approval_card("user:user-1",diff --git a/tests/channel_gateway_test.py b/tests/channel_gateway_test.pyindex 87a56b403..75f142c07 100644--- a/tests/channel_gateway_test.py+++ b/tests/channel_gateway_test.py@@ -8,21 +8,27 @@ needs a running agent and is exercised end-to-end against a real bot."""# pylint: disable=protected-access,missing-function-docstring,unused-argument# pylint: disable=attribute-defined-outside-init+from types import SimpleNamespacefrom typing import Any, AsyncIteratorfrom unittest import IsolatedAsyncioTestCasefrom agentscope.app.channel._base import (ChannelBase,+ ChannelConfirmationResultEvent,ChannelEvent,_EVENT_ADAPTER,)from agentscope.app.channel._gateway import ChannelGateway-from agentscope.message import Msg+from agentscope.message import Msg, ToolCallBlock, ToolCallState+from agentscope.state import AgentStatefrom agentscope.app.message_bus import InMemoryMessageBus+from agentscope.app.message_bus import MessageBusKeysfrom agentscope.app.storage import (ChannelBinding,ChannelRecord,RoutingConfig,+ SessionConfig,+ SessionRecord,SessionScope,SessionSettings,)@@ -216,7 +222,8 @@ class SendResponseTest(IsolatedAsyncioTestCase):],show_thinking=True,)- self.assertIn("hmm", _text(channel))+ # Markdown needs the blank line, or thinking runs into the answer.+ self.assertEqual(_text(channel), "\U0001f4ad hmm\n\nanswer")async def test_data_block_reassembled_and_delivered(self) -> None:channel = await _run(@@ -298,16 +305,18 @@ class MediaBufferTest(IsolatedAsyncioTestCase):class _RecordingStorage:- """Storage stub capturing the workspace_id of upserted sessions."""+ """Storage stub capturing what a session was upserted with."""def __init__(self) -> None:self.workspace_ids: list[str] = []+ self.upserts: list[dict[str, Any]] = []async def get_session(self, **kwargs: Any) -> None:return Noneasync def upsert_session(self, *, config: Any, **kwargs: Any) -> None:self.workspace_ids.append(config.workspace_id)+ self.upserts.append(kwargs)def _channel_record(user_id: str) -> ChannelRecord:@@ -414,3 +423,170 @@ class FeishuPostParseTest(IsolatedAsyncioTestCase):self.assertTrue(any(isinstance(b, TextBlock) and "link" in b.text for b in blocks),)+++class _AwaitingStorage:+ """Storage stub whose one session is parked on a tool call."""++ def __init__(self, record: ChannelRecord, session_id: str) -> None:+ self._record = record+ self._session_id = session_id+ self.asked: list[str] = []++ async def get_channel(self, channel_id: str) -> ChannelRecord:+ del channel_id+ return self._record++ async def list_sessions_by_channel(+ self,+ user_id: str,+ channel_id: str,+ ) -> list[Any]:+ del user_id, channel_id+ return [+ SessionRecord(+ id=self._session_id,+ user_id=self._record.user_id,+ agent_id="agent-x",+ source_chat_id="group:cid-1",+ config=SessionConfig(workspace_id="ws-1"),+ ),+ ]++ async def get_session(self, *, session_id: str, **kwargs: Any) -> Any:+ self.asked.append(session_id)+ if session_id != self._session_id:+ return None+ return SessionRecord(+ id=session_id,+ user_id=self._record.user_id,+ agent_id="agent-x",+ config=SessionConfig(workspace_id="ws-1"),+ state=AgentState(+ reply_id="reply-1",+ context=[+ Msg(+ name="Friday",+ role="assistant",+ content=[+ ToolCallBlock(+ type="tool_call",+ id="call_abc",+ name="Bash",+ input="{}",+ state=ToolCallState.ASKING,+ ),+ ],+ ),+ ],+ ),+ )++ async def get_agent(self, **kwargs: Any) -> Any:+ del kwargs+ return SimpleNamespace(data=SimpleNamespace(name="Friday"))+++class ChatNameRecordingTest(IsolatedAsyncioTestCase):+ """The title arrives with the message; a later node cannot look it up."""++ async def _upsert(self, chat_name: str) -> dict[str, Any]:+ storage = _RecordingStorage()+ gw = ChannelGateway(+ storage=storage,+ message_bus=InMemoryMessageBus(),+ workspace_manager=_WM(isolation=IsolationPolicy.PER_AGENT),+ )+ await gw._ensure_session(+ _channel_record("user-a"),+ "agent-x",+ "s-a",+ ChannelEvent(+ channel_id="c",+ channel_user_id="u",+ chat_id="group:cid-1",+ chat_name=chat_name,+ ),+ SessionScope.PER_CHAT,+ )+ return storage.upserts[0]++ async def test_chat_title_is_recorded_on_the_session(self) -> None:+ upsert = await self._upsert("产品群")++ self.assertEqual(upsert["source_chat_id"], "group:cid-1")+ self.assertEqual(upsert["source_chat_name"], "产品群")++ async def test_a_nameless_chat_records_no_title(self) -> None:+ """A private chat has no title, and "" is not one."""+ upsert = await self._upsert("")++ self.assertIsNone(upsert["source_chat_name"])+++class DecisionRoutingTest(IsolatedAsyncioTestCase):+ """A click resumes the run that is waiting, not the one routing picks."""++ async def test_decision_finds_the_waiting_session(self) -> None:+ record = _channel_record("user-1")+ # Not what routing derives: the platform names the clicker+ # differently than it named the sender.+ storage = _AwaitingStorage(record, "the-parked-session")+ bus = InMemoryMessageBus()+ gw = ChannelGateway(+ storage=storage,+ message_bus=bus,+ workspace_manager=_WM(isolation=IsolationPolicy.PER_AGENT),+ )++ await gw.process(+ ChannelConfirmationResultEvent(+ channel_id="chan-1",+ chat_id="group:cid-1",+ channel_user_id="300905",+ tool_call_id="call_abc",+ approved=True,+ actor="300905",+ ),+ )++ queued = await bus.queue_drain(MessageBusKeys.wakeup_queue())+ self.assertEqual(len(queued), 1)+ payload = queued[0][1]+ event = payload["input"]+ tool_call = event["confirm_results"][0]["tool_call"]+ self.assertDictEqual(+ payload,+ {+ "user_id": "user-1",+ "session_id": "the-parked-session",+ "agent_id": "agent-x",+ "kind": MessageBusKeys.WAKEUP_KIND_RESUME,+ "input": {+ "id": event["id"],+ "created_at": event["created_at"],+ "metadata": {},+ "type": "USER_CONFIRM_RESULT",+ "reply_id": "reply-1",+ "confirm_results": [+ {+ "confirmed": True,+ "rules": None,+ "tool_call": {+ "type": "tool_call",+ "id": "call_abc",+ "name": "Bash",+ "input": "{}",+ "state": "asking",+ "suggested_rules": [],+ "created_at": tool_call["created_at"],+ "finished_at": None,+ },+ },+ ],+ },+ },+ )+ # The routing guess was tried first, then the parked session.+ self.assertNotEqual(storage.asked[0], "the-parked-session")+ self.assertIn("the-parked-session", storage.asked)