From c33e3f13b7817bf4cae5005e32bab1efa6929c5a Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Mon, 23 Mar 2020 11:32:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E9=99=90=E9=A2=9D=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/ShortcutController.class.php | 4 +- .../Sdk/View/default/Spend/pay_way.html | 11 ++-- .../Sdk/View/default/UserH/platform_pay.html | 65 +++++++++++++++---- 3 files changed, 61 insertions(+), 19 deletions(-) diff --git a/Application/Sdk/Controller/ShortcutController.class.php b/Application/Sdk/Controller/ShortcutController.class.php index 1868a8a8..9b4aec8c 100644 --- a/Application/Sdk/Controller/ShortcutController.class.php +++ b/Application/Sdk/Controller/ShortcutController.class.php @@ -449,7 +449,7 @@ class ShortcutController extends BaseController{ // 快捷---易宝支付 public function yee_pay($user_id,$game_id) { - + $is_platform = 0; if (I('request.code') == 0 && I('request.type') == 'platform') { $is_platform = 1; // 平台币充值 @@ -705,7 +705,9 @@ class ShortcutController extends BaseController{ ])->order('id desc')->find(); $request['pay_order_number'] = $payInfo['order_id']; + if (!$payInfo) { + echo json_encode(['code'=>0,'msg'=>'订单信息不存在']);exit; return ; } } else { // 游戏充值 diff --git a/Application/Sdk/View/default/Spend/pay_way.html b/Application/Sdk/View/default/Spend/pay_way.html index 233ce846..e7db7440 100644 --- a/Application/Sdk/View/default/Spend/pay_way.html +++ b/Application/Sdk/View/default/Spend/pay_way.html @@ -303,9 +303,10 @@ } - function showWindow() { + function showWindow(msg) { $(".payment_window").show(); $(".payment_model").show(); + $(".payment_window_img").children().next().text(msg); } @@ -411,7 +412,7 @@ $(".tipmsg").html(result.msg); $(".msgdialog").show(); } else { - showWindow(); + showWindow(result.msg); } }, error: function(){ @@ -439,7 +440,7 @@ $(".tipmsg").html(result.msg); $(".msgdialog").show(); } else { - showWindow(); + showWindow(result.msg); } }, error:function(){ @@ -467,7 +468,7 @@ $(".tipmsg").html(result.msg); $(".msgdialog").show(); } else { - showWindow(); + showWindow(result.msg); } }, error:function(){ @@ -498,7 +499,7 @@ $(".tipmsg").html(result.msg); $(".msgdialog").show(); } else { - showWindow(); + showWindow(result.msg); } }, error:function(){ diff --git a/Application/Sdk/View/default/UserH/platform_pay.html b/Application/Sdk/View/default/UserH/platform_pay.html index 3de6bc87..e21ef071 100644 --- a/Application/Sdk/View/default/UserH/platform_pay.html +++ b/Application/Sdk/View/default/UserH/platform_pay.html @@ -18,8 +18,8 @@ 支付中心 --> - -
+ + --> - -
+ +