From 2dbed11e3f21b7d8087b5906ab656c596bc10320 Mon Sep 17 00:00:00 2001 From: anna Date: Tue, 23 Apr 2024 12:46:01 +0800 Subject: [PATCH] add test function --- src/pages/_Test/index.js | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/src/pages/_Test/index.js b/src/pages/_Test/index.js index 8d29fb6..19b84b6 100644 --- a/src/pages/_Test/index.js +++ b/src/pages/_Test/index.js @@ -42,6 +42,7 @@ const Mail = () => { url: apiPath + "/test/send-mail", params: { email: values.email, + tempKey: values.tempKey }, onSuccess: function () { setResponsText("Success"); @@ -77,6 +78,25 @@ const Mail = () => { }); } + const testDaily_checkDNStatus=()=>{ + HttpUtils.post({ + url: apiPath + "/test/daily_checkDNStatus", + onSuccess: function () { + setResponsText("Success"); + setIsResponsPopUp(true); + }, + onFail: (response) => { + setResponsText("Fail: " + response); + setIsResponsPopUp(true); + }, + onError: (error) => { + setResponsText("Error: " + error); + setIsResponsPopUp(true); + } + }); + } + + return ( !JSON.parse(localStorage.getItem('userData')).fullenName == "2fi" ? @@ -103,6 +123,17 @@ const Mail = () => { onChange={formik.handleChange} /> + + + + + Set DN Reminder Expect send Date + + +