浏览代码

date hardcode

CR013B1
Jason Chuang 3 周前
父节点
当前提交
d59bff36dd
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      src/utils/Utils.js

+ 3
- 3
src/utils/Utils.js 查看文件

@@ -184,7 +184,7 @@ export const isPasswordExpiry = () =>{
}

export const checkIsOnlyOnlinePaymentByIssueDate = (date) => {
const targetDate = new Date(2025, 6, 25, 0, 0, 0) //2026-01-28T08:00:00.000Z
const targetDate = new Date(2025, 7, 1, 0, 0, 0) //2026-01-28T08:00:00.000Z hardcode
// const targetDate = new Date(2025, 6, 13, 8, 0, 0); //2025-07-13T08:00:00.000Z
const checkDate = DateUtils.convertToDate(date)
if (isDummyLoggedIn()){
@@ -200,7 +200,7 @@ export const checkIsOnlyOnlinePaymentByIssueDate = (date) => {
}

export const checkIsOnlyOnlinePayment = () => {
const targetDate = new Date(2025, 6, 25, 0, 0, 0)
const targetDate = new Date(2025, 7, 1, 0, 0, 0) // hardcode
const checkDate = DateUtils.convertToDate(new Date())
if (isDummyLoggedIn()){
return false;
@@ -215,7 +215,7 @@ export const checkIsOnlyOnlinePayment = () => {
}

export const checkMarkAsCreditClient = () => {
const targetDate = new Date(2025, 6, 25, 0, 0, 0)
const targetDate = new Date(2025, 6, 15, 0, 0, 0) // hardcode
const checkDate = DateUtils.convertToDate(new Date())
// console.log(targetDate)
// console.log(checkDate >= targetDate)


正在加载...
取消
保存