From ef9472b334ece21bec3a410785641659bf10a107 Mon Sep 17 00:00:00 2001 From: Kane Wang Date: Tue, 7 Mar 2023 22:55:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E8=BF=9B=E5=BA=A6=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/web/task_schedule/src/test/test.ts | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 code/web/task_schedule/src/test/test.ts diff --git a/code/web/task_schedule/src/test/test.ts b/code/web/task_schedule/src/test/test.ts new file mode 100644 index 0000000..61471d2 --- /dev/null +++ b/code/web/task_schedule/src/test/test.ts @@ -0,0 +1,28 @@ +/* + * @Author: Kane + * @Date: 2023-03-02 15:48:44 + * @LastEditors: Kane + * @FilePath: /task_schedule/src/test/test.ts + * @Description: + * + * Copyright (c) ${2022} by Kane, All Rights Reserved. + */ + +import { type LoginInfo, login } from "../utils/account.js"; + +const loginInfo: LoginInfo = { + p13account: "wangwei-202", + password: "Kane@1983", +}; + +login(loginInfo) + .then((response: any) => + { + const data = response.data ?? {}; + + console.log(data); + }) + .catch((error: any) => + { + console.log(error); + });