抖推猫签名算法

function makePayload(t) {
  var e = parseInt(new Date().getTime() / 1e3),
    n = parseInt(4294967295 * Math.random() + 1, 10),
    i = "appid="
      .concat(encodeURIComponent("euiFYYbwlv"), "&appsecret=")
      .concat(encodeURIComponent("!3UC#R@V=5'FxYWqOnO;kPjo/0O6r%"), "&n=")
      .concat(n, "&t=")
      .concat(e, "&url=")
      .concat(encodeURIComponent(t));

  console.log(i);
  return {
      n: n,
      t: e,
      url: t,
      sign: (0, r.default)(i)
  };
}

makePayload("https://v.kuaishou.com/8CU76w");

你可能感兴趣的:(抖推猫签名算法)