(e)
| 3540 | bt = e => `https://caiyun.feixin.10086.cn:7071/portal/auth/tyrzLogin.action?ssoToken=${encodeURIComponent(e)}`; |
| 3541 | |
| 3542 | function wt(e) { |
| 3543 | return { |
| 3544 | ssoForMCloud: async function() { |
| 3545 | const t = await e.requestJson({ |
| 3546 | url: mt, |
| 3547 | method: "post", |
| 3548 | headers: { |
| 3549 | Authorization: e.authorization, |
| 3550 | "User-Agent": ft, |
| 3551 | "Content-Type": "application/json", |
| 3552 | Accept: "*/*", |
| 3553 | Host: "orches.yun.139.com" |
| 3554 | }, |
| 3555 | data: { |
| 3556 | account: e.account, |
| 3557 | toSourceId: "001005" |
| 3558 | } |
| 3559 | }); |
| 3560 | return t?.success ? t.data.token : null |
| 3561 | }, |
| 3562 | ssoForPortal: async function() { |
| 3563 | const t = await e.requestJson({ |
| 3564 | url: vt, |
| 3565 | method: "post", |
| 3566 | headers: { |
| 3567 | Authorization: rt(e.authorization), |
| 3568 | "Content-Type": "application/json", |
| 3569 | Accept: "*/*", |
| 3570 | Host: "user-njs.yun.139.com", |
| 3571 | "User-Agent": ft |
| 3572 | }, |
| 3573 | data: { |
| 3574 | phoneNumber: e.account, |
| 3575 | toSourceId: "001003" |
| 3576 | } |
| 3577 | }); |
| 3578 | return t?.success ? t.data.token : null |
| 3579 | }, |
| 3580 | fetchJwt: async function(t) { |
| 3581 | return e.requestJson({ |
| 3582 | url: bt(t), |
| 3583 | method: "post", |
| 3584 | headers: e.jwtHeaders |
| 3585 | }) |
| 3586 | } |
| 3587 | } |
| 3588 | } |
| 3589 | const kt = "http://mnote.caiyun.feixin.10086.cn/noteServer/api/authTokenRefresh.do", |
| 3590 | _t = "http://mnote.caiyun.feixin.10086.cn/noteServer/api/syncNotebookV3.do", |
| 3591 | xt = "http://mnote.caiyun.feixin.10086.cn/noteServer/api/createNote.do"; |
no test coverage detected