Przeglądaj źródła

update

undefined
Jason Chuang 2 miesięcy temu
rodzic
commit
2d57f3ed55
1 zmienionych plików z 5 dodań i 5 usunięć
  1. +5
    -5
      src/utils/Utils.js

+ 5
- 5
src/utils/Utils.js Wyświetl plik

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

export const checkIsOnlyOnlinePaymentByIssueDate = (date) => {
// const targetDate = new Date(2025, 7, 1, 0, 0, 0) //2026-01-28T08:00:00.000Z hardcode
const targetDate = new Date(2025, 9, 17, 8, 0, 0) //2025-10-17T08:00:00.000Z
const targetDate = new Date(2025, 9, 17, 0, 0, 0) //2025-10-17T08:00:00.000Z
const checkDate = DateUtils.convertToDate(date)
if (isDummyLoggedIn()){
return false;
@@ -211,13 +211,13 @@ export const checkIsOnlyOnlinePaymentByIssueDate = (date) => {

export const checkIsOnlyOnlinePayment = () => {
// const targetDate = new Date(2025, 28, 0, 0, 0, 0) // hardcode
const targetDate = new Date(2025, 9, 10, 0, 0, 0) // hardcode
const targetDate = new Date(2025, 9, 8, 0, 0, 0) // hardcode
const checkDate = DateUtils.convertToDate(new Date())
if (isDummyLoggedIn()){
return false;
}
// console.log(checkDate)
// console.log(targetDate)
console.log(checkDate)
console.log(targetDate)
if (checkDate >= targetDate) {
return true
} else {
@@ -227,7 +227,7 @@ export const checkIsOnlyOnlinePayment = () => {

export const checkIsOnlyOnlinePaymentApply = (tickAccept) => {
// const targetDate = new Date(2025, 28, 0, 0, 0, 0) // hardcode
const targetDate = new Date(2025, 9, 10, 0, 0, 0) // hardcode
const targetDate = new Date(2025, 9, 8, 0, 0, 0) // hardcode
const checkDate = DateUtils.convertToDate(new Date())
if (isDummyLoggedIn()){
return false;


Ładowanie…
Anuluj
Zapisz