cortico-world-bottle 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.1.3
4
+
5
+ ### 修:手上有信稿时读不了捞来的信
6
+
7
+ 手里压着一封没寄出去的信稿时,人类点「回信」会被回一句「先把草稿处理掉」——于是那封捞来的信读不了、回不了,也就换不到寄信额度,等于卡死一整天。现在信稿只挡"写新信",不再挡读别人的信。
8
+
9
+ - 草稿分两个槽落盘:`draft`(回信稿,绑手里那一封)与 `letterDraft`(信稿)。它们会同时存在,互不覆盖。
10
+ - 只有「这一封已经有一份回信草稿」才拒绝重复起草;信稿一律不参与这个判断。
11
+ - 旧格式的 `bottle-draft.json`(`{ draft }` 包装或裸草稿)按 `kind` 自动归槽,升级不吃字。
12
+ - 页面上的寄出 / 重写按钮各自带上 `kind`,寄信稿不动回信稿,反之亦然。
13
+
14
+ ### 修:页面上一封信稿能把捞到的信整块藏掉
15
+
16
+ 页面主区原来是「有草稿就只画草稿,否则才画手里那封」——捞到信之后页面还停在信稿上,看起来就像捞取失败。
17
+
18
+ - 信稿、手里那封(含回信稿)现在是两到三块并存,谁都不遮谁。
19
+ - 回信稿存在时不再重复渲染手里那封的按钮组,避免同一个动作两个入口。
20
+
21
+ ### 测试
22
+
23
+ 186 → 193 条。新增回归:信稿挡不住读信、快照里信稿与手里那封同时可见、寄哪一份由按钮决定、页面同时渲染两块且按钮带 `kind`、旧草稿格式归槽。
24
+
3
25
  ## 0.1.2
4
26
 
