56 lines
1.3 KiB
JSON
56 lines
1.3 KiB
JSON
{
|
|
"Name": "通过免登码获取用户信息",
|
|
"Enabled": true,
|
|
"Triggers": [
|
|
{
|
|
"$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon",
|
|
"Parameters": [
|
|
{
|
|
"Name": "AuthCode",
|
|
"DataValidationInfo": {
|
|
"IgnoreBlank": false
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Commands": [
|
|
{
|
|
"$type": "DingTalkPlugin.Getuserinfo, DingTalkPlugin",
|
|
"Code": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=AuthCode"
|
|
},
|
|
"UserInfo": "用户信息"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "0",
|
|
"Message": "获取成功",
|
|
"CustomReturns": [
|
|
{
|
|
"ReturnPropertyName": "钉钉UnionId",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=用户信息.unionid"
|
|
}
|
|
},
|
|
{
|
|
"ReturnPropertyName": "钉钉UserId",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=用户信息.userid"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ReturnProperties": [
|
|
{
|
|
"Name": "钉钉UnionId"
|
|
},
|
|
{
|
|
"Name": "钉钉UserId"
|
|
}
|
|
]
|
|
} |