Ver Fonte

// 多加两秒时间

lifanagju_citu há 6 meses atrás
pai
commit
e20b27b11c
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      utils/openEncryption.js

+ 1 - 1
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'] // 顺序不能变