Skip to content

Commit e2cecae

Browse files
authored
Merge pull request #57 from malphitee/bugfix/malphitee/fix_httpclientjs_date_err
修复月份判定错误导致的签名信息错误
2 parents 05f3370 + e22593b commit e2cecae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/bootstrap/js/httpclient/httpclient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function GenerateAuthorization(path, method, params) {
1111

1212
let date = new Date();
1313
let datetime = date.getFullYear() + "-" // "年"
14-
+ ((date.getMonth() + 1) > 10 ? (date.getMonth() + 1) : "0" + (date.getMonth() + 1)) + "-" // "月"
14+
+ ((date.getMonth() + 1) >= 10 ? (date.getMonth() + 1) : "0" + (date.getMonth() + 1)) + "-" // "月"
1515
+ (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " " // "日"
1616
+ (date.getHours() < 10 ? "0" + date.getHours() : date.getHours()) + ":" // "小时"
1717
+ (date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes()) + ":" // "分钟"

0 commit comments

Comments
 (0)