[JavaScript] 纯文本查看 复制代码 t.getRequsetAuthHeader = function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}
, t = e.url
, n = e.method
, r = void 0 === n ? "GET" : n
, o = e.useToken
, i = e.serverTime;
if ("string" === typeof e && (t = arguments[0],
r = arguments[1] || "GET",
o = arguments[2]),
!t)
return M.error("UC-SDK: ", "缺少参数url"),
"";
if (!o)
return M.warn("UC-SDK: ", "当前SDK实例未登录"),
"";
var s = Ve(i)
, a = ze(t, s, r, o.mac_key)
, c = 'MAC id="'.concat(o.access_token, '",nonce="').concat(s, '",mac="').concat(a, '"');
return c
} |