{"Message":"增加首页判断钉钉环境自动登录逻辑","MessageType":2,"Modules":[{"State":1,"Type":1,"Name":"PCPage/其他登录方式"},{"State":1,"Type":3,"Name":"MasterPCPage/FGC_母版页"}],"Version":"v1"}

This commit is contained in:
cuckooent
2024-09-04 21:39:35 +08:00
parent 28cefce4af
commit 88ffd2ae2a
3 changed files with 262 additions and 223 deletions

View File

@@ -146,6 +146,17 @@
"1,3": {
"CellType": {
"$type": "Forguncy.ImageCellType, ServerDesignerCommon",
"CommandList": [
{
"$type": "Forguncy.Model.OperateCellTypeCommand, ServerDesignerCommon",
"TargetPageElement": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=其他登录方式!D4"
},
"TargetType": "Forguncy.HyperlinkCellType, ServerDesignerCommon, Version=10.0.5.0, Culture=neutral, PublicKeyToken=967100671921c115",
"MethodName": "ExecuteCommand"
}
],
"Size": 24,
"ImagePath": "钉钉.svg",
"UseCellForeColor": true
@@ -172,6 +183,170 @@
"Size": 24,
"ImagePath": "微信登录反白.svg"
}
},
"3,3": {
"CellType": {
"$type": "Forguncy.HyperlinkCellType, ServerDesignerCommon",
"CommandList": [
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"JSText": "return isDingTalk();",
"CommandList": [
{
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
"ServerCommandName": "获取CorpId",
"ResultErrorCodeTo": {
"SerializeProperty": "code"
},
"ResultMessageTo": {
"SerializeProperty": "msg"
},
"ReturnPropertiesTo": [
{
"ResultPropertyName": "CorpId",
"ResultTo": {
"SerializeProperty": "CorpId"
}
}
],
"CheckDataValidation": false
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon",
"cellLocations": [
{
"SerializeProperty": "=其他登录方式!code"
}
]
},
"value": "0"
},
"CommandList": [
{
"$type": "Notiflix_Forguncy.Loading_Command, Notiflix_Forguncy",
"Title": "加载中"
},
{
"$type": "DingTalkPlugin.RequestAuthCode, DingTalkPlugin",
"CorpId": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=其他登录方式!CorpId"
},
"Code": "授权码"
},
{
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
"ServerCommandName": "钉钉授权登录",
"Parameters": [
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "授权码",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=其他登录方式!授权码"
}
}
],
"ResultErrorCodeTo": {
"SerializeProperty": "code"
},
"ResultMessageTo": {
"SerializeProperty": "msg"
},
"RefreshAfterFinish": true,
"CheckDataValidation": true
},
{
"$type": "Notiflix_Forguncy.Loading_Command, Notiflix_Forguncy",
"FunctionName": "remove",
"Title": "加载中"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon",
"cellLocations": [
{
"SerializeProperty": "=其他登录方式!code"
}
]
},
"value": "0",
"compareType": 1
},
"CommandList": [
{
"$type": "Forguncy.Model.NavigateCommand, ServerDesignerCommon",
"PageName": "工作台首页"
}
],
"ID": "cc0a5274-fc1b-4a76-b228-d05605116666"
},
{
"CommandList": [
{
"$type": "Notiflix_Forguncy.Notify_Command, Notiflix_Forguncy",
"FourStandardStyle": "warning",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=其他登录方式!msg"
}
}
],
"ID": "2c19c711-7c3e-4cd2-a828-bd71801242e1"
}
]
}
],
"ID": "45a41780-2dc8-440d-8b9a-f6b7e56a3a23"
},
{
"CommandList": [
{
"$type": "Notiflix_Forguncy.Notify_Command, Notiflix_Forguncy",
"FourStandardStyle": "warning",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=其他登录方式!msg"
}
}
],
"ID": "28ed395d-d198-4b46-b545-7cc0b86473ae"
}
]
}
],
"ID": "b666f36f-8622-4be8-923c-f521121ff0d1"
},
{
"CommandList": [
{
"$type": "DingTalkPlugin.DingtalkLogin, DingTalkPlugin",
"client_id": "dingus6w0kbp5wgiiepu",
"redirect_uri": "https://www.yugasoft.cn/clue/dingtalkLogin"
}
],
"ID": "8b65df8c-413d-4042-a1db-872f59006ff1"
}
]
}
],
"Text": "钉钉",
"ClickMode": 1,
"TemplateKey": "_RS_Main"
}
}
},
"StyleDatas": {
@@ -211,6 +386,13 @@
"FontSize": 12.0,
"HorizontalAlignment": 1
},
{
"FontFamily": 2,
"FontSize": 12.0,
"Foreground": 0,
"HorizontalAlignment": 1,
"Underline": false
},
{
"FontFamily": 2,
"FontSize": 12.0,
@@ -250,11 +432,11 @@
"3,2": 7,
"3,3": 8,
"3,4": 7,
"3,5": 8,
"3,5": 9,
"3,6": 7,
"3,7": 8,
"3,7": 9,
"3,8": 7,
"3,9": 8
"3,9": 9
},
"SheetStyle": {
"FontFamily": 2
@@ -262,6 +444,28 @@
},
"PageInfo": {
"$type": "Forguncy.Model.Pages.NormalPage, ServerDesignerCommon",
"PageLoadedCommandList": [
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"JSText": "return isDingTalk();",
"CommandList": [
{
"$type": "Forguncy.Model.OperateCellTypeCommand, ServerDesignerCommon",
"TargetPageElement": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=其他登录方式!D4"
},
"TargetType": "Forguncy.HyperlinkCellType, ServerDesignerCommon, Version=10.0.5.0, Culture=neutral, PublicKeyToken=967100671921c115",
"MethodName": "ExecuteCommand"
}
],
"ID": "f7aa0799-a710-486f-bd85-09fe2360fcab"
}
]
}
],
"PermissionData": {
"$type": "Forguncy.RbacPermission.Core.Impl.Page.PagePermissionData, Forguncy.RbacPermission.Core",
"permissionResource": {
@@ -289,158 +493,13 @@
"DisplayName": "背景图1",
"PictureCommands": [
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"JSText": "return isDingTalk();",
"CommandList": [
{
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
"ServerCommandName": "获取CorpId",
"ResultErrorCodeTo": {
"SerializeProperty": "code"
},
"ResultMessageTo": {
"SerializeProperty": "msg"
},
"ReturnPropertiesTo": [
{
"ResultPropertyName": "CorpId",
"ResultTo": {
"SerializeProperty": "CorpId"
}
}
],
"CheckDataValidation": false
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon",
"cellLocations": [
{
"SerializeProperty": "=其他登录方式!code"
}
]
},
"value": "0"
},
"CommandList": [
{
"$type": "Notiflix_Forguncy.Loading_Command, Notiflix_Forguncy",
"Title": "加载中"
},
{
"$type": "DingTalkPlugin.RequestAuthCode, DingTalkPlugin",
"CorpId": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=其他登录方式!CorpId"
},
"Code": "授权码"
},
{
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
"ServerCommandName": "钉钉授权登录",
"Parameters": [
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "授权码",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=其他登录方式!授权码"
}
}
],
"ResultErrorCodeTo": {
"SerializeProperty": "code"
},
"ResultMessageTo": {
"SerializeProperty": "msg"
},
"RefreshAfterFinish": true,
"CheckDataValidation": true
},
{
"$type": "Notiflix_Forguncy.Loading_Command, Notiflix_Forguncy",
"FunctionName": "remove",
"Title": "加载中"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon",
"cellLocations": [
{
"SerializeProperty": "=其他登录方式!code"
}
]
},
"value": "0",
"compareType": 1
},
"CommandList": [
{
"$type": "Forguncy.Model.NavigateCommand, ServerDesignerCommon",
"PageName": "工作台首页"
}
],
"ID": "98ca1d91-b72e-4172-b029-7949bb8a43a7"
},
{
"CommandList": [
{
"$type": "Notiflix_Forguncy.Notify_Command, Notiflix_Forguncy",
"FourStandardStyle": "warning",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=其他登录方式!msg"
}
}
],
"ID": "02ba1636-1a09-495e-b3ac-e8ed81ee0e5f"
}
]
}
],
"ID": "356772ce-5911-4de9-b0e0-f848e5cf7748"
},
{
"CommandList": [
{
"$type": "Notiflix_Forguncy.Notify_Command, Notiflix_Forguncy",
"FourStandardStyle": "warning",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=其他登录方式!msg"
}
}
],
"ID": "c0af7abd-b0e6-4d07-b775-3668a4177e61"
}
]
}
],
"ID": "ad3b38df-8af5-4845-832d-1c1543a01ac1"
},
{
"CommandList": [
{
"$type": "DingTalkPlugin.DingtalkLogin, DingTalkPlugin",
"client_id": "dingus6w0kbp5wgiiepu",
"redirect_uri": "https://www.yugasoft.cn/clue/dingtalkLogin"
}
],
"ID": "4a11eeeb-7983-4595-9747-eb1616bd62be"
}
]
"$type": "Forguncy.Model.OperateCellTypeCommand, ServerDesignerCommon",
"TargetPageElement": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=其他登录方式!D4"
},
"TargetType": "Forguncy.HyperlinkCellType, ServerDesignerCommon, Version=10.0.5.0, Culture=neutral, PublicKeyToken=967100671921c115",
"MethodName": "ExecuteCommand"
}
],
"StyleInfo": {
@@ -455,4 +514,4 @@
"Size": "56,68"
}
]
}//5+wpLuKddKNhdUpNAjyMf113EQvPMPtJt3SOpn3qnwzJag5D3Lhow3wx6LvfUlV6lBSOqX/dtoE0y5iyw/WrorssDMHcMIib0OOott7KXYBxRARKHbzaKYNMSyeZz58l9H8mISkY2kf8NaEZSVJgymspfnMKkG3IiTw8rr5NRDCT9brIojwsD5KXpVz3KSM7SYH/V6vldsP3zTpjvN2ctVU3jc3CVAgYsIgptMtTQOSX+nOHcgte9sm+Dx5WxauZbE5CpVIul5WnRNA8QD09cNxDjeC+9ESlZO45KtuqtqTDArzcia5Ie7jOBPyJjnedsMvD2lb/ldf4akF6/9M70vd9Qbqpt2LdcdTK8amvkd4l2RM4vVazEaq2fvd0r1kBzQaZYcSmM1uHDkUJ0+2Z0My8ILCeLf8NyJ5nVwKDvvlgjKZzdtaoroedTR2k+25Ecfg7dZhKIlOvvTCpCZc6JqxY/HgTfczyCTmxTQ9HmJIkkOfP40DI3Aa9UI+bF4SxCctQ/ZBSHRIadOGYHGir1wawlVpHsJzsByRTgZXoXjF7HPokaxzA9+1yCK5IRriUaMJGzTJ/rEP4ffeTJSnlSglROJ9/KxcxTCcGqvTrE2fCyvB1TezKZOu3yEhZvNTlS/8JY2oJ7U6nENHQfnYJwVUD2ARYV57yKXVd8GC7vWCtxhpgoOhHynAJPLgYNZV2pz1pxd3w6/F16KCLGx6Pk3ND+sjIPIms0HVLuqg4K7jicfpHWZvuGRkepiWxrjYp3e+lPzWj/raHWV+fw4kFNA507FrqlTt8kbmu1+QZs6NKRKlx0LJwxqJbogDYi9BIJ3Lu2I5zJxmL8YqUp7PNzFCTiVSzWO1kh/wNz1qWqH9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