deeke-script-app 1.7.6 → 1.7.7

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.
Files changed (49) hide show
  1. package/@deekeScript/@type/Class/Global.d.ts +1 -1
  2. package/@deekeScript/@type/Class/Rect.d.ts +16 -16
  3. package/@deekeScript/@type/Class/UiSelector.d.ts +201 -201
  4. package/@deekeScript/@type/Class/WebSocket.d.ts +49 -49
  5. package/@deekeScript/@type/interface/Access.d.ts +141 -141
  6. package/@deekeScript/@type/interface/App.d.ts +101 -101
  7. package/@deekeScript/@type/interface/DeekeScriptJson.d.ts +13 -13
  8. package/@deekeScript/@type/interface/Device.d.ts +212 -88
  9. package/@deekeScript/@type/interface/Encrypt.d.ts +58 -58
  10. package/@deekeScript/@type/interface/Engines.d.ts +39 -39
  11. package/@deekeScript/@type/interface/Files.d.ts +283 -283
  12. package/@deekeScript/@type/interface/FloatDialogs.d.ts +47 -47
  13. package/@deekeScript/@type/interface/ForegroundServiceBridge.d.ts +31 -31
  14. package/@deekeScript/@type/interface/Hid.d.ts +342 -342
  15. package/@deekeScript/@type/interface/Http.d.ts +94 -94
  16. package/@deekeScript/@type/interface/Images.d.ts +71 -71
  17. package/@deekeScript/@type/interface/Java.d.ts +7 -7
  18. package/@deekeScript/@type/interface/KeyBoards.d.ts +54 -54
  19. package/@deekeScript/@type/interface/Log.d.ts +16 -16
  20. package/@deekeScript/@type/interface/MediaStore.d.ts +146 -146
  21. package/@deekeScript/@type/interface/NotificationBridge.d.ts +28 -28
  22. package/@deekeScript/@type/interface/SocketIOClient.d.ts +76 -76
  23. package/@deekeScript/@type/interface/Storage.d.ts +119 -119
  24. package/@deekeScript/@type/interface/System.d.ts +120 -120
  25. package/@deekeScript/@type/interface/UiObject.d.ts +202 -202
  26. package/README.md +67 -67
  27. package/deekeScript.json +670 -670
  28. package/deekeScript.schema.json +681 -681
  29. package/deekeScriptZipBuild +48 -48
  30. package/gulpfile +17 -17
  31. package/init +32 -32
  32. package/jsconfig.json +11 -11
  33. package/package.json +43 -43
  34. package/script/statistics/statistics.js +120 -120
  35. package/script/task/douyin_zan.js +37 -37
  36. package/script/task/dy.js +6 -6
  37. package/script/task/dyApp.js +6 -6
  38. package/script/task/tool.js +9 -9
  39. package/script/task.html +4 -4
  40. package/src/statistics/statistics.js +120 -120
  41. package/src/task/douyin_zan.js +89 -89
  42. package/src/task/dy.js +14 -14
  43. package/src/task/dyApp.js +7 -7
  44. package/src/task/tool.js +19 -19
  45. package/src/task.html +4 -4
  46. package/test.json +132 -132
  47. package/uglify-config.json +15 -15
  48. package/update-types.js +118 -118
  49. package/images/test/statistics.png +0 -0
