feat:(v2策略)支持update,enable,disable
This commit is contained in:
@@ -74,4 +74,18 @@ AddPolicies
|
||||
${policyIds} Run Keyword If "${returnData}" == "1" WxGet-PolicyIds ${response}
|
||||
... ELSE Create List
|
||||
${rescode} Set Variable ${response['code']}
|
||||
[Return] ${rescode} ${policyIds}
|
||||
[Return] ${rescode} ${policyIds}
|
||||
UpdatePolicies
|
||||
[Arguments] ${returnData} ${policyList} ${version} ${opAction}
|
||||
Log To Console Call UpdatePolicies
|
||||
${returnData}= Run Keyword If '${returnData}' == '${EMPTY}' Set Variable 1
|
||||
... ELSE Set Variable ${returnData}
|
||||
#必选参数判定
|
||||
Should Not Be Empty ${policyList}
|
||||
${dictType} = Evaluate type(${policyList})
|
||||
${body} Run Keyword If "${dictType}" == "<class 'list'>" WxPolicyListOperation ${returnData} ${policyList} ${opAction} ${version}
|
||||
... ELSE IF "${dictType}" == "<class 'dict'>" WxPolicyOperation ${returnData} ${policyList} ${opAction} ${version}
|
||||
... ELSE Set Variable ${EMPTY}
|
||||
${response} BaseEditRequestForV2 ${url} ${body} ${version}
|
||||
${rescode} Set Variable ${response['code']}
|
||||
[Return] ${rescode}
|
||||
Reference in New Issue
Block a user