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 922c0837..e21ef071 100644 --- a/Application/Sdk/View/default/UserH/platform_pay.html +++ b/Application/Sdk/View/default/UserH/platform_pay.html @@ -18,7 +18,7 @@ 支付中心 --> - + --> - +