@@ -1,681 +1,681 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "DeekeScript 配置文件",
4
- "description": "DeekeScript Android 项目配置文件,用于动态渲染页面",
5
- "type": "object",
6
- "required": ["name", "versionCode", "versionName", "icon", "host", "switchSetting", "groups", "bottomMenus", "settingLists", "apis"],
7
- "additionalProperties": false,
8
- "properties": {
9
- "$schema": {
10
- "type": "string",
11
- "description": "JSON Schema 引用路径"
12
- },
13
- "name": {
14
- "type": "string",
15
- "description": "App安装成功之后,在手机上的名称"
16
- },
17
- "versionCode": {
18
- "type": "string",
19
- "description": "版本号(软件自动升级凭证,当前版本号大于或者等于后台上传的版本号,则无法升级)"
20
- },
21
- "versionName": {
22
- "type": "string",
23
- "description": "版本名称,尽量和版本号统一(版本号100,则配置为1.0.0)"
24
- },
25
- "icon": {
26
- "type": "string",
27
- "description": "图标建议采用200*200像素的,清晰度大的"
28
- },
29
- "head": {
30
- "type": "string",
31
- "description": "App中用户设置页面的头像,无设置页可以不填"
32
- },
33
- "settingTopBg": {
34
- "type": "string",
35
- "description": "设置页面顶部背景图"
36
- },
37
- "debug": {
38
- "type": "boolean",
39
- "description": "默认为true(不需要激活码也可以启动脚本),如果需要激活才能使用APP,请设置为false",
40
- "default": true
41
- },
42
- "host": {
43
- "type": "string",
44
- "description": "接口请求域名",
45
- "format": "uri"
46
- },
47
- "switchSetting": {
48
- "type": "object",
49
- "description": "功能开关设置",
50
- "required": ["alipay"],
51
- "additionalProperties": false,
52
- "properties": {
53
- "alipay": {
54
- "type": "boolean",
55
- "description": "支持支付宝支付"
56
- }
57
- }
58
- },
59
- "groups": {
60
- "type": "array",
61
- "description": "主界面的功能组,每组都会包含若干个功能",
62
- "items": {
63
- "type": "object",
64
- "required": ["title", "methods"],
65
- "additionalProperties": false,
66
- "properties": {
67
- "title": {
68
- "type": "string",
69
- "description": "App主界面的功能名称"
70
- },
71
- "titleHidden": {
72
- "type": "boolean",
73
- "description": "App主界面功能组标题是否隐藏,默认不隐藏",
74
- "default": false
75
- },
76
- "hidden": {
77
- "type": "boolean",
78
- "description": "是否隐藏当前功能组,默认不隐藏",
79
- "default": false
80
- },
81
- "methods": {
82
- "type": "array",
83
- "description": "当前功能组下的功能列表",
84
- "items": {
85
- "$ref": "#/definitions/method"
86
- }
87
- }
88
- }
89
- }
90
- },
91
- "bottomMenus": {
92
- "type": "array",
93
- "description": "App中底部菜单,可以使用系统内置的,也可以自定义",
94
- "items": {
95
- "type": "object",
96
- "required": ["title", "icon", "type"],
97
- "additionalProperties": false,
98
- "properties": {
99
- "title": {
100
- "type": "string",
101
- "description": "菜单标题,可使用 {NAME} 占位符"
102
- },
103
- "icon": {
104
- "type": "string",
105
- "description": "菜单图标路径"
106
- },
107
- "banner": {
108
- "type": "string",
109
- "description": "横幅图片路径"
110
- },
111
- "type": {
112
- "type": "string",
113
- "description": "菜单类型",
114
- "enum": ["home", "speech", "setting"]
115
- }
116
- }
117
- }
118
- },
119
- "settingLists": {
120
- "type": "array",
121
- "description": "App中设置页的列表项,可以使用系统内置的,也可以自定义",
122
- "items": {
123
- "type": "object",
124
- "required": ["title", "icon", "type"],
125
- "additionalProperties": false,
126
- "properties": {
127
- "title": {
128
- "type": "string",
129
- "description": "设置项标题"
130
- },
131
- "icon": {
132
- "type": "string",
133
- "description": "设置项图标路径"
134
- },
135
- "type": {
136
- "type": "string",
137
- "description": "设置项类型",
138
- "enum": ["customerService", "notice", "settingService", "statistics", "uploadLog", "updateApp", "clear", "qiwei"]
139
- },
140
- "description": {
141
- "type": "string",
142
- "description": "设置项描述"
143
- },
144
- "file": {
145
- "type": "string",
146
- "description": "文件路径(用于 notice 类型)"
147
- },
148
- "url": {
149
- "type": "string",
150
- "description": "接口URL"
151
- },
152
- "jsFile": {
153
- "type": "string",
154
- "description": "JavaScript文件路径"
155
- },
156
- "hidden": {
157
- "type": "boolean",
158
- "description": "是否隐藏",
159
- "default": false
160
- },
161
- "settingPage": {
162
- "$ref": "#/definitions/settingPage"
163
- }
164
- }
165
- }
166
- },
167
- "apis": {
168
- "type": "array",
169
- "description": "设置相关api,比如激活码api,验证激活码是否有效api等",
170
- "items": {
171
- "type": "object",
172
- "required": ["type", "url"],
173
- "additionalProperties": false,
174
- "properties": {
175
- "type": {
176
- "type": "string",
177
- "description": "API类型",
178
- "enum": ["bind", "checkBind", "aiSpeechToken", "config", "getToken", "createOrder"]
179
- },
180
- "url": {
181
- "type": "string",
182
- "description": "API接口路径"
183
- }
184
- }
185
- }
186
- }
187
- },
188
- "definitions": {
189
- "method": {
190
- "type": "object",
191
- "required": ["title", "icon"],
192
- "additionalProperties": false,
193
- "properties": {
194
- "title": {
195
- "type": "string",
196
- "description": "App主界面的功能名称"
197
- },
198
- "icon": {
199
- "type": "string",
200
- "description": "App主界面的功能图标"
201
- },
202
- "jsFile": {
203
- "type": "string",
204
- "description": "功能实际执行的代码所在文件"
205
- },
206
- "settingPage": {
207
- "$ref": "#/definitions/settingPage"
208
- },
209
- "hidden": {
210
- "type": "boolean",
211
- "description": "属性值,当为true的时候,则界面上不再显示此功能模块",
212
- "default": false
213
- },
214
- "runType": {
215
- "type": "string",
216
- "description": "如果为floatSwitch则需要手动点击右侧悬浮窗执行",
217
- "enum": ["floatSwitch"]
218
- },
219
- "packageName": {
220
- "type": "string",
221
- "description": "包名,和runType配合使用"
222
- },
223
- "columns": {
224
- "type": "number",
225
- "description": "每行被等分为24,8则表示当前groups一行放3个功能图标"
226
- },
227
- "autoOpen": {
228
- "type": "boolean",
229
- "description": "是否自动打开界面(需要和packageName配合使用)"
230
- },
231
- "activity": {
232
- "type": "object",
233
- "description": "活动配置",
234
- "additionalProperties": false,
235
- "properties": {
236
- "notice": {
237
- "type": "string",
238
- "description": "活动提示"
239
- },
240
- "title": {
241
- "type": "string",
242
- "description": "活动标题"
243
- },
244
- "minVersion": {
245
- "type": "number",
246
- "description": "最小版本号"
247
- },
248
- "groups": {
249
- "type": "array",
250
- "description": "活动功能组",
251
- "items": {
252
- "type": "object",
253
- "additionalProperties": false,
254
- "properties": {
255
- "title": {
256
- "type": "string"
257
- },
258
- "titleHidden": {
259
- "type": "boolean"
260
- },
261
- "methods": {
262
- "type": "array",
263
- "items": {
264
- "$ref": "#/definitions/method"
265
- }
266
- }
267
- }
268
- }
269
- }
270
- }
271
- }
272
- }
273
- },
274
- "settingPage": {
275
- "type": "object",
276
- "required": ["params"],
277
- "additionalProperties": false,
278
- "properties": {
279
- "params": {
280
- "type": "array",
281
- "description": "需要用户设置的参数",
282
- "items": {
283
- "$ref": "#/definitions/param"
284
- }
285
- }
286
- }
287
- },
288
- "param": {
289
- "oneOf": [
290
- {
291
- "type": "object",
292
- "required": ["type", "title"],
293
- "additionalProperties": false,
294
- "properties": {
295
- "type": {
296
- "type": "string",
297
- "const": "notice"
298
- },
299
- "title": {
300
- "type": "string",
301
- "description": "标题"
302
- },
303
- "hidden": {
304
- "type": "boolean",
305
- "description": "是否隐藏",
306
- "default": false
307
- },
308
- "textColor": {
309
- "type": "string",
310
- "description": "文本颜色",
311
- "pattern": "^#[0-9A-Fa-f]{6}$"
312
- },
313
- "textSize": {
314
- "type": "number",
315
- "description": "文本大小"
316
- }
317
- }
318
- },
319
- {
320
- "type": "object",
321
- "required": ["type", "label", "name", "min", "max", "value"],
322
- "additionalProperties": false,
323
- "properties": {
324
- "type": {
325
- "type": "string",
326
- "const": "numberRange"
327
- },
328
- "label": {
329
- "type": "string",
330
- "description": "标签文本"
331
- },
332
- "name": {
333
- "type": "string",
334
- "description": "参数名称(用于存储和获取值)"
335
- },
336
- "min": {
337
- "type": "number",
338
- "description": "最小值"
339
- },
340
- "max": {
341
- "type": "number",
342
- "description": "最大值"
343
- },
344
- "value": {
345
- "type": "number",
346
- "description": "默认值"
347
- },
348
- "step": {
349
- "type": "number",
350
- "description": "步长"
351
- },
352
- "hidden": {
353
- "type": "boolean",
354
- "description": "是否隐藏",
355
- "default": false
356
- }
357
- }
358
- },
359
- {
360
- "type": "object",
361
- "required": ["type", "label", "name"],
362
- "additionalProperties": false,
363
- "properties": {
364
- "type": {
365
- "type": "string",
366
- "const": "textArea"
367
- },
368
- "label": {
369
- "type": "string",
370
- "description": "标签文本"
371
- },
372
- "name": {
373
- "type": "string",
374
- "description": "参数名称(用于存储和获取值)"
375
- },
376
- "value": {
377
- "type": "string",
378
- "description": "默认值"
379
- },
380
- "hint": {
381
- "type": "string",
382
- "description": "提示文本"
383
- },
384
- "notice": {
385
- "type": "string",
386
- "description": "通知文本"
387
- },
388
- "lines": {
389
- "type": "number",
390
- "description": "行数"
391
- },
392
- "hidden": {
393
- "type": "boolean",
394
- "description": "是否隐藏",
395
- "default": false
396
- }
397
- }
398
- },
399
- {
400
- "type": "object",
401
- "required": ["type", "label", "name", "children", "values"],
402
- "additionalProperties": false,
403
- "properties": {
404
- "type": {
405
- "type": "string",
406
- "const": "checkboxGroup"
407
- },
408
- "label": {
409
- "type": "string",
410
- "description": "标签文本"
411
- },
412
- "name": {
413
- "type": "string",
414
- "description": "参数名称(用于存储和获取值)"
415
- },
416
- "children": {
417
- "type": "array",
418
- "description": "子选项",
419
- "items": {
420
- "type": "string"
421
- }
422
- },
423
- "values": {
424
- "type": "array",
425
- "description": "值列表",
426
- "items": {
427
- "type": "string"
428
- }
429
- },
430
- "columnCount": {
431
- "type": "number",
432
- "description": "列数"
433
- },
434
- "hidden": {
435
- "type": "boolean",
436
- "description": "是否隐藏",
437
- "default": false
438
- }
439
- }
440
- },
441
- {
442
- "type": "object",
443
- "required": ["type", "label", "name"],
444
- "additionalProperties": false,
445
- "properties": {
446
- "type": {
447
- "type": "string",
448
- "const": "number"
449
- },
450
- "label": {
451
- "type": "string",
452
- "description": "标签文本"
453
- },
454
- "name": {
455
- "type": "string",
456
- "description": "参数名称(用于存储和获取值)"
457
- },
458
- "value": {
459
- "type": "number",
460
- "description": "默认值(数字类型)"
461
- },
462
- "hint": {
463
- "type": "string",
464
- "description": "提示文本"
465
- },
466
- "notice": {
467
- "type": "string",
468
- "description": "通知文本"
469
- },
470
- "hidden": {
471
- "type": "boolean",
472
- "description": "是否隐藏",
473
- "default": false
474
- }
475
- }
476
- },
477
- {
478
- "type": "object",
479
- "required": ["type", "label", "name"],
480
- "additionalProperties": false,
481
- "properties": {
482
- "type": {
483
- "type": "string",
484
- "const": "digit"
485
- },
486
- "label": {
487
- "type": "string",
488
- "description": "标签文本"
489
- },
490
- "name": {
491
- "type": "string",
492
- "description": "参数名称(用于存储和获取值)"
493
- },
494
- "value": {
495
- "type": "integer",
496
- "description": "默认值(整数类型)"
497
- },
498
- "hint": {
499
- "type": "string",
500
- "description": "提示文本"
501
- },
502
- "notice": {
503
- "type": "string",
504
- "description": "通知文本"
505
- },
506
- "hidden": {
507
- "type": "boolean",
508
- "description": "是否隐藏",
509
- "default": false
510
- }
511
- }
512
- },
513
- {
514
- "type": "object",
515
- "required": ["type", "label", "name", "min", "max", "value"],
516
- "additionalProperties": false,
517
- "properties": {
518
- "type": {
519
- "type": "string",
520
- "const": "digitRange"
521
- },
522
- "label": {
523
- "type": "string",
524
- "description": "标签文本"
525
- },
526
- "name": {
527
- "type": "string",
528
- "description": "参数名称(用于存储和获取值)"
529
- },
530
- "min": {
531
- "type": "integer",
532
- "description": "最小值(整数)"
533
- },
534
- "max": {
535
- "type": "integer",
536
- "description": "最大值(整数)"
537
- },
538
- "value": {
539
- "type": "integer",
540
- "description": "默认值(整数)"
541
- },
542
- "step": {
543
- "type": "integer",
544
- "description": "步长(整数)"
545
- },
546
- "hidden": {
547
- "type": "boolean",
548
- "description": "是否隐藏",
549
- "default": false
550
- }
551
- }
552
- },
553
- {
554
- "type": "object",
555
- "required": ["type", "label", "name"],
556
- "additionalProperties": false,
557
- "properties": {
558
- "type": {
559
- "type": "string",
560
- "const": "switch"
561
- },
562
- "label": {
563
- "type": "string",
564
- "description": "标签文本"
565
- },
566
- "name": {
567
- "type": "string",
568
- "description": "参数名称(用于存储和获取值)"
569
- },
570
- "value": {
571
- "type": "boolean",
572
- "description": "默认值(布尔类型)"
573
- },
574
- "hint": {
575
- "type": "string",
576
- "description": "提示文本"
577
- },
578
- "notice": {
579
- "type": "string",
580
- "description": "通知文本"
581
- },
582
- "hidden": {
583
- "type": "boolean",
584
- "description": "是否隐藏",
585
- "default": false
586
- }
587
- }
588
- },
589
- {
590
- "type": "object",
591
- "required": ["type", "label", "name"],
592
- "additionalProperties": false,
593
- "properties": {
594
- "type": {
595
- "type": "string",
596
- "const": "text"
597
- },
598
- "label": {
599
- "type": "string",
600
- "description": "标签文本"
601
- },
602
- "name": {
603
- "type": "string",
604
- "description": "参数名称(用于存储和获取值)"
605
- },
606
- "value": {
607
- "type": "string",
608
- "description": "默认值"
609
- },
610
- "hint": {
611
- "type": "string",
612
- "description": "提示文本"
613
- },
614
- "notice": {
615
- "type": "string",
616
- "description": "通知文本"
617
- },
618
- "lines": {
619
- "type": "number",
620
- "description": "行数(用于多行文本)"
621
- },
622
- "hidden": {
623
- "type": "boolean",
624
- "description": "是否隐藏",
625
- "default": false
626
- }
627
- }
628
- },
629
- {
630
- "type": "object",
631
- "required": ["type", "label", "name"],
632
- "additionalProperties": false,
633
- "properties": {
634
- "type": {
635
- "type": "string",
636
- "enum": ["radio", "select"]
637
- },
638
- "label": {
639
- "type": "string",
640
- "description": "标签文本"
641
- },
642
- "name": {
643
- "type": "string",
644
- "description": "参数名称(用于存储和获取值)"
645
- },
646
- "value": {
647
- "type": "string",
648
- "description": "默认值"
649
- },
650
- "options": {
651
- "type": "array",
652
- "description": "选项列表",
653
- "items": {
654
- "type": "object",
655
- "additionalProperties": false,
656
- "properties": {
657
- "label": {
658
- "type": "string"
659
- },
660
- "value": {
661
- "type": "string"
662
- }
663
- }
664
- }
665
- },
666
- "dataFrom": {
667
- "type": "string",
668
- "description": "数据来源(如:role)"
669
- },
670
- "hidden": {
671
- "type": "boolean",
672
- "description": "是否隐藏",
673
- "default": false
674
- }
675
- }
676
- }
677
- ]
678
- }
679
- }
680
- }
681
-
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "DeekeScript 配置文件",
4
+ "description": "DeekeScript Android 项目配置文件,用于动态渲染页面",
5
+ "type": "object",
6
+ "required": ["name", "versionCode", "versionName", "icon", "host", "switchSetting", "groups", "bottomMenus", "settingLists", "apis"],
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "$schema": {
10
+ "type": "string",
11
+ "description": "JSON Schema 引用路径"
12
+ },
13
+ "name": {
14
+ "type": "string",
15
+ "description": "App安装成功之后,在手机上的名称"
16
+ },
17
+ "versionCode": {
18
+ "type": "string",
19
+ "description": "版本号(软件自动升级凭证,当前版本号大于或者等于后台上传的版本号,则无法升级)"
20
+ },
21
+ "versionName": {
22
+ "type": "string",
23
+ "description": "版本名称,尽量和版本号统一(版本号100,则配置为1.0.0)"
24
+ },
25
+ "icon": {
26
+ "type": "string",
27
+ "description": "图标建议采用200*200像素的,清晰度大的"
28
+ },
29
+ "head": {
30
+ "type": "string",
31
+ "description": "App中用户设置页面的头像,无设置页可以不填"
32
+ },
33
+ "settingTopBg": {
34
+ "type": "string",
35
+ "description": "设置页面顶部背景图"
36
+ },
37
+ "debug": {
38
+ "type": "boolean",
39
+ "description": "默认为true(不需要激活码也可以启动脚本),如果需要激活才能使用APP,请设置为false",
40
+ "default": true
41
+ },
42
+ "host": {
43
+ "type": "string",
44
+ "description": "接口请求域名",
45
+ "format": "uri"
46
+ },
47
+ "switchSetting": {
48
+ "type": "object",
49
+ "description": "功能开关设置",
50
+ "required": ["alipay"],
51
+ "additionalProperties": false,
52
+ "properties": {
53
+ "alipay": {
54
+ "type": "boolean",
55
+ "description": "支持支付宝支付"
56
+ }
57
+ }
58
+ },
59
+ "groups": {
60
+ "type": "array",
61
+ "description": "主界面的功能组,每组都会包含若干个功能",
62
+ "items": {
63
+ "type": "object",
64
+ "required": ["title", "methods"],
65
+ "additionalProperties": false,
66
+ "properties": {
67
+ "title": {
68
+ "type": "string",
69
+ "description": "App主界面的功能名称"
70
+ },
71
+ "titleHidden": {
72
+ "type": "boolean",
73
+ "description": "App主界面功能组标题是否隐藏,默认不隐藏",
74
+ "default": false
75
+ },
76
+ "hidden": {
77
+ "type": "boolean",
78
+ "description": "是否隐藏当前功能组,默认不隐藏",
79
+ "default": false
80
+ },
81
+ "methods": {
82
+ "type": "array",
83
+ "description": "当前功能组下的功能列表",
84
+ "items": {
85
+ "$ref": "#/definitions/method"
86
+ }
87
+ }
88
+ }
89
+ }
90
+ },
91
+ "bottomMenus": {
92
+ "type": "array",
93
+ "description": "App中底部菜单,可以使用系统内置的,也可以自定义",
94
+ "items": {
95
+ "type": "object",
96
+ "required": ["title", "icon", "type"],
97
+ "additionalProperties": false,
98
+ "properties": {
99
+ "title": {
100
+ "type": "string",
101
+ "description": "菜单标题,可使用 {NAME} 占位符"
102
+ },
103
+ "icon": {
104
+ "type": "string",
105
+ "description": "菜单图标路径"
106
+ },
107
+ "banner": {
108
+ "type": "string",
109
+ "description": "横幅图片路径"
110
+ },
111
+ "type": {
112
+ "type": "string",
113
+ "description": "菜单类型",
114
+ "enum": ["home", "speech", "setting"]
115
+ }
116
+ }
117
+ }
118
+ },
119
+ "settingLists": {
120
+ "type": "array",
121
+ "description": "App中设置页的列表项,可以使用系统内置的,也可以自定义",
122
+ "items": {
123
+ "type": "object",
124
+ "required": ["title", "icon", "type"],
125
+ "additionalProperties": false,
126
+ "properties": {
127
+ "title": {
128
+ "type": "string",
129
+ "description": "设置项标题"
130
+ },
131
+ "icon": {
132
+ "type": "string",
133
+ "description": "设置项图标路径"
134
+ },
135
+ "type": {
136
+ "type": "string",
137
+ "description": "设置项类型",
138
+ "enum": ["customerService", "notice", "settingService", "statistics", "uploadLog", "updateApp", "clear", "qiwei"]
139
+ },
140
+ "description": {
141
+ "type": "string",
142
+ "description": "设置项描述"
143
+ },
144
+ "file": {
145
+ "type": "string",
146
+ "description": "文件路径(用于 notice 类型)"
147
+ },
148
+ "url": {
149
+ "type": "string",
150
+ "description": "接口URL"
151
+ },
152
+ "jsFile": {
153
+ "type": "string",
154
+ "description": "JavaScript文件路径"
155
+ },
156
+ "hidden": {
157
+ "type": "boolean",
158
+ "description": "是否隐藏",
159
+ "default": false
160
+ },
161
+ "settingPage": {
162
+ "$ref": "#/definitions/settingPage"
163
+ }
164
+ }
165
+ }
166
+ },
167
+ "apis": {
168
+ "type": "array",
169
+ "description": "设置相关api,比如激活码api,验证激活码是否有效api等",
170
+ "items": {
171
+ "type": "object",
172
+ "required": ["type", "url"],
173
+ "additionalProperties": false,
174
+ "properties": {
175
+ "type": {
176
+ "type": "string",
177
+ "description": "API类型",
178
+ "enum": ["bind", "checkBind", "aiSpeechToken", "config", "getToken", "createOrder"]
179
+ },
180
+ "url": {
181
+ "type": "string",
182
+ "description": "API接口路径"
183
+ }
184
+ }
185
+ }
186
+ }
187
+ },
188
+ "definitions": {
189
+ "method": {
190
+ "type": "object",
191
+ "required": ["title", "icon"],
192
+ "additionalProperties": false,
193
+ "properties": {
194
+ "title": {
195
+ "type": "string",
196
+ "description": "App主界面的功能名称"
197
+ },
198
+ "icon": {
199
+ "type": "string",
200
+ "description": "App主界面的功能图标"
201
+ },
202
+ "jsFile": {
203
+ "type": "string",
204
+ "description": "功能实际执行的代码所在文件"
205
+ },
206
+ "settingPage": {
207
+ "$ref": "#/definitions/settingPage"
208
+ },
209
+ "hidden": {
210
+ "type": "boolean",
211
+ "description": "属性值,当为true的时候,则界面上不再显示此功能模块",
212
+ "default": false
213
+ },
214
+ "runType": {
215
+ "type": "string",
216
+ "description": "如果为floatSwitch则需要手动点击右侧悬浮窗执行",
217
+ "enum": ["floatSwitch"]
218
+ },
219
+ "packageName": {
220
+ "type": "string",
221
+ "description": "包名,和runType配合使用"
222
+ },
223
+ "columns": {
224
+ "type": "number",
225
+ "description": "每行被等分为24,8则表示当前groups一行放3个功能图标"
226
+ },
227
+ "autoOpen": {
228
+ "type": "boolean",
229
+ "description": "是否自动打开界面(需要和packageName配合使用)"
230
+ },
231
+ "activity": {
232
+ "type": "object",
233
+ "description": "活动配置",
234
+ "additionalProperties": false,
235
+ "properties": {
236
+ "notice": {
237
+ "type": "string",
238
+ "description": "活动提示"
239
+ },
240
+ "title": {
241
+ "type": "string",
242
+ "description": "活动标题"
243
+ },
244
+ "minVersion": {
245
+ "type": "number",
246
+ "description": "最小版本号"
247
+ },
248
+ "groups": {
249
+ "type": "array",
250
+ "description": "活动功能组",
251
+ "items": {
252
+ "type": "object",
253
+ "additionalProperties": false,
254
+ "properties": {
255
+ "title": {
256
+ "type": "string"
257
+ },
258
+ "titleHidden": {
259
+ "type": "boolean"
260
+ },
261
+ "methods": {
262
+ "type": "array",
263
+ "items": {
264
+ "$ref": "#/definitions/method"
265
+ }
266
+ }
267
+ }
268
+ }
269
+ }
270
+ }
271
+ }
272
+ }
273
+ },
274
+ "settingPage": {
275
+ "type": "object",
276
+ "required": ["params"],
277
+ "additionalProperties": false,
278
+ "properties": {
279
+ "params": {
280
+ "type": "array",
281
+ "description": "需要用户设置的参数",
282
+ "items": {
283
+ "$ref": "#/definitions/param"
284
+ }
285
+ }
286
+ }
287
+ },
288
+ "param": {
289
+ "oneOf": [
290
+ {
291
+ "type": "object",
292
+ "required": ["type", "title"],
293
+ "additionalProperties": false,
294
+ "properties": {
295
+ "type": {
296
+ "type": "string",
297
+ "const": "notice"
298
+ },
299
+ "title": {
300
+ "type": "string",
301
+ "description": "标题"
302
+ },
303
+ "hidden": {
304
+ "type": "boolean",
305
+ "description": "是否隐藏",
306
+ "default": false
307
+ },
308
+ "textColor": {
309
+ "type": "string",
310
+ "description": "文本颜色",
311
+ "pattern": "^#[0-9A-Fa-f]{6}$"
312
+ },
313
+ "textSize": {
314
+ "type": "number",
315
+ "description": "文本大小"
316
+ }
317
+ }
318
+ },
319
+ {
320
+ "type": "object",
321
+ "required": ["type", "label", "name", "min", "max", "value"],
322
+ "additionalProperties": false,
323
+ "properties": {
324
+ "type": {
325
+ "type": "string",
326
+ "const": "numberRange"
327
+ },
328
+ "label": {
329
+ "type": "string",
330
+ "description": "标签文本"
331
+ },
332
+ "name": {
333
+ "type": "string",
334
+ "description": "参数名称(用于存储和获取值)"
335
+ },
336
+ "min": {
337
+ "type": "number",
338
+ "description": "最小值"
339
+ },
340
+ "max": {
341
+ "type": "number",
342
+ "description": "最大值"
343
+ },
344
+ "value": {
345
+ "type": "number",
346
+ "description": "默认值"
347
+ },
348
+ "step": {
349
+ "type": "number",
350
+ "description": "步长"
351
+ },
352
+ "hidden": {
353
+ "type": "boolean",
354
+ "description": "是否隐藏",
355
+ "default": false
356
+ }
357
+ }
358
+ },
359
+ {
360
+ "type": "object",
361
+ "required": ["type", "label", "name"],
362
+ "additionalProperties": false,
363
+ "properties": {
364
+ "type": {
365
+ "type": "string",
366
+ "const": "textArea"
367
+ },
368
+ "label": {
369
+ "type": "string",
370
+ "description": "标签文本"
371
+ },
372
+ "name": {
373
+ "type": "string",
374
+ "description": "参数名称(用于存储和获取值)"
375
+ },
376
+ "value": {
377
+ "type": "string",
378
+ "description": "默认值"
379
+ },
380
+ "hint": {
381
+ "type": "string",
382
+ "description": "提示文本"
383
+ },
384
+ "notice": {
385
+ "type": "string",
386
+ "description": "通知文本"
387
+ },
388
+ "lines": {
389
+ "type": "number",
390
+ "description": "行数"
391
+ },
392
+ "hidden": {
393
+ "type": "boolean",
394
+ "description": "是否隐藏",
395
+ "default": false
396
+ }
397
+ }
398
+ },
399
+ {
400
+ "type": "object",
401
+ "required": ["type", "label", "name", "children", "values"],
402
+ "additionalProperties": false,
403
+ "properties": {
404
+ "type": {
405
+ "type": "string",
406
+ "const": "checkboxGroup"
407
+ },
408
+ "label": {
409
+ "type": "string",
410
+ "description": "标签文本"
411
+ },
412
+ "name": {
413
+ "type": "string",
414
+ "description": "参数名称(用于存储和获取值)"
415
+ },
416
+ "children": {
417
+ "type": "array",
418
+ "description": "子选项",
419
+ "items": {
420
+ "type": "string"
421
+ }
422
+ },
423
+ "values": {
424
+ "type": "array",
425
+ "description": "值列表",
426
+ "items": {
427
+ "type": "string"
428
+ }
429
+ },
430
+ "columnCount": {
431
+ "type": "number",
432
+ "description": "列数"
433
+ },
434
+ "hidden": {
435
+ "type": "boolean",
436
+ "description": "是否隐藏",
437
+ "default": false
438
+ }
439
+ }
440
+ },
441
+ {
442
+ "type": "object",
443
+ "required": ["type", "label", "name"],
444
+ "additionalProperties": false,
445
+ "properties": {
446
+ "type": {
447
+ "type": "string",
448
+ "const": "number"
449
+ },
450
+ "label": {
451
+ "type": "string",
452
+ "description": "标签文本"
453
+ },
454
+ "name": {
455
+ "type": "string",
456
+ "description": "参数名称(用于存储和获取值)"
457
+ },
458
+ "value": {
459
+ "type": "number",
460
+ "description": "默认值(数字类型)"
461
+ },
462
+ "hint": {
463
+ "type": "string",
464
+ "description": "提示文本"
465
+ },
466
+ "notice": {
467
+ "type": "string",
468
+ "description": "通知文本"
469
+ },
470
+ "hidden": {
471
+ "type": "boolean",
472
+ "description": "是否隐藏",
473
+ "default": false
474
+ }
475
+ }
476
+ },
477
+ {
478
+ "type": "object",
479
+ "required": ["type", "label", "name"],
480
+ "additionalProperties": false,
481
+ "properties": {
482
+ "type": {
483
+ "type": "string",
484
+ "const": "digit"
485
+ },
486
+ "label": {
487
+ "type": "string",
488
+ "description": "标签文本"
489
+ },
490
+ "name": {
491
+ "type": "string",
492
+ "description": "参数名称(用于存储和获取值)"
493
+ },
494
+ "value": {
495
+ "type": "integer",
496
+ "description": "默认值(整数类型)"
497
+ },
498
+ "hint": {
499
+ "type": "string",
500
+ "description": "提示文本"
501
+ },
502
+ "notice": {
503
+ "type": "string",
504
+ "description": "通知文本"
505
+ },
506
+ "hidden": {
507
+ "type": "boolean",
508
+ "description": "是否隐藏",
509
+ "default": false
510
+ }
511
+ }
512
+ },
513
+ {
514
+ "type": "object",
515
+ "required": ["type", "label", "name", "min", "max", "value"],
516
+ "additionalProperties": false,
517
+ "properties": {
518
+ "type": {
519
+ "type": "string",
520
+ "const": "digitRange"
521
+ },
522
+ "label": {
523
+ "type": "string",
524
+ "description": "标签文本"
525
+ },
526
+ "name": {
527
+ "type": "string",
528
+ "description": "参数名称(用于存储和获取值)"
529
+ },
530
+ "min": {
531
+ "type": "integer",
532
+ "description": "最小值(整数)"
533
+ },
534
+ "max": {
535
+ "type": "integer",
536
+ "description": "最大值(整数)"
537
+ },
538
+ "value": {
539
+ "type": "integer",
540
+ "description": "默认值(整数)"
541
+ },
542
+ "step": {
543
+ "type": "integer",
544
+ "description": "步长(整数)"
545
+ },
546
+ "hidden": {
547
+ "type": "boolean",
548
+ "description": "是否隐藏",
549
+ "default": false
550
+ }
551
+ }
552
+ },
553
+ {
554
+ "type": "object",
555
+ "required": ["type", "label", "name"],
556
+ "additionalProperties": false,
557
+ "properties": {
558
+ "type": {
559
+ "type": "string",
560
+ "const": "switch"
561
+ },
562
+ "label": {
563
+ "type": "string",
564
+ "description": "标签文本"
565
+ },
566
+ "name": {
567
+ "type": "string",
568
+ "description": "参数名称(用于存储和获取值)"
569
+ },
570
+ "value": {
571
+ "type": "boolean",
572
+ "description": "默认值(布尔类型)"
573
+ },
574
+ "hint": {
575
+ "type": "string",
576
+ "description": "提示文本"
577
+ },
578
+ "notice": {
579
+ "type": "string",
580
+ "description": "通知文本"
581
+ },
582
+ "hidden": {
583
+ "type": "boolean",
584
+ "description": "是否隐藏",
585
+ "default": false
586
+ }
587
+ }
588
+ },
589
+ {
590
+ "type": "object",
591
+ "required": ["type", "label", "name"],
592
+ "additionalProperties": false,
593
+ "properties": {
594
+ "type": {
595
+ "type": "string",
596
+ "const": "text"
597
+ },
598
+ "label": {
599
+ "type": "string",
600
+ "description": "标签文本"
601
+ },
602
+ "name": {
603
+ "type": "string",
604
+ "description": "参数名称(用于存储和获取值)"
605
+ },
606
+ "value": {
607
+ "type": "string",
608
+ "description": "默认值"
609
+ },
610
+ "hint": {
611
+ "type": "string",
612
+ "description": "提示文本"
613
+ },
614
+ "notice": {
615
+ "type": "string",
616
+ "description": "通知文本"
617
+ },
618
+ "lines": {
619
+ "type": "number",
620
+ "description": "行数(用于多行文本)"
621
+ },
622
+ "hidden": {
623
+ "type": "boolean",
624
+ "description": "是否隐藏",
625
+ "default": false
626
+ }
627
+ }
628
+ },
629
+ {
630
+ "type": "object",
631
+ "required": ["type", "label", "name"],
632
+ "additionalProperties": false,
633
+ "properties": {
634
+ "type": {
635
+ "type": "string",
636
+ "enum": ["radio", "select"]
637
+ },
638
+ "label": {
639
+ "type": "string",
640
+ "description": "标签文本"
641
+ },
642
+ "name": {
643
+ "type": "string",
644
+ "description": "参数名称(用于存储和获取值)"
645
+ },
646
+ "value": {
647
+ "type": "string",
648
+ "description": "默认值"
649
+ },
650
+ "options": {
651
+ "type": "array",
652
+ "description": "选项列表",
653
+ "items": {
654
+ "type": "object",
655
+ "additionalProperties": false,
656
+ "properties": {
657
+ "label": {
658
+ "type": "string"
659
+ },
660
+ "value": {
661
+ "type": "string"
662
+ }
663
+ }
664
+ }
665
+ },
666
+ "dataFrom": {
667
+ "type": "string",
668
+ "description": "数据来源(如:role)"
669
+ },
670
+ "hidden": {
671
+ "type": "boolean",
672
+ "description": "是否隐藏",
673
+ "default": false
674
+ }
675
+ }
676
+ }
677
+ ]
678
+ }
679
+ }
680
+ }
681
+