{"Message":"增加钉钉先授权,后绑定逻辑","MessageType":2,"Modules":[{"State":1,"Type":1,"Name":"PCPage/其他登录方式"},{"State":1,"Type":1,"Name":"PCPage/登录画面"},{"State":1,"Type":15,"Name":"ServerCommand/钉钉授权登录"},{"State":1,"Type":15,"Name":"ServerCommand/dingtalkLogin"},{"State":1,"Type":1,"Name":"PCPage/dingtalkLogin"},{"State":3,"Type":15,"Name":"ServerCommand/服务端命令1"},{"State":3,"Type":15,"Name":"ServerCommand/钉钉登录绑定账号并登录"},{"State":3,"Type":1,"Name":"PCPage/绑定账号"}],"Version":"v1"}

This commit is contained in:
cuckooent
2024-09-04 21:53:39 +08:00
parent 765c596e75
commit 6616f4b3e4
9 changed files with 970 additions and 111 deletions

View File

@@ -148,22 +148,45 @@
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "登录成功"
"Message": "登录成功",
"CustomReturns": [
{
"ReturnPropertyName": "unionid",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=个人信息.UnionId"
}
}
]
}
],
"ID": "711e6405-f2b3-4a58-aaf2-86afae80e8d0"
"ID": "4dd0f710-998d-4ffa-897c-4e8753a5daba"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "请先使用账号登录,前往个人中心绑定钉钉后方可使用钉钉登录"
"Message": "请先绑定账号后登录",
"CustomReturns": [
{
"ReturnPropertyName": "unionid",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=个人信息.UnionId"
}
}
]
}
],
"ID": "f355aff9-e63b-4147-9319-e09f6f808512"
"ID": "b243fcc0-0a99-41d0-961d-5c3c12325553"
}
]
}
],
"ReturnProperties": [
{
"Name": "unionid"
}
]
}

View File

@@ -127,22 +127,45 @@
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "登录成功"
"Message": "登录成功",
"CustomReturns": [
{
"ReturnPropertyName": "unionid",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户信息.unionid"
}
}
]
}
],
"ID": "1e2e9225-9a6f-4372-a72f-df5bdf80e57d"
"ID": "48ac56d7-0d09-4974-be05-12264d670c4e"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "请先使用账号登录,前往个人中心绑定钉钉后方可使用钉钉登录"
"ErrorCode": "300",
"Message": "请绑定账号后登录",
"CustomReturns": [
{
"ReturnPropertyName": "unionid",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户信息.unionid"
}
}
]
}
],
"ID": "e3e5479d-4ca5-4c73-821b-9225e1f99b96"
"ID": "2aff1f93-355d-4519-a2a8-36479fd08485"
}
]
}
],
"ReturnProperties": [
{
"Name": "unionid"
}
]
}

View File

@@ -0,0 +1,111 @@
{
"Name": "钉钉登录绑定账号并登录",
"Enabled": true,
"Triggers": [
{
"$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon",
"Permission": {
"PermissionData": {
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core",
"permissionResource": {
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core"
},
"permissionBindings": [
{
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core",
"roleNames": [
"FGC_Anonymous"
]
}
]
}
},
"HttpMethod": 3,
"Parameters": [
{
"Name": "用户名",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
{
"Name": "密码",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
{
"Name": "钉钉UnionId",
"DataValidationInfo": {
"IgnoreBlank": false
}
}
]
}
],
"Commands": [
{
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"CommandList": [
{
"$type": "UserManagementCommandsV2.UserManagementCommand, UserManagementCommandsV2",
"OperationType": "101",
"CommandOperator": {
"$type": "UserManagementCommandsV2.LoginOperator, UserManagementCommandsV2",
"UserName": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户名"
},
"Password": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=密码"
},
"RememberMe": "1"
}
},
{
"$type": "UserManagementCommandsV2.UserManagementCommand, UserManagementCommandsV2",
"OperationType": "202",
"CommandOperator": {
"$type": "UserManagementCommandsV2.UpdateUserOperator, UserManagementCommandsV2",
"UserName": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户名"
},
"ExtendedProperties": [
{
"Name": "DingTalkUnionID",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=钉钉UnionId"
}
}
]
}
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "登录成功"
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
}
}
]
}
}
]
}