MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / St

Function St

daily/ydyp.js:3593–3677  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

3591 xt = "http://mnote.caiyun.feixin.10086.cn/noteServer/api/createNote.do";
3592
3593function St(e) {
3594 return {
3595 refreshNoteToken: async function() {
3596 return e.request({
3597 url: kt,
3598 method: "post",
3599 headers: pt,
3600 data: {
3601 authToken: e.authToken,
3602 userPhone: e.account
3603 },
3604 throwHttpErrors: !1
3605 })
3606 },
3607 syncNotebook: async function(t) {
3608 return e.requestJson({
3609 url: _t,
3610 method: "post",
3611 headers: t,
3612 data: {
3613 addNotebooks: [],
3614 delNotebooks: [],
3615 notebookRefs: [],
3616 updateNotebooks: []
3617 }
3618 })
3619 },
3620 createNote: async function(t, r) {
3621 const o = e.randomHex(32),
3622 n = String(Date.now());
3623 return e.request({
3624 url: xt,
3625 method: "post",
3626 headers: t,
3627 data: {
3628 archived: 0,
3629 attachmentdir: o,
3630 attachmentdirid: "",
3631 attachments: [],
3632 audioInfo: {
3633 audioDuration: 0,
3634 audioSize: 0,
3635 audioStatus: 0
3636 },
3637 contentid: "",
3638 contents: [{
3639 contentid: 0,
3640 data: '<font size="3">000000</font>',
3641 noteId: o,
3642 sortOrder: 0,
3643 type: "RICHTEXT"
3644 }],
3645 cp: "",
3646 createtime: n,
3647 description: "android",
3648 expands: {
3649 noteType: 0
3650 },

Callers 1

constructorMethod · 0.85

Calls 2

requestJsonMethod · 0.80
requestMethod · 0.45

Tested by

no test coverage detected