From 2a459dd5a428a711ec816ea270b1cc5c5f3054a3 Mon Sep 17 00:00:00 2001 From: l Date: Mon, 12 Oct 2026 15:27:41 +0800 Subject: [PATCH] =?UTF-8?q?release=20v2.0.2=EF=BC=9A=E4=BF=AE=E8=BF=90?= =?UTF-8?q?=E7=AE=97=E8=8A=82=E7=82=B9=20B=20=E5=85=A5=E5=8F=A3=E6=94=B6?= =?UTF-8?q?=E4=B8=8D=E5=88=B0=E5=80=BC=EF=BC=88=E8=BE=B9=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=20toPin=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/app/build.gradle.kts | 4 ++-- tmp-msg-pin.txt | 42 ------------------------------------ 2 files changed, 2 insertions(+), 44 deletions(-) delete mode 100644 tmp-msg-pin.txt diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index a33ac00..c986cda 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -30,8 +30,8 @@ android { * versionCode 每次发版 +1(Android 靠它判断"能不能覆盖安装", * 改小了会装不上)。 */ - versionCode = 201 - versionName = "2.0.1" + versionCode = 202 + versionName = "2.0.2" ndk { // Chaquopy 只支持这两个;Termux bootstrap 也只准备了这两份 diff --git a/tmp-msg-pin.txt b/tmp-msg-pin.txt deleted file mode 100644 index 5ef6679..0000000 --- a/tmp-msg-pin.txt +++ /dev/null @@ -1,42 +0,0 @@ -会议模式:边记录引脚(toPin/fromPin)—— 修"两条线都落在 A 上,B 连不上" - -用户:"两个节点都连到A了B连不上" - -【根因:边不记录"接到哪个引脚"】 -之前 MeetingEdge 只有 from/to(节点 id),没有引脚信息。 -一个节点有两个**同类型**入口时(运算的 A 和 B 都是 num)就分不清了 —— -画线时按类型找"第一个匹配的入口",**永远是 A**,B 永远收不到。 - -这不只是显示问题:**运算节点的 B 入口根本用不了**。 -`10 - 3` 会算成 `10 - 0 = 10`。 - -【修法:给边加 toPin / fromPin】 - -Kotlin: - · MeetingEdge 加 toPin / fromPin(默认空字符串) - · toJson / toMeetingEdge 带上 - · 连线时记下目标引脚的 key(pin.key,运算就是 "a" / "b") - · 画线时 portIn(node, kind, edge.toPin) / portOut(..., edge.fromPin) - —— 有 key 就**按 key 精确定位**,没有(老会议)才退回按类型找 - -引擎(meeting.py): - · _sanitize_edges 原样保留 toPin / fromPin - · 运算节点**按引脚取值**:A 取 toPin=='a' 的那根线、B 取 'b' 的那根; - 老会议没有 toPin 时退回"按连线顺序" - -【顺带修的一个数据入口规则】 -一个**数据入口只接一根线**(后接的替换先接的)。 -不然两条线并到一个入口,用户以为接上了 B、其实两根都进 A。 - -【实测】 -引擎:10-3=7,3-10=-7(引脚顺序真的起作用了) -设备:A 的值(10) 和 B 的值(3) **分别接到两个引脚**(截图里两条线分开), - 运行结果 **7** ✓ - -【为什么老会议不受影响】 -toPin 留空时走老规则(按类型找第一个 / 按连线顺序),老图照样跑。 - -【验证】 -- 会议引擎 40/40,Node 与 Python 16/16 逐用例一致 -- APK 构建通过、装机通过 -- 设备截图 + 运行结果 7