feat: update globa.hatter.ink

This commit is contained in:
2025-06-21 10:35:45 +08:00
parent c04dde9dcf
commit db816cc1e1
2 changed files with 7 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ use tokio_util::bytes::BytesMut;
use tokio_util::codec::{Decoder, FramedRead};
const OSS_SEND_FILE_CONFIG_FILE: &str = "~/.jssp/config/osssendfile.json";
const CREATE_STS_URL: &str = "https://hatter.ink/oidc/create_sts.json";
const CREATE_STS_URL: &str = "https://global.hatter.ink/oidc/create_sts.json";
const ADD_DOC_URL: &str = "https://play.hatter.me/doc/addDoc.jsonp";
#[derive(Debug, Parser)]
@@ -376,5 +376,5 @@ async fn parse_sts_response(response: Response) -> XResult<Sts> {
Ok(sts)
}
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250620T220638+08:00.MEUCIB20YFhBPP1yoqSil3Me
// LoDojsR0d9RIMTT56rZ1Jy5hAiEA8gvFd4GK89l92iEEnCK3koLrnsCWCyEJiYwixSW5E20=
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250621T103409+08:00.MEYCIQDO99vfBHCqgcp0hIux
// t/iN3yat60z0avv43CMumIfZUQIhAJpUfRVro3Bf/bOHH7c3P4AtBZQ3CItZf57e2Gqs2Oqk

View File

@@ -108,7 +108,7 @@ fn main() {
params.insert("pass", pass);
}
let client = reqwest::blocking::Client::new();
let post_result = client.post("https://hatter.ink/secfile/post.json")
let post_result = client.post("https://global.hatter.ink/secfile/post.json")
.form(&params)
.send();
match post_result {
@@ -125,7 +125,7 @@ fn main() {
params.insert("pretty", "true".to_string());
params.insert("targetUrl", full_link.to_string());
params.insert("aliveTimeMin", args.short_url_available_minutes.unwrap_or(10).to_string());
let otl_result = client.post("https://hatter.ink/onetimelink/add.json")
let otl_result = client.post("https://global.hatter.ink/onetimelink/add.json")
.form(&params)
.send();
if let Ok(response) = otl_result {
@@ -267,5 +267,5 @@ fn get_content_type(file_name: &str) -> String {
}
}
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250123T234805+08:00.MEUCIH4lvEhDT6ee1SnTyWMR
// cLqsF//wFAyCr76Mcw7f6IfiAiEA6C92us/RPatk9fZ4eot1zuudM+lNxdgrpgxoQXjcVhM=
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250621T103237+08:00.MEUCIHc34Zy2KI58wxBFq/U5
// ANIjsHjMBhOKGuci4sBnWCQNAiEA0MBBIsmAWPXGupKewS5z8LP3ERHdj15CuFOXGmNuUfI=