Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update upload api to https #5

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions EasyScrShot/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ private async void uploadButton_Click(object sender, EventArgs e)
return;
}
#elif USE_LB
var service = new CheveretoUploader("http://img.2222.moe/littlebakas/1/upload/", "0f563a641610160a32a1f87d364269f0");
var service = new CheveretoUploader("https://img.2222.moe/littlebakas/1/upload/", "0f563a641610160a32a1f87d364269f0");
#else
var service = new CheveretoUploader("http://img.2222.moe/api/1/upload", "0f653a641610160a23a1f87d364926f9");
var service = new CheveretoUploader("https://img.2222.moe/api/1/upload", "0f653a641610160a23a1f87d364926f9");
#endif
var spinlock = new object();
Action<string> appendText = (string s) =>
Expand Down
2 changes: 1 addition & 1 deletion EasyScrShot/Uploader/Chevereto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private static void cheveroteTest2()
string pathname = @"d:\QQ截图20161113011610.png"; // 本地 文件的名字和路径
//ImageFormat format = ImageFormat.Png;// 这个好像可以不用写,要是出问题,就写一个自己解析后缀的函数就完了

CheveretoUploader uploader = new CheveretoUploader("http://img.2222.moe/api/1/upload",
CheveretoUploader uploader = new CheveretoUploader("https://img.2222.moe/api/1/upload",
"0f653a641610160a23a1f87d364926f9");
try {
Chevereto chevereto = new Chevereto(uploader);
Expand Down
4 changes: 2 additions & 2 deletions EasyScrShot/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"accounts": [
{
"user": "VCB-Studio",
"url": "http://img.2222.moe/api/1/upload",
"url": "https://img.2222.moe/api/1/upload",
"key": "0f653a641610160a23a1f87d364926f9",
"default": true
},
{
"user": "LittleBakas!",
"url": "http://img.2222.moe/littlebakas/1/upload/",
"url": "https://img.2222.moe/littlebakas/1/upload/",
"key": "0f563a641610160a32a1f87d364269f0"
}
]
Expand Down