From 6777b0d4b6786a8d70578ac40bdec0ff8538f95d Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Mon, 11 Nov 2024 18:45:39 +0800 Subject: [PATCH] no message --- js/common.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/common.js b/js/common.js index 34ba6d7..d94f77e 100644 --- a/js/common.js +++ b/js/common.js @@ -33,7 +33,9 @@ function $ajax(url) { } function $ajaxget(url, data) { - if (data) data["authorization"] = "6f167d28205b143c880382cd8408ea93" + if (!data) data = {} + + data["authorization"] = "6f167d28205b143c880382cd8408ea93" url = url.indexOf("https://") > -1 ? url : projectBaseURL + url url += objectToQueryString(data)