妈蛋,总算搞定了,明天刘老板自己搞

This commit is contained in:
2024-04-25 01:40:31 +08:00
parent c3ef37e184
commit 98fa8fc150
5 changed files with 7155 additions and 7209 deletions

View File

@@ -3,13 +3,13 @@
* @param token 从cookie中获取,判断从[_m_h5_c,_m_h5_tk]中取值,优先判断第一个
* @param appKey 取值window.mtopConfig
* @param formData formData中的data
* @param t 时间戳
* @returns {*}
*/
export const getSign = (token, appKey, formData) => {
console.log("获取到的token:%s", token)
export const getSign = (token, appKey, formData, t = (new Date()).getTime()) => {
token = token?.split("_")[0]
const t = (new Date()).getTime();
console.log("获取sign的参数:", token, appKey, formData, t)
return {
t, sign: function (e) {
function t(e, t) {