@uniai-fe/uds-templates 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/cctv/apis/server.ts +3 -11
package/package.json
CHANGED
package/src/cctv/apis/server.ts
CHANGED
|
@@ -224,16 +224,6 @@ export async function getServerCctvToken({
|
|
|
224
224
|
token: "",
|
|
225
225
|
};
|
|
226
226
|
|
|
227
|
-
const BODY_PRESET: API_Req_CctvRtcTokenOrigin = {
|
|
228
|
-
site: "company_id",
|
|
229
|
-
username: "harim",
|
|
230
|
-
password: "harim",
|
|
231
|
-
action: "read",
|
|
232
|
-
path: "cam_id",
|
|
233
|
-
ttl_seconds: 3600,
|
|
234
|
-
kid: "streaming-auth-1",
|
|
235
|
-
};
|
|
236
|
-
|
|
237
227
|
if (!reqBody || !reqBody.username || !reqBody.company_id || !reqBody.cam_id) {
|
|
238
228
|
nextAPILog("POST", routeUrl, query_url, { reqBody });
|
|
239
229
|
return {
|
|
@@ -257,11 +247,13 @@ export async function getServerCctvToken({
|
|
|
257
247
|
|
|
258
248
|
// 토큰 요청 payload 구성
|
|
259
249
|
const bodyData: API_Req_CctvRtcTokenOrigin = {
|
|
260
|
-
...BODY_PRESET,
|
|
261
250
|
site,
|
|
262
251
|
username,
|
|
263
252
|
password,
|
|
253
|
+
action: "read",
|
|
264
254
|
path,
|
|
255
|
+
ttl_seconds: 3600,
|
|
256
|
+
kid: "streaming-auth-1",
|
|
265
257
|
};
|
|
266
258
|
|
|
267
259
|
nextAPILog("POST", routeUrl, query_url, { bodyData });
|