w-web-api 1.0.53 → 1.0.55
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/README.md +1 -1
- package/dist/css/{app.fe69497a.css → app.cad4a1ca.css} +1 -1
- package/dist/index.tmp +1 -1
- package/dist/js/app-legacy.7687b23b.js +1 -0
- package/dist/js/app.7687b23b.js +1 -0
- package/dist/js/chunk-vendors-legacy.4c27cf51.js +15 -0
- package/dist/js/chunk-vendors.4c27cf51.js +15 -0
- package/dist/w-web-api.umd.js +2 -2
- package/dist/w-web-api.umd.js.map +1 -1
- package/docs/WWebApi.html +1 -1
- package/docs/index.html +1 -1
- package/docs/server_WWebApi.mjs.html +24 -34
- package/docs/src_components_Common_CheckYesNo.vue.html +1 -1
- package/logs/2026-06-19T16.log +6 -0
- package/logs/2026-06-20T11.log +4 -0
- package/logs/2026-06-20T14.log +2 -0
- package/logs/2026-06-21T20.log +1 -0
- package/logs/2026-06-21T21.log +4 -0
- package/logs/2026-06-22T07.log +12 -0
- package/logs/2026-06-22T08.log +808 -0
- package/logs/2026-06-22T09.log +104 -0
- package/logs/2026-06-22T10.log +26 -0
- package/logs/2026-06-22T11.log +860 -0
- package/logs/2026-06-22T12.log +430 -0
- package/logs/2026-06-22T23.log +1547 -0
- package/logs/2026-06-23T00.log +473 -0
- package/logs/2026-06-23T08.log +231 -0
- package/logs/2026-06-23T09.log +179 -0
- package/logs/2026-07-01T11.log +488 -0
- package/logs/2026-07-09T22.log +370 -0
- package/logs/2026-07-09T23.log +370 -0
- package/logs/2026-07-10T12.log +284 -0
- package/logs/2026-07-10T13.log +777 -0
- package/logs/2026-07-11T17.log +2 -0
- package/package.json +15 -14
- package/server/WWebApi.mjs +23 -33
- package/server/procLang.mjs +8 -88
- package/server/procProxy.mjs +89 -89
- package/server/srLog.mjs +2 -2
- package/server/staLogs/filterVpfsByWindow.mjs +27 -0
- package/server/staLogs/staEvent.mjs +4 -2
- package/server/staLogs/test_staEvent.mjs +67 -1
- package/settings.json +4 -0
- package/src/components/Layout.vue +1 -20
- package/src/components/LayoutContent.vue +0 -26
- package/src/components/LayoutContentEdit.vue +2 -2
- package/src/components/LayoutContentTest.vue +1 -19
- package/src/main.js +3 -8
- package/src/plugins/mUI.mjs +0 -35
- package/src/store/mutations.mjs +0 -14
- package/src/store/types.mjs +0 -3
- package/srv.mjs +6 -4
- package/tableTags.json +1 -1
- package/z/344/277/256/346/255/243/350/246/217/345/212/203/346/233/270.md +246 -0
- package/_gh-pages-deploy/.nojekyll +0 -0
- package/_gh-pages-deploy/WWebApi.html +0 -898
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Bold.eot +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Bold.woff +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Regular.eot +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Regular.woff +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -978
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -1049
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
- package/_gh-pages-deploy/index.html +0 -84
- package/_gh-pages-deploy/scripts/collapse.js +0 -39
- package/_gh-pages-deploy/scripts/commonNav.js +0 -28
- package/_gh-pages-deploy/scripts/linenumber.js +0 -25
- package/_gh-pages-deploy/scripts/nav.js +0 -12
- package/_gh-pages-deploy/scripts/polyfill.js +0 -4
- package/_gh-pages-deploy/scripts/prettify/Apache-License-2.0.txt +0 -202
- package/_gh-pages-deploy/scripts/prettify/lang-css.js +0 -2
- package/_gh-pages-deploy/scripts/prettify/prettify.js +0 -28
- package/_gh-pages-deploy/scripts/search.js +0 -99
- package/_gh-pages-deploy/server_WWebApi.mjs.html +0 -1012
- package/_gh-pages-deploy/src_components_Common_CheckYesNo.vue.html +0 -187
- package/_gh-pages-deploy/styles/jsdoc.css +0 -776
- package/_gh-pages-deploy/styles/prettify.css +0 -80
- package/dist/js/app-legacy.15819aa7.js +0 -1
- package/dist/js/app.15819aa7.js +0 -1
- package/dist/js/chunk-vendors-legacy.c1a32dd1.js +0 -15
- package/dist/js/chunk-vendors.c1a32dd1.js +0 -15
- package/src/plugins/mDataSelectorSchema.mjs +0 -30
- package/src/plugins/mShare.mjs +0 -44
|
@@ -1,898 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
<title>WWebApi - Documentation</title>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<script src="scripts/prettify/prettify.js"></script>
|
|
10
|
-
<script src="scripts/prettify/lang-css.js"></script>
|
|
11
|
-
<!--[if lt IE 9]>
|
|
12
|
-
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
13
|
-
<![endif]-->
|
|
14
|
-
<link type="text/css" rel="stylesheet" href="styles/prettify.css">
|
|
15
|
-
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
|
|
16
|
-
<script src="scripts/nav.js" defer></script>
|
|
17
|
-
|
|
18
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
19
|
-
</head>
|
|
20
|
-
<body>
|
|
21
|
-
|
|
22
|
-
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
|
|
23
|
-
<label for="nav-trigger" class="navicon-button x">
|
|
24
|
-
<div class="navicon"></div>
|
|
25
|
-
</label>
|
|
26
|
-
|
|
27
|
-
<label for="nav-trigger" class="overlay"></label>
|
|
28
|
-
|
|
29
|
-
<nav >
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="WWebApi.html">WWebApi</a></li></ul>
|
|
33
|
-
|
|
34
|
-
</nav>
|
|
35
|
-
|
|
36
|
-
<div id="main">
|
|
37
|
-
|
|
38
|
-
<h1 class="page-title">WWebApi</h1>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<section>
|
|
47
|
-
|
|
48
|
-
<header>
|
|
49
|
-
|
|
50
|
-
<h2>
|
|
51
|
-
|
|
52
|
-
WWebApi
|
|
53
|
-
|
|
54
|
-
</h2>
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
</header>
|
|
58
|
-
|
|
59
|
-
<article>
|
|
60
|
-
|
|
61
|
-
<div class="container-overview">
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
<h4 class="name" id="WWebApi"><span class="type-signature"></span>new WWebApi<span class="signature">(WOrm, url, db, getUserByToken, verifyClientUser, verifyAppUser, opt<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {Object}</span></h4>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
<dl class="details">
|
|
75
|
-
|
|
76
|
-
<dt class="tag-description">Description:</dt>
|
|
77
|
-
<dd class="tag-description"><ul class="dummy"><li><p>API伺服器</p></li></ul></dd>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
<dt class="tag-source">Source:</dt>
|
|
82
|
-
<dd class="tag-source"><ul class="dummy"><li>
|
|
83
|
-
<a href="server_WWebApi.mjs.html">server/WWebApi.mjs</a>, <a href="server_WWebApi.mjs.html#line136">line 136</a>
|
|
84
|
-
</li></ul></dd>
|
|
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
|
-
</dl>
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
<h5 class="h5-examples">Example</h5>
|
|
129
|
-
|
|
130
|
-
<pre class="prettyprint"><code>import WOrm from 'w-orm-lmdb/src/WOrmLmdb.mjs'
|
|
131
|
useCheckUser: false,
|
|
132
1
|
getUserById: null,
|
|
133
2
|
useExcludeWhenNotAdmin: false,
|
|
134
3
|
serverPort: 11005,
|
|
135
4
|
subfolder: '', //mapi
|
|
136
5
|
urlRedirect: 'https://www.google.com/', //本機測試時得先編譯, 再瀏覽: http://localhost:11005/
|
|
137
6
|
webName: {
|
|
138
7
|
'eng': 'API Service',
|
|
139
8
|
'cht': 'API管理系統',
|
|
140
9
|
},
|
|
141
10
|
webDescription: {
|
|
142
11
|
'eng': 'A web service package as methods to send requests to and receive responses from an API.',
|
|
143
12
|
'cht': 'A web service package as methods to send requests to and receive responses from an API.',
|
|
144
13
|
},
|
|
145
14
|
webLogo: 'data:image/svg+xml;base64,...',
|
|
146
15
|
// return {} //測試無法登入
|
|
147
16
|
if (token === '{token-for-application}') { //提供外部應用系統作為存取使用者
|
|
148
17
|
return {
|
|
149
18
|
id: 'id-for-application',
|
|
150
19
|
name: 'application',
|
|
151
20
|
email: 'application@example.com',
|
|
152
21
|
isAdmin: 'y',
|
|
153
22
|
}
|
|
154
23
|
}
|
|
155
24
|
if (token === 'sys') { //開發階段w-ui-loginout自動給予browser使用者(且位於localhost)的token為sys
|
|
156
25
|
return {
|
|
157
26
|
id: 'id-for-admin',
|
|
158
27
|
name: '測試者',
|
|
159
28
|
email: 'admin@example.com',
|
|
160
29
|
isAdmin: 'y',
|
|
161
30
|
}
|
|
162
31
|
}
|
|
163
32
|
console.log('invalid token', token)
|
|
164
33
|
console.log('於生產環境時得加入SSO等驗證token機制')
|
|
165
34
|
return {}
|
|
166
35
|
console.log('verifyClientUser/user', user)
|
|
167
36
|
// return false //測試無法登入
|
|
168
37
|
console.log('於生產環境時得加入限制瀏覽器使用者身份機制')
|
|
169
38
|
return user.isAdmin === 'y' //測試僅系統管理者使用
|
|
170
39
|
console.log('verifyAppUser/user', user)
|
|
171
40
|
// return false //測試無法登入
|
|
172
41
|
console.log('於生產環境時得加入限制應用程式使用者身份機制')
|
|
173
42
|
return user.isAdmin === 'y' //測試僅系統管理者使用
|
|
174
43
|
console.log(err)
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
<h5 class="h5-parameters">Parameters:</h5>
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
<table class="params">
|
|
183
|
-
<thead>
|
|
184
|
-
<tr>
|
|
185
|
-
|
|
186
|
-
<th>Name</th>
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
<th>Type</th>
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
<th>Attributes</th>
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
<th>Default</th>
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
<th class="last">Description</th>
|
|
200
|
-
</tr>
|
|
201
|
-
</thead>
|
|
202
|
-
|
|
203
|
-
<tbody>
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
<tr>
|
|
207
|
-
|
|
208
|
-
<td class="name"><code>WOrm</code></td>
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
<td class="type">
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
<span class="param-type">function</span>
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
</td>
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
<td class="attributes">
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
</td>
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
<td class="default">
|
|
233
|
-
|
|
234
|
-
</td>
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
<td class="description last"><p>輸入資料庫ORM函數</p></td>
|
|
238
|
-
</tr>
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
<tr>
|
|
243
|
-
|
|
244
|
-
<td class="name"><code>url</code></td>
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
<td class="type">
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
<span class="param-type">String</span>
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
</td>
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
<td class="attributes">
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
</td>
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
<td class="default">
|
|
269
|
-
|
|
270
|
-
</td>
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
<td class="description last"><p>輸入資料庫連線字串,例如w-orm-lmdb為'./db',或w-orm-mongodb為'mongodb://username:password@$127.0.0.1:27017'</p></td>
|
|
274
|
-
</tr>
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
<tr>
|
|
279
|
-
|
|
280
|
-
<td class="name"><code>db</code></td>
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
<td class="type">
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
<span class="param-type">String</span>
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
</td>
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
<td class="attributes">
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
</td>
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
<td class="default">
|
|
305
|
-
|
|
306
|
-
</td>
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
<td class="description last"><p>輸入資料庫名稱字串</p></td>
|
|
310
|
-
</tr>
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
<tr>
|
|
315
|
-
|
|
316
|
-
<td class="name"><code>getUserByToken</code></td>
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
<td class="type">
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
<span class="param-type">function</span>
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
</td>
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
<td class="attributes">
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
</td>
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
<td class="default">
|
|
341
|
-
|
|
342
|
-
</td>
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
<td class="description last"><p>輸入處理函數,函數會傳入使用者token,通過此函數處理後並回傳使用者資訊物件,並至少須提供'id'、'email'、'name'、'isAdmin'欄位,且'isAdmin'限輸入'y'或'n',且輸入'y'時會複寫權限系統該使用者之'isAdmin'欄位值</p></td>
|
|
346
|
-
</tr>
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
<tr>
|
|
351
|
-
|
|
352
|
-
<td class="name"><code>verifyClientUser</code></td>
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
<td class="type">
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
<span class="param-type">function</span>
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
</td>
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
<td class="attributes">
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
</td>
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
<td class="default">
|
|
377
|
-
|
|
378
|
-
</td>
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
<td class="description last"><p>輸入驗證瀏覽使用者身份之處理函數,函數會傳入使用者資訊物件,通過此函數識別後回傳布林值,允許使用者回傳true,反之回傳false</p></td>
|
|
382
|
-
</tr>
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
<tr>
|
|
387
|
-
|
|
388
|
-
<td class="name"><code>verifyAppUser</code></td>
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
<td class="type">
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
<span class="param-type">function</span>
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
</td>
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
<td class="attributes">
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
</td>
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
<td class="default">
|
|
413
|
-
|
|
414
|
-
</td>
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
<td class="description last"><p>輸入驗證應用程序使用者身份之處理函數,函數會傳入使用者資訊物件,通過此函數識別後回傳布林值,允許使用者回傳true,反之回傳false</p></td>
|
|
418
|
-
</tr>
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
<tr>
|
|
423
|
-
|
|
424
|
-
<td class="name"><code>opt</code></td>
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
<td class="type">
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
<span class="param-type">Object</span>
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
</td>
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
<td class="attributes">
|
|
439
|
-
|
|
440
|
-
<optional><br>
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
</td>
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
<td class="default">
|
|
451
|
-
|
|
452
|
-
<code>{}</code>
|
|
453
|
-
|
|
454
|
-
</td>
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
<td class="description last"><p>輸入設定物件,預設{}</p>
|
|
458
|
-
<h6>Properties</h6>
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
<table class="params">
|
|
462
|
-
<thead>
|
|
463
|
-
<tr>
|
|
464
|
-
|
|
465
|
-
<th>Name</th>
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
<th>Type</th>
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
<th>Attributes</th>
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
<th>Default</th>
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
<th class="last">Description</th>
|
|
479
|
-
</tr>
|
|
480
|
-
</thead>
|
|
481
|
-
|
|
482
|
-
<tbody>
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
<tr>
|
|
486
|
-
|
|
487
|
-
<td class="name"><code>serverPort</code></td>
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
<td class="type">
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
<span class="param-type">Integer</span>
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
</td>
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
<td class="attributes">
|
|
502
|
-
|
|
503
|
-
<optional><br>
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
</td>
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
<td class="default">
|
|
514
|
-
|
|
515
|
-
<code>11005</code>
|
|
516
|
-
|
|
517
|
-
</td>
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
<td class="description last"><p>輸入伺服器通訊port,預設11005</p></td>
|
|
521
|
-
</tr>
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
<tr>
|
|
526
|
-
|
|
527
|
-
<td class="name"><code>useCheckUser</code></td>
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
<td class="type">
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
<span class="param-type">Boolean</span>
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
</td>
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
<td class="attributes">
|
|
542
|
-
|
|
543
|
-
<optional><br>
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
</td>
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
<td class="default">
|
|
554
|
-
|
|
555
|
-
<code>false</code>
|
|
556
|
-
|
|
557
|
-
</td>
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
<td class="description last"><p>輸入是否檢查使用者資訊布林值,預設false</p></td>
|
|
561
|
-
</tr>
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
<tr>
|
|
566
|
-
|
|
567
|
-
<td class="name"><code>getUserById</code></td>
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
<td class="type">
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
<span class="param-type">function</span>
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
</td>
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
<td class="attributes">
|
|
582
|
-
|
|
583
|
-
<optional><br>
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
</td>
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
<td class="default">
|
|
594
|
-
|
|
595
|
-
<code>null</code>
|
|
596
|
-
|
|
597
|
-
</td>
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
<td class="description last"><p>輸入當useCheckUser=true時依照使用者ID取得使用者資訊物件函數,預設null</p></td>
|
|
601
|
-
</tr>
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
<tr>
|
|
606
|
-
|
|
607
|
-
<td class="name"><code>useExcludeWhenNotAdmin</code></td>
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
<td class="type">
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
<span class="param-type">Boolean</span>
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
</td>
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
<td class="attributes">
|
|
622
|
-
|
|
623
|
-
<optional><br>
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
</td>
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
<td class="default">
|
|
634
|
-
|
|
635
|
-
<code>false</code>
|
|
636
|
-
|
|
637
|
-
</td>
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
<td class="description last"><p>輸入使用ORM的select方法時是否自動刪除數據內isActive欄位之布林值,預設false</p></td>
|
|
641
|
-
</tr>
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
<tr>
|
|
646
|
-
|
|
647
|
-
<td class="name"><code>webName</code></td>
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
<td class="type">
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
<span class="param-type">Object</span>
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
</td>
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
<td class="attributes">
|
|
662
|
-
|
|
663
|
-
<optional><br>
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
</td>
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
<td class="default">
|
|
674
|
-
|
|
675
|
-
<code>{}</code>
|
|
676
|
-
|
|
677
|
-
</td>
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
<td class="description last"><p>輸入站台名稱物件,至少包含語系eng與cht鍵的名稱,預設{}</p></td>
|
|
681
|
-
</tr>
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
<tr>
|
|
686
|
-
|
|
687
|
-
<td class="name"><code>webDescription</code></td>
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
<td class="type">
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
<span class="param-type">Object</span>
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
</td>
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
<td class="attributes">
|
|
702
|
-
|
|
703
|
-
<optional><br>
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
</td>
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
<td class="default">
|
|
714
|
-
|
|
715
|
-
<code>{}</code>
|
|
716
|
-
|
|
717
|
-
</td>
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
<td class="description last"><p>輸入站台描述物件,至少包含語系eng與cht鍵的名稱,預設{}</p></td>
|
|
721
|
-
</tr>
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
<tr>
|
|
726
|
-
|
|
727
|
-
<td class="name"><code>webLogo</code></td>
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
<td class="type">
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
<span class="param-type">String</span>
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
</td>
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
<td class="attributes">
|
|
742
|
-
|
|
743
|
-
<optional><br>
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
</td>
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
<td class="default">
|
|
754
|
-
|
|
755
|
-
<code>''</code>
|
|
756
|
-
|
|
757
|
-
</td>
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
<td class="description last"><p>輸入站台logo字串,採base64格式,預設''</p></td>
|
|
761
|
-
</tr>
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
<tr>
|
|
766
|
-
|
|
767
|
-
<td class="name"><code>subfolder</code></td>
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
<td class="type">
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
<span class="param-type">String</span>
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
</td>
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
<td class="attributes">
|
|
782
|
-
|
|
783
|
-
<optional><br>
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
</td>
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
<td class="default">
|
|
794
|
-
|
|
795
|
-
<code>''</code>
|
|
796
|
-
|
|
797
|
-
</td>
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
<td class="description last"><p>輸入站台所在子目錄字串,提供站台位於內網採反向代理進行服務時,故需支援位於子目錄情形,預設''</p></td>
|
|
801
|
-
</tr>
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
<tr>
|
|
806
|
-
|
|
807
|
-
<td class="name"><code>urlRedirect</code></td>
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
<td class="type">
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
<span class="param-type">String</span>
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
</td>
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
<td class="attributes">
|
|
822
|
-
|
|
823
|
-
<optional><br>
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
</td>
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
<td class="default">
|
|
834
|
-
|
|
835
|
-
<code>''</code>
|
|
836
|
-
|
|
837
|
-
</td>
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
<td class="description last"><p>輸入錯誤時自動轉址字串,提供站台例如無法登入或驗證失敗時須自動轉址,預設''</p></td>
|
|
841
|
-
</tr>
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
</tbody>
|
|
845
|
-
</table>
|
|
846
|
-
|
|
847
|
-
</td>
|
|
848
|
-
</tr>
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
</tbody>
|
|
852
|
-
</table>
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
<h5 class="h5-returns">Returns:</h5>
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
<div class="param-desc">
|
|
873
|
-
<p>回傳物件,其內server為hapi伺服器實體,wsrv為w-converhp的伺服器事件物件,wsds為w-serv-webdata的伺服器事件物件,可監聽error事件</p>
|
|
874
|
-
</div>
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
<dl class="param-type">
|
|
879
|
-
<dt>
|
|
880
|
-
Type
|
|
881
|
-
</dt>
|
|
882
|
-
<dd>
|
|
883
|
-
|
|
884
|
-
<span class="param-type">Object</span>
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
</dd>
|
|
889
|
-
</dl>
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
</div>
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
</article>
|
|
919
|
-
|
|
920
|
-
</section>
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
</div>
|
|
928
|
-
|
|
929
|
-
<br class="clear">
|
|
930
|
-
|
|
931
|
-
<footer>
|
|
932
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Mon Jun 22 2026 15:42:09 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
933
|
-
</footer>
|
|
934
|
-
|
|
935
|
-
<script>prettyPrint();</script>
|
|
936
|
-
<script src="scripts/polyfill.js"></script>
|
|
937
|
-
<script src="scripts/linenumber.js"></script>
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
</body>
|
|
942
|
-
</html>
|