feat: update globa.hatter.ink
This commit is contained in:
@@ -39,7 +39,7 @@ use tokio_util::bytes::BytesMut;
|
|||||||
use tokio_util::codec::{Decoder, FramedRead};
|
use tokio_util::codec::{Decoder, FramedRead};
|
||||||
|
|
||||||
const OSS_SEND_FILE_CONFIG_FILE: &str = "~/.jssp/config/osssendfile.json";
|
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";
|
const ADD_DOC_URL: &str = "https://play.hatter.me/doc/addDoc.jsonp";
|
||||||
|
|
||||||
#[derive(Debug, Parser)]
|
#[derive(Debug, Parser)]
|
||||||
@@ -376,5 +376,5 @@ async fn parse_sts_response(response: Response) -> XResult<Sts> {
|
|||||||
Ok(sts)
|
Ok(sts)
|
||||||
}
|
}
|
||||||
|
|
||||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250620T220638+08:00.MEUCIB20YFhBPP1yoqSil3Me
|
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250621T103409+08:00.MEYCIQDO99vfBHCqgcp0hIux
|
||||||
// LoDojsR0d9RIMTT56rZ1Jy5hAiEA8gvFd4GK89l92iEEnCK3koLrnsCWCyEJiYwixSW5E20=
|
// t/iN3yat60z0avv43CMumIfZUQIhAJpUfRVro3Bf/bOHH7c3P4AtBZQ3CItZf57e2Gqs2Oqk
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ fn main() {
|
|||||||
params.insert("pass", pass);
|
params.insert("pass", pass);
|
||||||
}
|
}
|
||||||
let client = reqwest::blocking::Client::new();
|
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(¶ms)
|
.form(¶ms)
|
||||||
.send();
|
.send();
|
||||||
match post_result {
|
match post_result {
|
||||||
@@ -125,7 +125,7 @@ fn main() {
|
|||||||
params.insert("pretty", "true".to_string());
|
params.insert("pretty", "true".to_string());
|
||||||
params.insert("targetUrl", full_link.to_string());
|
params.insert("targetUrl", full_link.to_string());
|
||||||
params.insert("aliveTimeMin", args.short_url_available_minutes.unwrap_or(10).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(¶ms)
|
.form(¶ms)
|
||||||
.send();
|
.send();
|
||||||
if let Ok(response) = otl_result {
|
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
|
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250621T103237+08:00.MEUCIHc34Zy2KI58wxBFq/U5
|
||||||
// cLqsF//wFAyCr76Mcw7f6IfiAiEA6C92us/RPatk9fZ4eot1zuudM+lNxdgrpgxoQXjcVhM=
|
// ANIjsHjMBhOKGuci4sBnWCQNAiEA0MBBIsmAWPXGupKewS5z8LP3ERHdj15CuFOXGmNuUfI=
|
||||||
|
|||||||
Reference in New Issue
Block a user