恢复练习手写层
const r = await mn.api('/writing/layer-restore', {
method: 'POST',
body: { requestId, runId, attemptId, confirm: true }
});
if (r.error) mn.log(r.error.code);
{
"schemaVersion": 1,
"bridgeApiVersion": "0.91",
"requestId": "9F8E7D6C-5B4A-4938-8271-6F5E4D3C2B1A",
"state": "pending",
"settled": false,
"outcome": "accepted",
"ready": false,
"canSwitch": false,
"scope": "current-window"
}手写会话
恢复练习手写层
将受控练习层恢复到当前窗口。恢复是否完成看转场结果,不要仅凭 HTTP 状态码判断。
POST
/
writing
/
layer-restore
恢复练习手写层
const r = await mn.api('/writing/layer-restore', {
method: 'POST',
body: { requestId, runId, attemptId, confirm: true }
});
if (r.error) mn.log(r.error.code);
{
"schemaVersion": 1,
"bridgeApiVersion": "0.91",
"requestId": "9F8E7D6C-5B4A-4938-8271-6F5E4D3C2B1A",
"state": "pending",
"settled": false,
"outcome": "accepted",
"ready": false,
"canSwitch": false,
"scope": "current-window"
}请求体
application/json
响应
转场结果。可能还有未列出的字段。
作答转场结果。看 settled、outcome、ready 与 canSwitch,不要只看 HTTP 状态码。