修改debug测试推送
This commit is contained in:
@@ -19,7 +19,7 @@ export async function refresh(session: FrontendOrBackendSession) {
|
||||
const roleId = session.get('roleId')||'test';
|
||||
const sid = session.get('sid');
|
||||
|
||||
if(isDebugTime()) {
|
||||
if(!isDebugTime()) {
|
||||
sendMessageToUserWithSuc(roleId, PUSH_ROUTE.PUSH_CURRENT_TIME, { time: Date.now() }, sid);
|
||||
} else {
|
||||
let guilds = pinus.app.getServersByType('guild');
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { REFRESH_TIME, TIME_OUTPUT_TYPE, SHOP_REFRESH_TYPE } from '../consts';
|
||||
import { isDebugTime } from './util';
|
||||
|
||||
/**
|
||||
* 时间
|
||||
@@ -552,7 +553,7 @@ export function getCurDay(needHandle = false, time?: Date) {
|
||||
if(!time) time = new Date();
|
||||
let d = time.getDay();
|
||||
|
||||
if(week != undefined) {
|
||||
if(isDebugTime() && week != undefined) {
|
||||
d = week;
|
||||
}
|
||||
if(needHandle && d == 0) d = 7;
|
||||
|
||||
Reference in New Issue
Block a user