Pārlūkot izejas kodu

// 多加两秒时间

lifanagju_citu 6 mēneši atpakaļ
vecāks
revīzija
d1314c1e8f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/utils/openEncryption.js

+ 1 - 1
src/utils/openEncryption.js

@@ -11,7 +11,7 @@ export const encryptionFun = (config) => {
   const initSign = {
     appId: 'web_client', // 与后端协商一致使用
     nonce: generateUUID(), // 前端生成唯一参数
-    timestamp: new Date().getTime() + 1000,
+    timestamp: new Date().getTime() + 2000, // 多加两秒时间
   }
   // 固定的参数初始化成字符串
   const paramsToStrSort = ['appId', 'nonce', 'timestamp'] // 顺序不能变