浏览代码

多加3秒时间

lifanagju_citu 6 月之前
父节点
当前提交
3aa0ddab2b
共有 1 个文件被更改,包括 1 次插入1 次删除
  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() + 2000, // 多加两秒时间
+    timestamp: new Date().getTime() + 3000, // 多加两秒时间
   }
   // 固定的参数初始化成字符串
   const paramsToStrSort = ['appId', 'nonce', 'timestamp'] // 顺序不能变