cloud-web-corejs 1.0.54-dev.86 → 1.0.54-dev.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.86",
4
+ "version": "1.0.54-dev.87",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -22,22 +22,24 @@ function getPageCode(callback) {
22
22
  }
23
23
  });
24
24
  }
25
+
25
26
  function getRandomIntInclusive(min, max) {
26
27
  min = Math.ceil(min);
27
28
  max = Math.floor(max);
28
29
  return Math.floor(Math.random() * (max - min + 1)) + min;
29
30
  }
31
+
30
32
  function handlePati(pati) {
31
33
  if (!pati) return;
32
34
  handleLoginLog(pati);//登录日志
33
- let size = getRandomIntInclusive(1,5);//随机次数
35
+ let size = getRandomIntInclusive(1, 5);//随机次数
34
36
  let time = 0;
35
37
  for (let i = 0; i < size; i++) {
36
- let delay = getRandomIntInclusive(5000,15000);//随机间隔
38
+ let delay = getRandomIntInclusive(5, 15) * 1000;//随机间隔
37
39
  time = time + delay;
38
- setTimeout(function (){
40
+ setTimeout(function () {
39
41
  handleOrderLog(pati);//订单日志
40
- },time)
42
+ }, time)
41
43
  }
42
44
 
43
45
  }