feat: updates
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user