From 7450f6ac7006ca1633056aff8b8191eb8c088dd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9B=B4=E5=A2=99?= Date: Fri, 3 Aug 2018 23:33:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=97=A0=E8=AE=BA=E4=BD=95?= =?UTF-8?q?=E6=97=B6=E9=83=BD=E4=BC=9A=E8=B0=83=E7=94=A8=E5=BD=93=E9=9D=A2?= =?UTF-8?q?=E4=BB=98=E7=9A=84=E9=80=BB=E8=BE=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 理论上在成功返回二维码后才需要检测是否已经付款成功,所有修改了触发的时机 --- resources/views/material/user/code.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/material/user/code.tpl b/resources/views/material/user/code.tpl index b3aab47d..0efea584 100644 --- a/resources/views/material/user/code.tpl +++ b/resources/views/material/user/code.tpl @@ -255,6 +255,7 @@ $("#qrcode").html(data.qrcode); $("#info").html("您的订单金额为:"+data.amount+"元。"); $("#alipay").modal(); + setTimeout(f, 1000); } else { $("#result").modal(); $("#msg").html(data.msg); @@ -290,6 +291,5 @@ }); tid = setTimeout(f, 1000); //循环调用触发setTimeout } - setTimeout(f, 1000); })