update CAT

This commit is contained in:
qist
2024-04-17 11:16:03 +08:00
parent 14f58c87f5
commit 4ce167269d
17 changed files with 855 additions and 369 deletions
+11 -1
View File
@@ -1,5 +1,6 @@
// LocalAddress = "http://192.168.29.156:8099"
import * as Utils from "./utils.js";
export class VodShort {
constructor() {
this.vod_id = "" //id
@@ -19,6 +20,13 @@ export class VodShort {
}
}
load_data(data) {
for (let propName in JSON.parse(this.to_dict())) {
this[propName] = data[propName];
}
}
}
export class VodDetail extends VodShort {
@@ -42,10 +50,12 @@ export class VodDetail extends VodShort {
load_dic(json_str) {
let obj = JSON.parse(json_str)
for (let propName in JSON.parse(this.to_dict())) {
for (let propName in JSON.parse(this.to_dict())) {
this[propName] = obj[propName];
}
}
}