妈蛋,总算搞定了,明天刘老板自己搞
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user