Sfoglia il codice sorgente

fix(data): stabilize legacy learning synchronization

彭峰 3 settimane fa
parent
commit
4895ec2e5d

File diff suppressed because it is too large
+ 2 - 1
scripts/deploy-admin-functions.mjs


+ 7 - 0
scripts/tests/legacy-learning-pull.test.mjs

@@ -93,3 +93,10 @@ test('旧系统学习记录只在变化时原子写入,重复轮询不制造
   assert.equal(writes[0][0].match.id, 9001);
   assert.equal(writes[0][1].match.generalId, 9001);
 });
+
+test('移动网关实时版本逻辑不引用运营网关的局部工具函数', () => {
+  const liveSource = gatewaySource.match(/const APP_LIVE_SCOPES=[\s\S]*?async function appLearningOverview/)?.[0];
+  assert.ok(liveSource, '未找到移动网关实时版本实现');
+  assert.doesNotMatch(liveSource, /\btext\(/);
+  assert.doesNotMatch(liveSource, /\bdateIso\(/);
+});

Some files were not shown because too many files changed in this diff