deeke-script-app 1.7.7 → 1.7.9

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