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); + });