fix(basic.gblib): Fix getNow return.
This commit is contained in:
parent
0e33c97851
commit
5631ce9610
1 changed files with 3 additions and 2 deletions
|
@ -266,6 +266,7 @@ export class GBVMService extends GBService {
|
||||||
let httpPs = this.httpPs;
|
let httpPs = this.httpPs;
|
||||||
let page = null;
|
let page = null;
|
||||||
let today = this.today;
|
let today = this.today;
|
||||||
|
let now = this.now;
|
||||||
|
|
||||||
for(i in this.variables) {
|
for(i in this.variables) {
|
||||||
global[i] = this.variables[i];
|
global[i] = this.variables[i];
|
||||||
|
@ -434,8 +435,8 @@ 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;
|
sandbox['today'] = await dk.getToday({ pid });
|
||||||
|
sandbox['now'] = await dk.getNow({ pid });
|
||||||
let result;
|
let result;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Reference in a new issue