{ "$type": "Forguncy.SaveLoad.ServerCommandSaveData, ServerDesignerCommon", "Name": "请求令牌", "Enabled": true, "Triggers": { "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.TriggerSaveDataBase, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon", "Parameters": { "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon", "Name": "用户名", "DataValidationInfo": { "$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon", "IgnoreBlank": false }, "TestData": "cuckooent" }, { "$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon", "Name": "强制刷新", "DataValidationInfo": { "$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon" } } ] }, "InvokeTriggerTestData": { "$type": "Forguncy.SaveLoad.InvokeTriggerTestDataSaveData, ServerDesignerCommon", "UserName": "Administrator" } } ] }, "Commands": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand", "JsonString": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=全局_Gitee" }, "SampleJson": "{\r\n \"client_id\": \"c7d05fcbaf78ad728fcc0267d081ae6c50dc667667758a0933525d4cbe09ed90\",\r\n \"client_secret\": \"b4d40db2155ca530e5771b37a2fb67161d4106c64df28f32504b4e3bcfb81313\"\r\n}", "ToParameter": "Gitee配置", "BreakpointIdentity": "70bae5db-3a1f-4a56-891f-7bc76882cd31" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "当前用户", "TableValue": { "$type": "Forguncy.Model.Commands.ParameterTableValue, ServerDesignerCommon", "TableName": "用户信息视图", "TableValueType": 1, "BindingInfos": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon", "GUID": "74dd4d3e-636e-4f65-acce-33a26d73a725", "BindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "用户信息视图", "ColumnName": "GIT用户名", "GUID": "b5cb5c70-a2b4-4bd5-9119-de8f051e11e3" }, "ColumnName": "GIT用户名" }, { "$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon", "GUID": "109cbeb8-ba05-40af-b2a2-020b88398ce7", "BindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "用户信息视图", "ColumnName": "GIT密码", "GUID": "362d763e-4b69-41aa-8348-46b900979739" }, "ColumnName": "GIT密码" } ] }, "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "用户信息视图", "ColumnName": "用户名", "GUID": "2e48d49d-9f9f-4b78-864d-cef6a8cc171f" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=用户名" } }, "TopCount": "1" }, "ID": "261743f5d31b4b9bb40716e2ec8b01b8", "BreakpointIdentity": "e2481318-db1c-4c3f-8c86-898befbfd2d1" }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "Condition": { "$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess", "SubConditions": { "$type": "System.Collections.Generic.List`1[[ForguncyDataAccess.ISqlCondition, ForguncyDataAccess]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=当前用户.GIT用户名" } }, "value": "%Null%", "compareType": 1 }, { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=当前用户.GIT密码" } }, "value": "%Null%", "compareType": 1 } ] } }, "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "Condition": { "$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess", "SubConditions": { "$type": "System.Collections.Generic.List`1[[ForguncyDataAccess.ISqlCondition, ForguncyDataAccess]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=Gitee配置.client_id" } }, "value": "%Null%", "compareType": 1 }, { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=Gitee配置.client_secret" } }, "value": "%Null%", "compareType": 1 } ] } }, "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "CacheOperationCommand.CacheGetCommand, CacheOperationCommand", "CacheKeyStr": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=当前用户.GIT用户名&\"_\"&\"_Gitee_access_token\"" }, "ParamName": "获取缓存TOKEN", "BreakpointIdentity": "fc2b6f25-e6ec-4cc8-a572-d1ef215c0b77" }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "Condition": { "$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess", "SubConditions": { "$type": "System.Collections.Generic.List`1[[ForguncyDataAccess.ISqlCondition, ForguncyDataAccess]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=获取缓存TOKEN" } }, "value": "%Null%", "compareType": 1 }, { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=强制刷新" } }, "value": "1", "compareType": 1 } ] } }, "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "获取缓存TOKOEN成功", "CustomReturns": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.CustomReturns, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon", "ReturnPropertyName": "最新令牌", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=获取缓存TOKEN" } } ] }, "BreakpointIdentity": "22d1abc4-c585-480e-a123-b9bb920e7fa7" } ] }, "ID": "bcd1ff8d-2a4c-4d98-a45f-00fc276f8f10" }, { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon", "TryCommandPart": { "$type": "Forguncy.Model.ExceptionCommandBaseNode, ServerDesignerCommon", "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "PostDataToWebApi.PostDataCommand, PostDataToWebApi", "PostData": { "$type": "PostDataToWebApi.DataItem, PostDataToWebApi", "DataItemType": 1, "Data": { "$type": "PostDataToWebApi.ObjectData, PostDataToWebApi", "Data": { "$type": "System.Collections.Generic.List`1[[PostDataToWebApi.DataItem, PostDataToWebApi]], System.Private.CoreLib", "$values": [ { "$type": "PostDataToWebApi.DataItem, PostDataToWebApi", "Name": "grant_type", "DataItemType": 0, "Data": "password" }, { "$type": "PostDataToWebApi.DataItem, PostDataToWebApi", "Name": "username", "DataItemType": 0, "Data": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=当前用户.GIT用户名" } }, { "$type": "PostDataToWebApi.DataItem, PostDataToWebApi", "Name": "password", "DataItemType": 0, "Data": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=当前用户.GIT密码" } }, { "$type": "PostDataToWebApi.DataItem, PostDataToWebApi", "Name": "client_id", "DataItemType": 0, "Data": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=Gitee配置.client_id" } }, { "$type": "PostDataToWebApi.DataItem, PostDataToWebApi", "Name": "client_secret", "DataItemType": 0, "Data": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=Gitee配置.client_secret" } }, { "$type": "PostDataToWebApi.DataItem, PostDataToWebApi", "Name": "scope", "DataItemType": 0, "Data": "user_info projects pull_requests issues notes keys hook groups gists enterprises" } ] } } }, "JsonString": "", "WebUrl": "https://gitee.com/oauth/token", "Method": "POST", "SuccessCallback": "// 请求成功返回的数据存储在“result”变量中\r\n// 请使用“result”变量来完成请求成功的回调 \r\n//console.log(result);", "ErrorCallback": "// 请求中发生的错误存储在“error”变量中\r\n// 请使用“error”变量来处理异常情况 \r\nconsole.error(error);", "NewParameter": "result", "Header": { "$type": "System.Collections.Generic.List`1[[PostDataToWebApi.RequestHeaderSaveAndLoad, PostDataToWebApi]], System.Private.CoreLib", "$values": [] }, "Timeout": 100.0, "BreakpointIdentity": "55422222-d139-4b15-8b3b-d402ebefbb82" }, { "$type": "SaveFormData.fillInJSONProperties, SaveFormData", "FullJsonString": "{\r\n \"error\": \"invalid_grant\",\r\n \"error_description\": \"授权方式无效,或者登录回调地址无效、过期或已被撤销\",\r\n \"access_token\": \"5c7c5fe2b1f0fc025c1a38006b6e95f3\",\r\n \"token_type\": \"bearer\",\r\n \"expires_in\": 86400,\r\n \"refresh_token\": \"03be42668ee199713604ff75491eeb0904a665d069de178c6c8f73c0a50a6ab6\",\r\n \"scope\": \"user_info projects pull_requests issues notes keys hook groups gists enterprises\",\r\n \"created_at\": 1718241807\r\n}", "SourceJson": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=result" }, "ResultTo": "RES", "BreakpointIdentity": "51f4a54d-e2d9-4bcd-a25b-4a6937695c7f" }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "Condition": { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=RES.error" } }, "value": "%Null%" }, "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "CacheOperationCommand.CacheAddCommand, CacheOperationCommand", "CacheKeyStr": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=当前用户.GIT用户名&\"_\"&\"_Gitee_access_token\"" }, "CacheValue": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=RES.access_token" }, "CacheSeconds": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=RES.expires_in" }, "ParamName": "缓存结果", "BreakpointIdentity": "0245f57f-67e2-4879-80de-54a33ade0747" }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "获取最新TOKEN成功", "CustomReturns": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.CustomReturns, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon", "ReturnPropertyName": "最新令牌", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=RES.access_token" } } ] }, "BreakpointIdentity": "44143c88-6ed2-45bf-994f-48b1bfc5377f" } ] }, "ID": "4ea59a8f-dc55-402e-9cd2-074a487d143e" }, { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=result.error" }, "Message": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=result.error_description" }, "CustomReturns": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.CustomReturns, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon", "ReturnPropertyName": "最新令牌" } ] }, "BreakpointIdentity": "7e908705-e1f4-4db1-9cc0-639ce147aaf8" } ] }, "ID": "40e36592-37a4-4747-bfb8-d6aece4f5218" } ] }, "BreakpointIdentity": "9ca3dc87-4c2b-4828-8081-62947bc29259" } ] } }, "CatchCommandPart": { "$type": "Forguncy.Model.CatchCommandNode, ServerDesignerCommon", "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand", "JsonString": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=ExceptionMessage" }, "SampleJson": "{\"message\":\"\"}", "ToParameter": "错误信息", "BreakpointIdentity": "aaf2dc4f-c401-4d16-8b3c-bf4edb7b975d" }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=错误信息.message" }, "CustomReturns": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.CustomReturns, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon", "ReturnPropertyName": "最新令牌" } ] }, "BreakpointIdentity": "6cbc01d8-2798-4631-831b-64e3cf3b467c" } ] } }, "BreakpointIdentity": "58500b9d-b78e-4df3-a5d4-ab357d4b6828" } ] }, "ID": "5d7eaef4-d057-4c47-a3a1-f3a79ce3a507" } ] }, "BreakpointIdentity": "2df15add-90bc-4ffb-80f1-7b2fdf69f8a3" } ] }, "ID": "059445ef-1ec8-44b0-9dd0-9a07282490ef" }, { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "未配置Git应用", "CustomReturns": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.CustomReturns, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon", "ReturnPropertyName": "最新令牌" } ] }, "BreakpointIdentity": "c38e8283-30f7-43a4-a54d-58af5cf89f29" } ] }, "ID": "9279d818-4e04-48f3-9acf-146194c47017" } ] }, "BreakpointIdentity": "7e8f7151-509c-407f-a957-723190ec7eb3" } ] }, "ID": "75637c9a-951e-40e9-9b54-6a392eff6fc6" }, { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "用户未配置Gitee登录账号", "CustomReturns": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.CustomReturns, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon", "ReturnPropertyName": "最新令牌" } ] }, "BreakpointIdentity": "35fdbe57-ad74-4c8e-8d71-ed3fa143abaa" } ] }, "ID": "7491c77a-c252-44c1-ad1f-c9f8c93f5476" } ] }, "BreakpointIdentity": "36d22dbe-5127-4e76-a1ad-9b18b7dc7e76" } ] }, "ReturnProperties": { "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon", "Name": "最新令牌" } ] } }