deeke-script-app 1.2.4 → 1.2.6
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/.vscode/settings.json +1 -1
- package/@deekeScript/{@type → type}/Class/UiSelector.d.ts +191 -191
- package/@deekeScript/{@type → type}/interface/Storage.d.ts +110 -110
- package/README.md +35 -35
- package/deekeScript.json +597 -597
- package/deekeScriptZipBuild +48 -48
- package/images/test/statistics.png +0 -0
- package/init +32 -32
- package/jsconfig.json +10 -10
- package/obfuscator.config.json +13 -13
- package/package.json +41 -41
- package/script/common/common.js +7 -0
- package/script/index.js +1 -2
- package/script/statistics/statistics.js +121 -120
- package/script/task/dy.js +15 -55
- package/script/task/dyApp.js +6 -54
- package/script/task/dyCity.js +1 -43
- package/script/task/tool.js +14 -57
- package/script/task.html +4 -4
- package/src/common/common.js +7 -0
- package/src/statistics/statistics.js +121 -120
- package/src/task/dy.js +16 -14
- package/src/task/dyApp.js +7 -7
- package/src/task/tool.js +19 -19
- package/src/task.html +4 -4
- package/test/console.js +5 -5
- package/test/encrypt.js +3 -3
- package/test/engines.js +5 -5
- package/test/error.js +5 -0
- package/test/extension.js +26 -26
- package/test/files.js +7 -7
- package/test/http.js +4 -4
- package/test/log.js +10 -10
- package/test/package.js +3 -3
- package/test/permise.js +14 -14
- package/test/thread.js +11 -11
- package/test/timer.js +25 -25
- /package/@deekeScript/{@type → type}/Class/Rect.d.ts +0 -0
- /package/@deekeScript/{@type → type}/README.md +0 -0
- /package/@deekeScript/{@type → type}/interface/App.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/Console.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/DeekeScript.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/Device.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/Dialogs.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/Encrypt.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/Engines.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/FloatDialogs.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/Gesture.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/Http.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/Intent.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/System.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/UiObject.d.ts +0 -0
package/script/task/dyApp.js
CHANGED
|
@@ -1,55 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
_0x27e03c = _0x27e03c - 0x137;
|
|
5
|
-
let _0x45318f = _0x44aac0[_0x27e03c];
|
|
6
|
-
return _0x45318f;
|
|
7
|
-
}, a2_0x27e0(_0x4e2146, _0xa662b0);
|
|
8
|
-
}
|
|
9
|
-
const a2_0x5293d7 = a2_0x27e0;
|
|
10
|
-
function a2_0x44aa() {
|
|
11
|
-
const _0x5c1aa4 = [
|
|
12
|
-
'\x67\x65\x74\x4e\x61\x6d\x65',
|
|
13
|
-
'\x38\x31\x35\x43\x73\x58\x51\x43\x68',
|
|
14
|
-
'\x32\x39\x38\x36\x30\x31\x32\x6a\x71\x4e\x4b\x57\x4d',
|
|
15
|
-
'\x37\x44\x6a\x43\x75\x55\x4e',
|
|
16
|
-
'\x61\x70\x70\x4e\x61\x6d\x65',
|
|
17
|
-
'\x36\x6a\x47\x4d\x68\x43\x75',
|
|
18
|
-
'\x35\x34\x31\x31\x36\x31\x42\x50\x58\x70\x7a\x41',
|
|
19
|
-
'\x32\x30\x31\x31\x38\x6e\x43\x49\x6c\x5a\x68',
|
|
20
|
-
'\x31\x35\x38\x36\x36\x30\x43\x65\x59\x52\x71\x50',
|
|
21
|
-
'\x36\x34\x37\x31\x36\x32\x73\x65\x51\x76\x57\x63',
|
|
22
|
-
'\x43\x5a\x67\x59\x52',
|
|
23
|
-
'\x31\x36\x32\x30\x35\x39\x32\x57\x71\x78\x43\x53\x62',
|
|
24
|
-
'\x32\x38\x37\x32\x36\x35\x47\x46\x79\x51\x49\x4d',
|
|
25
|
-
'\x34\x34\x44\x45\x77\x56\x59\x79'
|
|
26
|
-
];
|
|
27
|
-
a2_0x44aa = function () {
|
|
28
|
-
return _0x5c1aa4;
|
|
29
|
-
};
|
|
30
|
-
return a2_0x44aa();
|
|
31
|
-
}
|
|
32
|
-
(function (_0x4ac1ce, _0x334c96) {
|
|
33
|
-
const _0x1bca68 = a2_0x27e0, _0x4e1988 = _0x4ac1ce();
|
|
34
|
-
while (!![]) {
|
|
35
|
-
try {
|
|
36
|
-
const _0x2c6c4f = -parseInt(_0x1bca68(0x13d)) / 0x1 + parseInt(_0x1bca68(0x13a)) / 0x2 * (-parseInt(_0x1bca68(0x144)) / 0x3) + parseInt(_0x1bca68(0x141)) / 0x4 + parseInt(_0x1bca68(0x140)) / 0x5 * (parseInt(_0x1bca68(0x138)) / 0x6) + parseInt(_0x1bca68(0x142)) / 0x7 * (parseInt(_0x1bca68(0x13c)) / 0x8) + -parseInt(_0x1bca68(0x137)) / 0x9 + parseInt(_0x1bca68(0x139)) / 0xa * (-parseInt(_0x1bca68(0x13e)) / 0xb);
|
|
37
|
-
if (_0x2c6c4f === _0x334c96)
|
|
38
|
-
break;
|
|
39
|
-
else
|
|
40
|
-
_0x4e1988['push'](_0x4e1988['shift']());
|
|
41
|
-
} catch (_0x13655f) {
|
|
42
|
-
_0x4e1988['push'](_0x4e1988['shift']());
|
|
43
|
-
}
|
|
1
|
+
const dyApp = {
|
|
2
|
+
getName(){
|
|
3
|
+
return "appName";
|
|
44
4
|
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const _0x4c9bfd = a2_0x5293d7, _0x1e359d = {};
|
|
49
|
-
_0x1e359d['\x43\x5a\x67\x59\x52'] = _0x4c9bfd(0x143);
|
|
50
|
-
const _0x546f2c = _0x1e359d;
|
|
51
|
-
return _0x546f2c[_0x4c9bfd(0x13b)];
|
|
52
|
-
};
|
|
53
|
-
const dyApp = a2_0x4b0c45;
|
|
54
|
-
module['\x65\x78\x70\x6f\x72\x74\x73'] = dyApp;
|
|
55
|
-
//# sourceMappingURL=dyApp.js.map
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
module.exports = dyApp;
|
package/script/task/dyCity.js
CHANGED
|
@@ -1,43 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var _0x5d03bb = a3_0x5d03();
|
|
3
|
-
return a3_0x1e84 = function (_0x1e844a, _0xa7eb7e) {
|
|
4
|
-
_0x1e844a = _0x1e844a - 0x1da;
|
|
5
|
-
var _0x41e4fd = _0x5d03bb[_0x1e844a];
|
|
6
|
-
return _0x41e4fd;
|
|
7
|
-
}, a3_0x1e84(_0x41a148, _0x169e17);
|
|
8
|
-
}
|
|
9
|
-
var a3_0x2e2965 = a3_0x1e84;
|
|
10
|
-
(function (_0x160e73, _0x2f7fd5) {
|
|
11
|
-
var _0x5a9e10 = a3_0x1e84, _0x5ab029 = _0x160e73();
|
|
12
|
-
while (!![]) {
|
|
13
|
-
try {
|
|
14
|
-
var _0x4e7240 = -parseInt(_0x5a9e10(0x1e2)) / 0x1 + parseInt(_0x5a9e10(0x1e0)) / 0x2 * (parseInt(_0x5a9e10(0x1df)) / 0x3) + -parseInt(_0x5a9e10(0x1dc)) / 0x4 + parseInt(_0x5a9e10(0x1e3)) / 0x5 * (parseInt(_0x5a9e10(0x1e4)) / 0x6) + parseInt(_0x5a9e10(0x1e1)) / 0x7 + parseInt(_0x5a9e10(0x1db)) / 0x8 + parseInt(_0x5a9e10(0x1de)) / 0x9 * (parseInt(_0x5a9e10(0x1da)) / 0xa);
|
|
15
|
-
if (_0x4e7240 === _0x2f7fd5)
|
|
16
|
-
break;
|
|
17
|
-
else
|
|
18
|
-
_0x5ab029['push'](_0x5ab029['shift']());
|
|
19
|
-
} catch (_0x4a1384) {
|
|
20
|
-
_0x5ab029['push'](_0x5ab029['shift']());
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}(a3_0x5d03, 0x3f7bb), FloatDialogs['\x73\x68\x6f\x77']('\u63d0\u793a', a3_0x2e2965(0x1dd)));
|
|
24
|
-
function a3_0x5d03() {
|
|
25
|
-
var _0x40cfb0 = [
|
|
26
|
-
'\x32\x30\x71\x61\x46\x62\x53\x4e',
|
|
27
|
-
'\x37\x37\x38\x33\x33\x36\x62\x4b\x63\x69\x51\x78',
|
|
28
|
-
'\x31\x35\x32\x32\x36\x32\x38\x49\x4f\x75\x56\x64\x43',
|
|
29
|
-
'\u8bf7\u7f16\u5199\u4e1a\u52a1\u4ee3\u7801',
|
|
30
|
-
'\x38\x37\x32\x30\x30\x31\x4d\x63\x4c\x79\x73\x52',
|
|
31
|
-
'\x31\x30\x37\x32\x32\x47\x75\x48\x75\x4b\x49',
|
|
32
|
-
'\x31\x34\x36\x53\x52\x4c\x65\x61\x6f',
|
|
33
|
-
'\x32\x32\x37\x37\x37\x30\x32\x62\x52\x4b\x6a\x6f\x65',
|
|
34
|
-
'\x34\x30\x35\x34\x32\x35\x4d\x4d\x65\x46\x6a\x59',
|
|
35
|
-
'\x33\x33\x33\x35\x70\x50\x6c\x51\x73\x6f',
|
|
36
|
-
'\x31\x35\x31\x38\x73\x4c\x4d\x4d\x52\x73'
|
|
37
|
-
];
|
|
38
|
-
a3_0x5d03 = function () {
|
|
39
|
-
return _0x40cfb0;
|
|
40
|
-
};
|
|
41
|
-
return a3_0x5d03();
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=dyCity.js.map
|
|
1
|
+
FloatDialogs.show('提示', '请编写业务代码');
|
package/script/task/tool.js
CHANGED
|
@@ -1,62 +1,19 @@
|
|
|
1
|
-
const a4_0xdca837 = a4_0x50f2;
|
|
2
|
-
function a4_0x222a() {
|
|
3
|
-
const _0x4755a7 = [
|
|
4
|
-
'\x72\x75\x6e',
|
|
5
|
-
'\x31\x30\x34\x30\x39\x33\x30\x51\x64\x63\x69\x61\x6f',
|
|
6
|
-
'\x31\x36\x34\x39\x32\x37\x63\x45\x48\x4c\x64\x70',
|
|
7
|
-
'\x49\x79\x6e\x6f\x59',
|
|
8
|
-
'\x73\x68\x6f\x77',
|
|
9
|
-
'\x32\x32\x32\x36\x38\x31\x35\x6e\x41\x79\x4b\x43\x6d',
|
|
10
|
-
'\x34\x34\x30\x36\x33\x36\x55\x52\x70\x6a\x7a\x62',
|
|
11
|
-
'\x32\x32\x32\x30\x32\x37\x33\x45\x4b\x50\x55\x6d\x50',
|
|
12
|
-
'\x31\x33\x38\x31\x38\x32\x4d\x67\x6c\x78\x4d\x5a',
|
|
13
|
-
'\u8bf7\u7f16\u5199\u4e1a\u52a1\u4ee3\u7801',
|
|
14
|
-
'\x32\x32\x38\x66\x58\x4d\x76\x53\x76',
|
|
15
|
-
'\x38\x50\x72\x4c\x7a\x54\x77',
|
|
16
|
-
'\x38\x30\x44\x6e\x6a\x66\x66\x57',
|
|
17
|
-
'\x33\x56\x50\x6c\x66\x64\x75',
|
|
18
|
-
'\x37\x34\x35\x35\x38\x38\x62\x4c\x72\x6c\x4a\x62'
|
|
19
|
-
];
|
|
20
|
-
a4_0x222a = function () {
|
|
21
|
-
return _0x4755a7;
|
|
22
|
-
};
|
|
23
|
-
return a4_0x222a();
|
|
24
|
-
}
|
|
25
|
-
function a4_0x50f2(_0x50cafc, _0x427daa) {
|
|
26
|
-
const _0x222a0c = a4_0x222a();
|
|
27
|
-
return a4_0x50f2 = function (_0x50f232, _0x4a94d4) {
|
|
28
|
-
_0x50f232 = _0x50f232 - 0xf7;
|
|
29
|
-
let _0x1d3ad2 = _0x222a0c[_0x50f232];
|
|
30
|
-
return _0x1d3ad2;
|
|
31
|
-
}, a4_0x50f2(_0x50cafc, _0x427daa);
|
|
32
|
-
}
|
|
33
|
-
(function (_0x111885, _0x496138) {
|
|
34
|
-
const _0x2055f0 = a4_0x50f2, _0x2b8583 = _0x111885();
|
|
35
|
-
while (!![]) {
|
|
36
|
-
try {
|
|
37
|
-
const _0x17ab3e = parseInt(_0x2055f0(0x103)) / 0x1 + parseInt(_0x2055f0(0xfe)) / 0x2 * (parseInt(_0x2055f0(0xfb)) / 0x3) + parseInt(_0x2055f0(0xfc)) / 0x4 + parseInt(_0x2055f0(0x102)) / 0x5 + parseInt(_0x2055f0(0xf8)) / 0x6 * (-parseInt(_0x2055f0(0xff)) / 0x7) + -parseInt(_0x2055f0(0xf9)) / 0x8 * (parseInt(_0x2055f0(0x104)) / 0x9) + parseInt(_0x2055f0(0xfa)) / 0xa * (parseInt(_0x2055f0(0x105)) / 0xb);
|
|
38
|
-
if (_0x17ab3e === _0x496138)
|
|
39
|
-
break;
|
|
40
|
-
else
|
|
41
|
-
_0x2b8583['push'](_0x2b8583['shift']());
|
|
42
|
-
} catch (_0x4153e3) {
|
|
43
|
-
_0x2b8583['push'](_0x2b8583['shift']());
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}(a4_0x222a, 0x869ae));
|
|
47
1
|
let myTask = {
|
|
48
|
-
|
|
2
|
+
intoApp() {
|
|
3
|
+
//打开并进入App
|
|
49
4
|
},
|
|
50
|
-
|
|
5
|
+
|
|
6
|
+
backApp() {
|
|
7
|
+
//退出当前App
|
|
51
8
|
},
|
|
52
|
-
|
|
9
|
+
|
|
10
|
+
task(){
|
|
11
|
+
//任务代码
|
|
53
12
|
},
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const _0x31cf09 = _0x474f8f;
|
|
58
|
-
FloatDialogs[_0x1d83e8(0x101)]('\u63d0\u793a', _0x31cf09['\x49\x79\x6e\x6f\x59']);
|
|
13
|
+
|
|
14
|
+
run() {
|
|
15
|
+
FloatDialogs.show('提示', '请编写业务代码');
|
|
59
16
|
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
myTask.run();
|
package/script/task.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<h1>功能说明</h1>
|
|
2
|
-
|
|
3
|
-
<h3>一、功能一</h3>
|
|
4
|
-
功能说明:XXXXX
|
|
1
|
+
<h1>功能说明</h1>
|
|
2
|
+
|
|
3
|
+
<h3>一、功能一</h3>
|
|
4
|
+
功能说明:XXXXX
|
|
@@ -1,120 +1,121 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let
|
|
5
|
-
let
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
let
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
//
|
|
36
|
-
let
|
|
37
|
-
let
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
let
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
let
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
let
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
'
|
|
70
|
-
'
|
|
71
|
-
'
|
|
72
|
-
'
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
'
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
'
|
|
83
|
-
'
|
|
84
|
-
'
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
'
|
|
89
|
-
'
|
|
90
|
-
'
|
|
91
|
-
'
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
'
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
'
|
|
102
|
-
'
|
|
103
|
-
'
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
'
|
|
108
|
-
'
|
|
109
|
-
'
|
|
110
|
-
'
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
'
|
|
115
|
-
'
|
|
116
|
-
'
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
1
|
+
let storage = require('../common/common.js');
|
|
2
|
+
var deekeStatistics = {
|
|
3
|
+
getDate() {
|
|
4
|
+
let d = new Date();
|
|
5
|
+
let m = d.getMonth() + 1;
|
|
6
|
+
let date = d.getDate();
|
|
7
|
+
return (m >= 10 ? m : ('0' + m)) + '.' + (date >= 10 ? date : ('0' + date));
|
|
8
|
+
},
|
|
9
|
+
getData(time) {
|
|
10
|
+
time = time || this.getDate();
|
|
11
|
+
return {
|
|
12
|
+
s_viewVideo: Storage.getInteger('s_viewVideo' + time) || 0,
|
|
13
|
+
s_viewTargetVideo: Storage.getInteger('s_viewTargetVideo' + time) || 0,
|
|
14
|
+
s_zan: Storage.getInteger('s_zan' + time) || 0,
|
|
15
|
+
s_comment: Storage.getInteger('s_comment' + time) || 0,
|
|
16
|
+
s_zanComment: Storage.getInteger('s_zanComment' + time) || 0,
|
|
17
|
+
s_privateMsg: Storage.getInteger('s_privateMsg' + time) || 0,
|
|
18
|
+
s_focus: Storage.getInteger('s_focus' + time) || 0,
|
|
19
|
+
s_viewUser: Storage.getInteger('s_viewUser' + time) || 0,
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
getWeekDate() {
|
|
23
|
+
let dates = [];
|
|
24
|
+
// 获取当前日期
|
|
25
|
+
let now = new Date();
|
|
26
|
+
// 循环获取最近 7 天的日期
|
|
27
|
+
for (let i = 1; i <= 7; i++) {
|
|
28
|
+
// 获取当前日期的时间戳
|
|
29
|
+
let timestamp = now.getTime();
|
|
30
|
+
// 计算 i 天前的时间戳
|
|
31
|
+
let dayTimestamp = 24 * 60 * 60 * 1000; // 一天的毫秒数
|
|
32
|
+
let iDayAgoTimestamp = timestamp - i * dayTimestamp;
|
|
33
|
+
// 转换为日期对象
|
|
34
|
+
let date = new Date(iDayAgoTimestamp);
|
|
35
|
+
// 格式化日期为 "yyyy-MM-dd" 的字符串并存入数组
|
|
36
|
+
//let year = date.getFullYear();
|
|
37
|
+
let month = ("0" + (date.getMonth() + 1)).slice(-2);
|
|
38
|
+
let day = ("0" + date.getDate()).slice(-2);
|
|
39
|
+
dates.push(month + "." + day);
|
|
40
|
+
}
|
|
41
|
+
return dates;
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
getWeekData() {
|
|
45
|
+
let dates = this.getWeekDate();
|
|
46
|
+
let data = [];
|
|
47
|
+
for (let i in dates) {
|
|
48
|
+
data.push([dates[i], this.getData(dates[i])]);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
//数据整理
|
|
52
|
+
let res = [];
|
|
53
|
+
let ids = ['s_viewVideo', 's_viewTargetVideo', 's_zan', 's_comment', 's_zanComment', 's_privateMsg', 's_focus', 's_viewUser'];
|
|
54
|
+
for (let i in ids) {
|
|
55
|
+
res[ids[i]] = [];
|
|
56
|
+
for (let j = data.length - 1; j >= 0; j--) {
|
|
57
|
+
res[ids[i]].push([data[j][0], data[j][1][ids[i]]]);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return res;
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
dataList() {
|
|
64
|
+
let data = this.getData(this.getDate());
|
|
65
|
+
let weekData = this.getWeekData();
|
|
66
|
+
//weight最大24
|
|
67
|
+
return [
|
|
68
|
+
{
|
|
69
|
+
'title': '今日累计视频',
|
|
70
|
+
'weight': 12,
|
|
71
|
+
'checked': true,
|
|
72
|
+
'value': data['s_viewVideo'],
|
|
73
|
+
'data': weekData['s_viewVideo'],
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
'title': '今日目标视频',
|
|
77
|
+
'weight': 12,
|
|
78
|
+
'value': data['s_viewTargetVideo'],
|
|
79
|
+
'data': weekData['s_viewTargetVideo'],
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
'title': '今日点赞',
|
|
83
|
+
'weight': 8,
|
|
84
|
+
'value': data['s_zan'],
|
|
85
|
+
'data': weekData['s_zan'],
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
'title': '今日评论',
|
|
89
|
+
'count': 1,
|
|
90
|
+
'weight': 8,
|
|
91
|
+
'value': data['s_comment'],
|
|
92
|
+
'data': weekData['s_comment'],
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
'title': '今日赞评论',
|
|
96
|
+
'weight': 8,
|
|
97
|
+
'value': data['s_zanComment'],
|
|
98
|
+
'data': weekData['s_zanComment'],
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
'title': '今日私信',
|
|
102
|
+
'weight': 8,
|
|
103
|
+
'value': data['s_privateMsg'],
|
|
104
|
+
'data': weekData['s_privateMsg'],
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
'title': '今日关注',
|
|
108
|
+
'count': 1,
|
|
109
|
+
'weight': 8,
|
|
110
|
+
'value': data['s_focus'],
|
|
111
|
+
'data': weekData['s_focus'],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
'title': '今日访问',
|
|
115
|
+
'weight': 8,
|
|
116
|
+
'value': data['s_viewUser'],
|
|
117
|
+
'data': weekData['s_viewUser'],
|
|
118
|
+
},
|
|
119
|
+
];
|
|
120
|
+
}
|
|
121
|
+
}
|
package/src/task/dy.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
let dyApp = require("./dyApp");
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
let dyApp = require("./dyApp");
|
|
2
|
+
let common = require("../common/common");
|
|
3
|
+
console.log(dyApp.getName(), common.getName());
|
|
4
|
+
|
|
5
|
+
let tag = UiSelector().id('name').findOne();
|
|
6
|
+
|
|
7
|
+
console.log(tag.click());
|
|
8
|
+
let config = {
|
|
9
|
+
toker_view_video_keywords: Storage.get('toker_view_video_keywords'),
|
|
10
|
+
toker_view_video_second: Storage.getInteger('toker_view_video_second'),
|
|
11
|
+
toker_run_sex: Storage.getArray('toker_run_sex'),
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
console.log(config, dyApp.getName());//获取json文件中的配置参数
|
|
15
|
+
|
|
16
|
+
FloatDialogs.show('提示', '请编写业务代码');
|
package/src/task/dyApp.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const dyApp = {
|
|
2
|
-
getName(){
|
|
3
|
-
return "appName";
|
|
4
|
-
}
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
module.exports = dyApp;
|
|
1
|
+
const dyApp = {
|
|
2
|
+
getName(){
|
|
3
|
+
return "appName";
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
module.exports = dyApp;
|
package/src/task/tool.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
let myTask = {
|
|
2
|
-
intoApp() {
|
|
3
|
-
//打开并进入App
|
|
4
|
-
},
|
|
5
|
-
|
|
6
|
-
backApp() {
|
|
7
|
-
//退出当前App
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
task(){
|
|
11
|
-
//任务代码
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
run() {
|
|
15
|
-
FloatDialogs.show('提示', '请编写业务代码');
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
myTask.run();
|
|
1
|
+
let myTask = {
|
|
2
|
+
intoApp() {
|
|
3
|
+
//打开并进入App
|
|
4
|
+
},
|
|
5
|
+
|
|
6
|
+
backApp() {
|
|
7
|
+
//退出当前App
|
|
8
|
+
},
|
|
9
|
+
|
|
10
|
+
task(){
|
|
11
|
+
//任务代码
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
run() {
|
|
15
|
+
FloatDialogs.show('提示', '请编写业务代码');
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
myTask.run();
|
package/src/task.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<h1>功能说明</h1>
|
|
2
|
-
|
|
3
|
-
<h3>一、功能一</h3>
|
|
4
|
-
功能说明:XXXXX
|
|
1
|
+
<h1>功能说明</h1>
|
|
2
|
+
|
|
3
|
+
<h3>一、功能一</h3>
|
|
4
|
+
功能说明:XXXXX
|
package/test/console.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
console.log(2);
|
|
2
|
-
console.error(3);
|
|
3
|
-
console.debug(4);
|
|
4
|
-
console.info(5);
|
|
5
|
-
console.warn(6);
|
|
1
|
+
console.log(2);
|
|
2
|
+
console.error(3);
|
|
3
|
+
console.debug(4);
|
|
4
|
+
console.info(5);
|
|
5
|
+
console.warn(6);
|
package/test/encrypt.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
console.log(Encrypt.md5('DeekeScript'));//输出:82e431569749c90ab31cfac2a9a3c4c3
|
|
2
|
-
console.log(Encrypt.base64Encode('DeekeScript'));//输出:82e431569749c90ab31cfac2a9a3c4c3
|
|
3
|
-
|
|
1
|
+
console.log(Encrypt.md5('DeekeScript'));//输出:82e431569749c90ab31cfac2a9a3c4c3
|
|
2
|
+
console.log(Encrypt.base64Encode('DeekeScript'));//输出:82e431569749c90ab31cfac2a9a3c4c3
|
|
3
|
+
|
|
4
4
|
console.log(Encrypt.base64Decode('RGVla2VTY3JpcHQ='));
|
package/test/engines.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
Engines.executeScriptStr("My first DeekeScript", "console.log('My first DeekeScript');");
|
|
2
|
-
|
|
3
|
-
Engines.executeScriptStr("console.log('My first DeekeScript');");
|
|
4
|
-
|
|
5
|
-
Engines.closeAll();
|
|
1
|
+
Engines.executeScriptStr("My first DeekeScript", "console.log('My first DeekeScript');");
|
|
2
|
+
|
|
3
|
+
Engines.executeScriptStr("console.log('My first DeekeScript');");
|
|
4
|
+
|
|
5
|
+
Engines.closeAll();
|
package/test/error.js
ADDED
package/test/extension.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
let javaString = new java.lang.String('Java');
|
|
2
|
-
console.log(javaString);//输出:"Java"
|
|
3
|
-
console.log(java.lang.Math.PI);//输出:"3.141592653589793"
|
|
4
|
-
console.log(new java.util.Date());//输出:"Tue Jan 14 10:52:55 CST 2025"
|
|
5
|
-
|
|
6
|
-
let f = new java.io.File("test.txt");
|
|
7
|
-
console.log(f.exists());// false
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
let Files = java.nio.file.Files;
|
|
11
|
-
let path = java.nio.file.Paths.get('example.txt');
|
|
12
|
-
console.log(Files.exists(path));//输出:false
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
let obj = {
|
|
16
|
-
run: function () {
|
|
17
|
-
console.log('线程');
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
//注意java.lang.Thread和java.lang.Runnable外层不需要引号
|
|
22
|
-
let javaImporterTest = JavaImporter(java.lang.Thread, java.lang.Runnable);
|
|
23
|
-
|
|
24
|
-
with (javaImporterTest) {
|
|
25
|
-
new Thread(new Runnable(obj)).start();
|
|
26
|
-
}
|
|
1
|
+
let javaString = new java.lang.String('Java');
|
|
2
|
+
console.log(javaString);//输出:"Java"
|
|
3
|
+
console.log(java.lang.Math.PI);//输出:"3.141592653589793"
|
|
4
|
+
console.log(new java.util.Date());//输出:"Tue Jan 14 10:52:55 CST 2025"
|
|
5
|
+
|
|
6
|
+
let f = new java.io.File("test.txt");
|
|
7
|
+
console.log(f.exists());// false
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
let Files = java.nio.file.Files;
|
|
11
|
+
let path = java.nio.file.Paths.get('example.txt');
|
|
12
|
+
console.log(Files.exists(path));//输出:false
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
let obj = {
|
|
16
|
+
run: function () {
|
|
17
|
+
console.log('线程');
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
//注意java.lang.Thread和java.lang.Runnable外层不需要引号
|
|
22
|
+
let javaImporterTest = JavaImporter(java.lang.Thread, java.lang.Runnable);
|
|
23
|
+
|
|
24
|
+
with (javaImporterTest) {
|
|
25
|
+
new Thread(new Runnable(obj)).start();
|
|
26
|
+
}
|