Skip to content

Commit

Permalink
fix: Fix queryTimer initialization in charge_center.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Dec 19, 2023
1 parent 77b599f commit 09b01ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/web/charge_center.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ <h2 class="subtitle">
var codeBox = $("#id-qrcode-box")
var msgline = $("#id-msg-line")
var url = "{% url 'api:order' %}"
var queryTimer;
var queryTimer

var payrequest = function () {
paynum = payinput.val()
Expand All @@ -170,7 +170,7 @@ <h2 class="subtitle">
codeBox.attr('class', '')
qrcode_url = results.qrcode_url
$("#id-qrcode-canvas").qrcode(qrcode_url)
var queryTimer = setInterval(payquery, 1000);
queryTimer = setInterval(payquery, 3000);
}
})
} else {
Expand Down

0 comments on commit 09b01ee

Please sign in to comment.