5
27
  ### 署名与市场标签
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortico-world-bottle",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "description": "Coo 写一封不超过 120 字的信,寄不寄由人类在本地信箱页上决定;别人家的 Coo 捞到后看不到字,只有人类点了回信,那一封才会被读。",
6
6
  "keywords": [
package/world/page.ts CHANGED
@@ -61,7 +61,12 @@ export interface PageReceivedView {
61
61
  }
62
62
 
63
63
  export interface PageSnapshot {
64
+ /** 回信稿优先、其次信稿;卡片与旧逻辑只看这一个。 */
64
65
  draft: PageDraftView | null;
66
+ /** 绑在手里那一封上的回信草稿。 */
67
+ replyDraft?: PageDraftView | null;
68
+ /** 还没寄出去的信稿。它与手里那封、与回信稿各自独立。 */
69
+ letterDraft?: PageDraftView | null;
65
70
  held: PageHeldView | null;
66
71
  /** 我寄出去的信,新的在前;有人回了就把回信挂在下面。 */
67
72
  sent: PageSentView[];
@@ -82,8 +87,9 @@ export interface PageResult {
82
87
 
83
88
  export interface PageDeps {
84
89
  snapshot(): PageSnapshot;
85
- send(): Promise<PageResult>;
86
- rewrite(): Promise<PageResult>;
90
+ /** 寄哪一份由页面上的按钮决定:信稿或回信稿。 */
91
+ send(kind?: 'letter' | 'reply'): Promise<PageResult>;
92
+ rewrite(kind?: 'letter' | 'reply'): Promise<PageResult>;
87
93
  dismiss(): Promise<PageResult>;
88
94
  open(surface: Surface): Promise<PageResult>;
89
95
  /** 不带 letterId 清空历史;带了就只删那一条。 */
@@ -108,6 +114,13 @@ function letterIdOf(body: unknown): string | undefined {
108
114
  return typeof value === 'string' && value ? value : undefined;
109
115
  }
110
116
 
117
+ /** 页面上按的是哪一份草稿:`letter` 信稿,`reply` 回信稿,没说就交给 World 自己挑。 */
118
+ function draftKindOf(body: unknown): 'letter' | 'reply' | undefined {
119
+ if (typeof body !== 'object' || body === null) return undefined;
120
+ const value = (body as { kind?: unknown }).kind;
121
+ return value === 'letter' || value === 'reply' ? value : undefined;
122
+ }
123
+
111
124
  /** 路由是纯函数,测试不用开 socket。 */
112
125
  export async function handlePage(
113
126
  deps: PageDeps,
@@ -133,9 +146,10 @@ export async function handlePage(
133
146
 
134
147
  if (method === 'POST') {
135
148
  const surface = opts.surface ?? 'page';
149
+ const kind = draftKindOf(opts.body);
136
150
  const actions: Record<string, () => Promise<PageResult>> = {
137
- '/send': () => deps.send(),
138
- '/rewrite': () => deps.rewrite(),
151
+ '/send': () => deps.send(kind),
152
+ '/rewrite': () => deps.rewrite(kind),
139
153
  '/dismiss': () => deps.dismiss(),
140
154
  '/open': () => deps.open(surface),
141
155
  };
@@ -502,15 +516,17 @@ export function pageHtml(): string {
502
516
  list.forEach(function (item) {
503
517
  var btn = el('button', 'btn ' + (item.style || ''), item.label);
504
518
  btn.type = 'button';
505
- btn.onclick = function () { run(item.path, btn); };
519
+ btn.onclick = function () {
520
+ run(item.path, btn, item.kind ? { kind: item.kind } : undefined);
521
+ };
506
522
  box.appendChild(btn);
507
523
  });
508
524
  return box;
509
525
  }
510
526
 
511
- function renderDraft(s) {
527
+ function renderDraft(draft, s) {
512
528
  var card = el('div', 'card');
513
- var isLetter = s.draft.kind === 'letter';
529
+ var isLetter = draft.kind === 'letter';
514
530
  card.appendChild(el('div', 'eyebrow', isLetter ? '写好了 · 等你决定' : '回信写好了 · 等你决定'));
515
531
  card.appendChild(el('h2', 'title', isLetter ? '这封信还没寄出去' : '这封回信还没寄出去'));
516
532
 
@@ -521,12 +537,12 @@ export function pageHtml(): string {
521
537
  card.appendChild(detail);
522
538
  }
523
539
 
524
- card.appendChild(el('div', 'letter', s.draft.body));
525
- card.appendChild(el('div', 'meta', s.draft.chars + ' / 120 字'));
540
+ card.appendChild(el('div', 'letter', draft.body));
541
+ card.appendChild(el('div', 'meta', draft.chars + ' / 120 字'));
526
542
 
527
- if (s.draft.hints && s.draft.hints.length) {
543
+ if (draft.hints && draft.hints.length) {
528
544
  var hints = el('div', 'hints');
529
- s.draft.hints.forEach(function (hint) {
545
+ draft.hints.forEach(function (hint) {
530
546
  var row = el('div', 'hint ' + hint.kind);
531
547
  row.appendChild(el('span', 'dot'));
532
548
  row.appendChild(el('span', null, hint.text));
@@ -536,8 +552,8 @@ export function pageHtml(): string {
536
552
  }
537
553
 
538
554
  card.appendChild(buttons([
539
- { label: s.draft.hints && s.draft.hints.length ? '仍然寄出' : '寄出去', path: '/send', style: 'seal' },
540
- { label: '重写', path: '/rewrite', style: 'ghost' }
555
+ { label: draft.hints && draft.hints.length ? '仍然寄出' : '寄出去', path: '/send', style: 'seal', kind: draft.kind },
556
+ { label: '重写', path: '/rewrite', style: 'ghost', kind: draft.kind }
541
557
  ]));
542
558
  return card;
543
559
  }
@@ -586,17 +602,32 @@ export function pageHtml(): string {
586
602
  return;
587
603
  }
588
604
 
589
- if (state.draft) {
590
- stage.appendChild(renderDraft(state));
605
+ // 信稿、手里那封(含回信稿)是两个独立的东西,必须同时显示:
606
+ // 从前这里是「有草稿就只画草稿」,一封信稿就能把刚捞到的信整块藏掉。
607
+ var replyDraft = state.replyDraft !== undefined ? state.replyDraft : (state.draft && state.draft.kind === 'reply' ? state.draft : null);
608
+ var letterDraft = state.letterDraft !== undefined ? state.letterDraft : (state.draft && state.draft.kind === 'letter' ? state.draft : null);
609
+ var shown = 0;
610
+
611
+ if (letterDraft) {
612
+ stage.appendChild(renderDraft(letterDraft, state));
613
+ shown += 1;
614
+ }
615
+ if (replyDraft) {
616
+ stage.appendChild(renderDraft(replyDraft, state));
617
+ shown += 1;
591
618
  waiting = false;
592
619
  } else if (waiting) {
593
620
  var card = el('div', 'card');
594
621
  card.appendChild(el('div', 'eyebrow', '它正在读那一封'));
595
622
  card.appendChild(el('p', 'empty', '读完就会把回信放到这里。'));
596
623
  stage.appendChild(card);
597
- } else if (state.held) {
624
+ shown += 1;
625
+ }
626
+ if (!replyDraft && state.held) {
598
627
  stage.appendChild(renderHeld(state));
599
- } else {
628
+ shown += 1;
629
+ }
630
+ if (shown === 0) {
600
631
  var empty = el('div', 'card');
601
632
  var box = el('div', 'empty');
602
633
  box.appendChild(el('div', 'big', '海面很安静'));
@@ -609,7 +640,7 @@ export function pageHtml(): string {
609
640
  renderSent();
610
641
  renderReceived();
611
642
  renderFoot();
612
- document.title = state.draft ? '● 有草稿 · 漂流瓶' : '漂流瓶 · 信箱';
643
+ document.title = (letterDraft || replyDraft) ? '● 有草稿 · 漂流瓶' : '漂流瓶 · 信箱';
613
644
  }
614
645
 
615
646
  function renderTide() {
package/world/store.ts CHANGED
@@ -86,7 +86,15 @@ function writeJson(path: string, value: unknown): void {
86
86
 
87
87
  export class LocalStore {
88
88
  identity: Identity | null = null;
89
+ /**
90
+ * 回信草稿:绑在手里那一封上,`kind` 恒为 `reply`。
91
+ *
92
+ * 与 `letterDraft` 分开存,是因为两者会同时存在:手里压着一封信稿的人类,
93
+ * 照样该能去读别人捞给他的那一封,回信稿不能把信稿顶掉。
94
+ */
89
95
  draft: LocalDraft | null = null;
96
+ /** 信稿:还没寄出去的一封新信,`kind` 恒为 `letter`。 */
97
+ letterDraft: LocalDraft | null = null;
90
98
  held: LocalHeld | null = null;
91
99
  replies: LocalReply[] = [];
92
100
  sent: SentLetter[] = [];
@@ -123,20 +131,38 @@ export class LocalStore {
123
131
  const state = readJson<{ tsunamiSeen?: unknown }>(this.stateFile);
124
132
  this.tsunamiSeen = typeof state?.tsunamiSeen === 'number' ? state.tsunamiSeen : null;
125
133
 
126
- // `setDraft` 落盘的是 `{ draft }` 这个包装(`clear()` 写的也是 `{ draft: null }`),
127
- // 读的时候必须拆开;否则 `draft.kind` 恒为 undefined,草稿在每次重启后都被静默丢掉。
128
- // 同时容忍没有包装的裸草稿,免得格式换过一次就吃掉别人手里的草稿。
129
- const rawDraft = readJson<{ draft?: Partial<LocalDraft> | null } | Partial<LocalDraft>>(this.draftFile);
130
- const draft = rawDraft && typeof rawDraft === 'object' && 'draft' in rawDraft
131
- ? (rawDraft as { draft?: Partial<LocalDraft> | null }).draft ?? null
132
- : (rawDraft as Partial<LocalDraft> | null);
133
- if (draft && (draft.kind === 'letter' || draft.kind === 'reply') && typeof draft.body === 'string' && draft.body) {
134
- this.draft = {
135
- kind: draft.kind,
136
- ...(typeof draft.letterId === 'string' ? { letterId: draft.letterId } : {}),
137
- body: draft.body,
138
- at: Number(draft.at ?? 0),
134
+ // 落盘格式是 `{ draft, letterDraft }` 两个槽:`draft` 是回信草稿,`letterDraft` 是信稿。
135
+ // 分开存是因为两者会同时存在——手里有信稿的人照样能去读别人那一封,回信稿不能把信稿顶掉。
136
+ // 旧格式只有 `{ draft }`(或裸草稿),按 `kind` 归槽,免得升级后吃掉别人手里的字。
137
+ const raw = readJson<{
138
+ draft?: Partial<LocalDraft> | null;
139
+ letterDraft?: Partial<LocalDraft> | null;
140
+ } | Partial<LocalDraft>>(this.draftFile);
141
+ const wrapped = !!raw && typeof raw === 'object' && ('draft' in raw || 'letterDraft' in raw);
142
+ const legacy = wrapped ? null : (raw as Partial<LocalDraft> | null);
143
+
144
+ const readDraft = (value: Partial<LocalDraft> | null | undefined, kind: DraftKind): LocalDraft | null => {
145
+ if (!value || typeof value.body !== 'string' || !value.body) return null;
146
+ if (value.kind !== undefined && value.kind !== kind) return null;
147
+ return {
148
+ kind,
149
+ ...(kind === 'reply' && typeof value.letterId === 'string' ? { letterId: value.letterId } : {}),
150
+ body: value.body,
151
+ at: Number(value.at ?? 0),
139
152
  };
153
+ };
154
+
155
+ if (wrapped) {
156
+ const oldDraft = (raw as { draft?: Partial<LocalDraft> | null }).draft;
157
+ // 旧格式把信稿也写在 `draft` 里(只是 kind 不同),所以回信槽读不到时要再看一眼 kind。
158
+ this.draft = readDraft(oldDraft, 'reply');
159
+ this.letterDraft =
160
+ readDraft((raw as { letterDraft?: Partial<LocalDraft> | null }).letterDraft, 'letter')
161
+ ?? readDraft(oldDraft, 'letter');
162
+ } else if (legacy?.kind === 'letter') {
163
+ this.letterDraft = readDraft(legacy, 'letter');
164
+ } else {
165
+ this.draft = readDraft(legacy, 'reply');
140
166
  }
141
167
 
142
168
  const book = readJson<{
@@ -202,9 +228,20 @@ export class LocalStore {
202
228
  writeJson(this.stateFile, { tsunamiSeen: count });
203
229
  }
204
230
 
231
+ /** 写回信草稿(`kind` 一律按 reply 归槽);信稿走 `setLetterDraft`。 */
205
232
  setDraft(draft: LocalDraft | null): void {
206
- this.draft = draft;
207
- writeJson(this.draftFile, { draft });
233
+ this.draft = draft && draft.kind === 'reply' ? draft : null;
234
+ this.saveDrafts();
235
+ }
236
+
237
+ /** 写信稿;不动回信草稿。 */
238
+ setLetterDraft(draft: LocalDraft | null): void {
239
+ this.letterDraft = draft && draft.kind === 'letter' ? draft : null;
240
+ this.saveDrafts();
241
+ }
242
+
243
+ private saveDrafts(): void {
244
+ writeJson(this.draftFile, { draft: this.draft, letterDraft: this.letterDraft });
208
245
  }
209
246
 
210
247
  setHeld(held: LocalHeld | null): void {
@@ -258,8 +295,8 @@ export class LocalStore {
258
295
 
259
296
  /** WebUI 的存储页要一句实时的规模说明。 */
260
297
  describeStorage(): string {
261
- const draft = this.draft ? 1 : 0;
262
- return `${draft} 份草稿 · ${this.held ? 1 : 0} 封在读 · 寄出 ${this.sent.length} 封 · 捞到 ${this.received.length} 封 · 回信 ${this.replies.length} 封`;
298
+ const drafts = (this.draft ? 1 : 0) + (this.letterDraft ? 1 : 0);
299
+ return `${drafts} 份草稿 · ${this.held ? 1 : 0} 封在读 · 寄出 ${this.sent.length} 封 · 捞到 ${this.received.length} 封 · 回信 ${this.replies.length} 封`;
263
300
  }
264
301
 
265
302
  /** 只清历史,不动正在写的那封与手里那封。 */
@@ -285,11 +322,12 @@ export class LocalStore {
285
322
 
286
323
  clear(): string {
287
324
  this.draft = null;
325
+ this.letterDraft = null;
288
326
  this.held = null;
289
327
  this.replies = [];
290
328
  this.sent = [];
291
329
  this.received = [];
292
- writeJson(this.draftFile, { draft: null });
330
+ writeJson(this.draftFile, { draft: null, letterDraft: null });
293
331
  this.saveLetterbook();
294
332
  this.dropCardFile();
295
333
  return '本机草稿、手里那封信和信箱都清空了;身份和服务端上的记录还在。';
package/world/world.ts CHANGED
@@ -31,12 +31,13 @@ import { BOTTLE_CONFIG_GROUP, type BottleConfigSection } from './config.ts';
31
31
  import {
32
32
  startPageServer,
33
33
  type PageDeps,
34
+ type PageDraftView,
34
35
  type PageResult,
35
36
  type PageServer,
36
37
  type PageSnapshot,
37
38
  type Surface,
38
39
  } from './page.ts';
39
- import { LocalStore, type LocalHeld, type LocalReply } from './store.ts';
40
+ import { LocalStore, type DraftKind, type LocalHeld, type LocalReply } from './store.ts';
40
41
  import { bottleTools, type BottleToolDeps } from './tools.ts';
41
42
 
42
43
  const ENV_PROMPT_FILE = fileURLToPath(new URL('./ENV_PROMPT.md', import.meta.url));
@@ -492,7 +493,8 @@ export class BottleWorld implements World {
492
493
  }
493
494
 
494
495
  private showDraftCard(): void {
495
- const draft = this.store.draft;
496
+ // 刚捞到/刚写完的那件事优先:回信稿在前,信稿在后
497
+ const draft = this.store.draft ?? this.store.letterDraft;
496
498
  if (!draft || !this.page) return;
497
499
  const chars = countChars(draft.body);
498
500
  const hints = scanHints(draft.body, this.localEnv);
@@ -521,7 +523,7 @@ export class BottleWorld implements World {
521
523
  const parsed = checkBody(text);
522
524
  if (!parsed.ok) return this.bodyProblem(parsed.reason, parsed.chars);
523
525
 
524
- this.store.setDraft({ kind: 'letter', body: parsed.body, at: this.now() });
526
+ this.store.setLetterDraft({ kind: 'letter', body: parsed.body, at: this.now() });
525
527
  this.showDraftCard();
526
528
  return `草稿已放进信箱,等人类看。\n(${this.pageLine()})`;
527
529
  }
@@ -655,8 +657,8 @@ export class BottleWorld implements World {
655
657
  pageDeps(): PageDeps {
656
658
  return {
657
659
  snapshot: () => this.snapshot(),
658
- send: () => this.sendDraft(),
659
- rewrite: () => this.rewriteDraft(),
660
+ send: (kind) => this.sendDraft(kind),
661
+ rewrite: (kind) => this.rewriteDraft(kind),
660
662
  dismiss: () => this.dismissHeld(),
661
663
  open: (surface) => this.openHeld(surface),
662
664
  forget: (letterId) => this.forgetHistory(letterId),
@@ -665,10 +667,11 @@ export class BottleWorld implements World {
665
667
 
666
668
  private snapshot(): PageSnapshot {
667
669
  this.pruneExpired();
668
- const draft = this.store.draft;
670
+ const replyDraft = this.store.draft;
671
+ const letterDraft = this.store.letterDraft;
669
672
  const held = this.store.held;
670
- const snapshot: PageSnapshot = {
671
- draft: draft
673
+ const view = (draft: typeof replyDraft): PageDraftView | null =>
674
+ draft
672
675
  ? {
673
676
  kind: draft.kind,
674
677
  body: draft.body,
@@ -676,7 +679,12 @@ export class BottleWorld implements World {
676
679
  chars: countChars(draft.body),
677
680
  hints: scanHints(draft.body, this.localEnv),
678
681
  }
679
- : null,
682
+ : null;
683
+ const snapshot: PageSnapshot = {
684
+ // `draft` 保留给卡片与旧页面用:回信稿优先,其次信稿
685
+ draft: view(replyDraft) ?? view(letterDraft),
686
+ replyDraft: view(replyDraft),
687
+ letterDraft: view(letterDraft),
680
688
  held: held
681
689
  ? {
682
690
  letterId: held.letterId,
@@ -731,8 +739,13 @@ export class BottleWorld implements World {
731
739
  return { ok: true, message };
732
740
  }
733
741
 
734
- private async sendDraft(): Promise<PageResult> {
735
- const draft = this.store.draft;
742
+ /** 寄哪一份由页面上按的那个按钮决定:信稿与回信稿是两个槽,互不覆盖。 */
743
+ private async sendDraft(kind?: DraftKind): Promise<PageResult> {
744
+ const draft = kind === 'letter'
745
+ ? this.store.letterDraft
746
+ : kind === 'reply'
747
+ ? this.store.draft
748
+ : this.store.draft ?? this.store.letterDraft;
736
749
  if (!draft) return { ok: false, message: '没有要寄的草稿。' };
737
750
  if (!this.token()) await this.ensureIdentityOnce();
738
751
  if (!this.token()) return { ok: false, message: '还没连上海边。' };
@@ -742,7 +755,7 @@ export class BottleWorld implements World {
742
755
  const res = await this.authed(() => this.client.throwLetter(draft.body));
743
756
  this.quota = res.quota;
744
757
  this.online = true;
745
- this.store.setDraft(null);
758
+ this.store.setLetterDraft(null);
746
759
  this.store.addSent({ letterId: res.letterId, body: draft.body, at: this.now() });
747
760
  await this.pushInternal('bottle.sent', `人类把信寄出去了。${this.quotaLine(res.quota)}`, {});
748
761
  return { ok: true, message: `寄出去了。${this.quotaLine(res.quota)}`, close: true };
@@ -765,15 +778,18 @@ export class BottleWorld implements World {
765
778
  }
766
779
  }
767
780
 
768
- private async rewriteDraft(): Promise<PageResult> {
769
- const draft = this.store.draft;
770
- if (!draft) return { ok: false, message: '还没有草稿。' };
781
+ private async rewriteDraft(kind?: DraftKind): Promise<PageResult> {
782
+ const letterDraft = this.store.letterDraft;
783
+ const replyDraft = this.store.draft;
784
+ const isLetter = kind === 'letter' ? true : kind === 'reply' ? false : !replyDraft && !!letterDraft;
771
785
 
772
- if (draft.kind === 'letter') {
786
+ if (isLetter) {
787
+ if (!letterDraft) return { ok: false, message: '还没有信稿。' };
773
788
  await this.pushInternal('bottle.rewrite', '人类点了重写。重新写一封,不超过 120 字,直接覆盖上一稿。', {});
774
789
  return { ok: true, message: '让它重写。', close: true };
775
790
  }
776
791
 
792
+ if (!replyDraft) return { ok: false, message: '还没有回信草稿。' };
777
793
  const held = this.store.held;
778
794
  if (!held) {
779
795
  this.store.setDraft(null);
@@ -847,7 +863,8 @@ export class BottleWorld implements World {
847
863
  if (this.now() <= held.windowUntil) return;
848
864
  this.store.setHeld(null);
849
865
  this.store.setReceivedOutcome(held.letterId, 'expired');
850
- if (this.store.draft?.kind === 'reply') this.store.setDraft(null);
866
+ // 只清这一封的回信稿;信稿是另一封信的字,不能跟着消失
867
+ if (this.store.draft?.letterId === held.letterId) this.store.setDraft(null);
851
868
  this.authorized = null;
852
869
  }
853
870
 
@@ -857,7 +874,12 @@ export class BottleWorld implements World {
857
874
  if (!held) return { ok: false, message: '手里没有信。' };
858
875
  // 海边邮局不回信(§13.7):不能把一封注定石沉大海的信读给模型,也不能让人类以为它在等
859
876
  if (held.seed) return { ok: false, message: '这一封来自海边邮局,它不会回信。' };
860
- if (this.store.draft) return { ok: false, message: '先把草稿处理掉。' };
877
+ // 只有「这一封已经有一份回信草稿」才需要挡:那是重复起草。
878
+ // 信稿草稿(`letterDraft`)跟读这一封无关——手里压着一封没寄的信,不影响读别人的信。
879
+ const draft = this.store.draft;
880
+ if (draft && draft.letterId === held.letterId) {
881
+ return { ok: false, message: '这一封的回信已经写好了,在信箱里等你寄。' };
882
+ }
861
883
  this.authorize(held);
862
884
 
863
885
  if (surface === 'card' && this.page) {