breakpoint

This commit is contained in:
CortexCore
2023-09-15 23:02:46 +08:00
parent f6bf8fffe3
commit eabf0c6188
43 changed files with 1701 additions and 1582 deletions

View File

@@ -1,6 +1,8 @@
#if Deprecated
using Godot;
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using BITKit;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
@@ -11,11 +13,18 @@ public partial class IDIS_RegisterDB : FormDBProvider
{
public override void Submit(string data)
{
var jObject = JsonConvert.DeserializeObject<JObject>(data);
var handle = jObject["handle"]!.ToObject<string>();
var values = jObject["values"]!.ToObject<List<IDIS_Data>>();
var references = jObject["references"]!.ToObject<List<string>>();
var createUser = jObject["createUser"]!.ToObject<string>();
if(Regex.IsMatch(handle,IDIS_Code.AddressRegex) is false)
{
throw new InvalidOperationException("标识格式不正确");
}
IDIS_Service.Singleton.Register(handle, createUser);
foreach (var x in values)
@@ -29,3 +38,4 @@ public partial class IDIS_RegisterDB : FormDBProvider
}
}
}
#endif

View File

@@ -1,3 +1,4 @@
#if Deprecated
using Godot;
using System;
using System.Collections.Generic;
@@ -104,3 +105,4 @@ public partial class IDIS_RegisterWeaver : FormWeaverResource
container.lineEdit.TextChanged += x => _references[myIndex] = x;
}
}
#endif