feat: updates

This commit is contained in:
2025-06-20 22:13:06 +08:00
parent d913b859ed
commit c3f82b91da
11 changed files with 23 additions and 23 deletions

View File

@@ -61,7 +61,7 @@ var main = () => {
params.add(new KeyValue('title', title + imgUrl.substring(imgUrl.lastIndexOf('.'))));
params.add(new KeyValue('keywords', 'Book,Image,Book Cover'));
params.add(new KeyValue('description', 'Book: ' + title + ', url: ' + url + ', detail: ' + fastJSON.prettyJavaJSON(bookAttrs)));
var res = $$.httpRequest().url('https://playsecurity.org/doc/addDoc.jsonp').post(params);
var res = $$.httpRequest().url('https://play.hatter.me/doc/addDoc.jsonp').post(params);
var resJSON = JSON.parse(res);
if (resJSON.status == 200) {
@@ -70,7 +70,7 @@ var main = () => {
xprintln('[FAIL] Send image to doc list failed: ' + res);
throw ('[FAIL] Send image to doc list failed: ' + res);
}
return 'https://playsecurity.org/getdoc/' + resJSON['id'] + '_' + resJSON['etag'] + '/' + imgUrl.substring(imgUrl.lastIndexOf('/') + 1);
return 'https://play.hatter.me/getdoc/' + resJSON['id'] + '_' + resJSON['etag'] + '/' + imgUrl.substring(imgUrl.lastIndexOf('/') + 1);
};
var newSmallImg = uploadImg(smallImg);
var newBigImg = newSmallImg;
@@ -89,7 +89,7 @@ var main = () => {
params.add(new KeyValue('bigImg', newBigImg));
params.add(new KeyValue('smallImg', newSmallImg));
params.add(new KeyValue('bookInfo', $$.stringify(bookAttrs)));
var res = $$.httpRequest().url('https://playsecurity.org/book/addBook.jsonp').post(params);
var res = $$.httpRequest().url('https://play.hatter.me/book/addBook.jsonp').post(params);
var resJSON = JSON.parse(res);
if (resJSON.status == 200) {