关于javascript:请问-m-是如何生成的

2次阅读

共计 799 个字符,预计需要花费 2 分钟才能阅读完成。

{

                key: "getPlaylistData",
                value: (m = Object(l.a)(o.a.mark((function t() {
                    var n, r, c, l, f, d, v, m, h = arguments;
                    return o.a.wrap((function(t) {for (; ;)
                            switch (t.prev = t.next) {
                            case 0:
                                return l = h.length > 0 && void 0 !== h[0] ? h[0] : {},
                                f = h.length > 1 && void 0 !== h[1] ? h[1] : {},
                                d = null !== (n = null === (r = this.req) || void 0 === r || null === (c = r.headers) || void 0 === c ? void 0 : c.cookie) && void 0 !== n ? n : "",
                                v = O({device_id: e.cookie.get("QC005", d) || "",
                                    timestamp: (new Date).getTime(),
                                    app_version: "1.0.0",
                                    src: "pcw",
                                    auth_cookie: e.cookie.get("P00001", d) || "",
                                    page_num: 1,
                                    page_size: 20
                                }, l),
                                m = Object(x.c)(v, "&", "howcuteitis").toUpperCase(),
                                v.sign = m,
                                t.next = 8,
                                this.http("mesh", "/tvg/play_list_detail", O({
                                    params: v,
                                    withCredentials: !1,
                                    timeout: 1e3
                                }, f));
                            case 8:
                                return t.abrupt("return", t.sent);
                            case 9:
                            case "end":
                                return t.stop()}
                    }
                    ), t, this)
                }
                ))),
                function() {return m.apply(this, arguments)
                }
                )
            }
正文完
 0