This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fetch from 'node-fetch'; | |
import { JSDOM } from 'jsdom'; | |
import CryptoJS from 'crypto-js'; | |
const captcha = | |
'https://cer.ysu.edu.cn/authserver/checkNeedCaptcha.htl?username='; | |
const url = 'https://cer.ysu.edu.cn/authserver/login'; | |
const ua = | |
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<Transition> | |
<button | |
class="h-16 w-16 shadow-xl rounded-full border-none btn-primary fixed bottom-10 right-10 z-50" | |
v-show="btnFlag" | |
@click="backTop" | |
> | |
<div> | |
<svg | |
t="1678205587482" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<v-fab-transition> | |
<v-btn | |
v-show="btnFlag" | |
color="pink" | |
dark | |
bottom | |
right | |
fab | |
fixed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require("axios"); | |
exports.main_handler = async (event, context, callback) => { | |
const baseUrl = "https://cdn.jsdelivr.net/gh/HZ-Geek/hz-geek_blog@master/dist"; | |
let path = event.path; | |
if (path.indexOf('.') != -1) { | |
return { | |
isBase64Encoded: false, | |
statusCode: 301, | |
headers: { 'Location': baseUrl + path }, |