fix(basic.gblib): Fix getToday return.
This commit is contained in:
parent
d08e11fef4
commit
0e33c97851
2 changed files with 3 additions and 2 deletions
|
@ -144,7 +144,7 @@
|
||||||
"prism-media": "1.3.4",
|
"prism-media": "1.3.4",
|
||||||
"public-ip": "6.0.1",
|
"public-ip": "6.0.1",
|
||||||
"punycode": "2.1.1",
|
"punycode": "2.1.1",
|
||||||
"puppeteer": "19.6.3",
|
"puppeteer": "^19.8.0",
|
||||||
"puppeteer-extra": "3.3.4",
|
"puppeteer-extra": "3.3.4",
|
||||||
"puppeteer-extra-plugin-minmax": "1.1.2",
|
"puppeteer-extra-plugin-minmax": "1.1.2",
|
||||||
"puppeteer-extra-plugin-stealth": "2.11.1",
|
"puppeteer-extra-plugin-stealth": "2.11.1",
|
||||||
|
|
|
@ -265,6 +265,7 @@ export class GBVMService extends GBService {
|
||||||
let httpUsername = this.httpUsername;
|
let httpUsername = this.httpUsername;
|
||||||
let httpPs = this.httpPs;
|
let httpPs = this.httpPs;
|
||||||
let page = null;
|
let page = null;
|
||||||
|
let today = this.today;
|
||||||
|
|
||||||
for(i in this.variables) {
|
for(i in this.variables) {
|
||||||
global[i] = this.variables[i];
|
global[i] = this.variables[i];
|
||||||
|
@ -282,7 +283,6 @@ export class GBVMService extends GBService {
|
||||||
const base64 = (v) => { return (async () => { return await dk.getCoded({v}) })(); };
|
const base64 = (v) => { return (async () => { return await dk.getCoded({v}) })(); };
|
||||||
const tolist = (v) => { return (async () => { return await dk.getToLst({v}) })(); };
|
const tolist = (v) => { return (async () => { return await dk.getToLst({v}) })(); };
|
||||||
const now = (v) => { return (async () => { return await dk.getNow({v}) })(); };
|
const now = (v) => { return (async () => { return await dk.getNow({v}) })(); };
|
||||||
const today = (v) => { return (async () => { return await dk.getToday({v}) })(); };
|
|
||||||
|
|
||||||
${code}
|
${code}
|
||||||
|
|
||||||
|
@ -434,6 +434,7 @@ export class GBVMService extends GBService {
|
||||||
sandbox['contentLocale'] = contentLocale;
|
sandbox['contentLocale'] = contentLocale;
|
||||||
sandbox['callTimeout'] = 60 * 60 * 24 * 1000;
|
sandbox['callTimeout'] = 60 * 60 * 24 * 1000;
|
||||||
sandbox['channel'] = channel;
|
sandbox['channel'] = channel;
|
||||||
|
sandbox['today'] = await dk.getToday;
|
||||||
|
|
||||||
let result;
|
let result;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue