From 9c4331fc22e863acc9a329f155f4a2b8335e559d Mon Sep 17 00:00:00 2001 From: tpingzhang <635929049@qq.com> Date: Fri, 22 Nov 2019 15:11:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=AB=E6=8D=B7=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sdk/Controller/ShortcutController.class.php | 4 ++-- .../Sdk/View/default/Shortcut/wap_shortcut_pay.html | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Application/Sdk/Controller/ShortcutController.class.php b/Application/Sdk/Controller/ShortcutController.class.php index a7f8dc74..e86f3b53 100644 --- a/Application/Sdk/Controller/ShortcutController.class.php +++ b/Application/Sdk/Controller/ShortcutController.class.php @@ -290,8 +290,7 @@ class ShortcutController extends BaseController{ /** * 快捷支付 用户点击 */ - public function wap_shortcut_pay($user_id,$game_id) - { + public function wap_shortcut_pay($user_id,$game_id) { // $file=file_get_contents("./Application/Sdk/OrderNo/".$user_id."-".$game_id.".txt"); // $request = json_decode(think_decrypt($file),true); // Log::write(serialize($request), Log::DEBUG); @@ -442,6 +441,7 @@ class ShortcutController extends BaseController{ $this->assign("pay_amount", $request['actual_amount']?$request['actual_amount']:$request['price']); $this->assign("user_id", $request['user_id']); $this->assign("game_id", $request['game_id']); + $this->assign("user_token", $userToken); $this->assign("extend", $is_platform ? $request['pay_order_number'] : I('extend')); $this->display(); } diff --git a/Application/Sdk/View/default/Shortcut/wap_shortcut_pay.html b/Application/Sdk/View/default/Shortcut/wap_shortcut_pay.html index 7399f4f2..63a23bf9 100644 --- a/Application/Sdk/View/default/Shortcut/wap_shortcut_pay.html +++ b/Application/Sdk/View/default/Shortcut/wap_shortcut_pay.html @@ -259,6 +259,8 @@ + +
@@ -360,6 +362,8 @@ 'idNo' : $("#idNo").val(), 'phoneNo' : $("#phoneNo").val(), 'extend' : $("#extend").val(), + 'api_ver' : 2, + 'user_token' : $("#user_token").val(), }, success:function(res){ if (res.code == 200) { @@ -431,7 +435,9 @@ 'custName' : $("#custName").val(), 'cardNo' : $("#cardNo").val(), 'idNo' : $("#idNo").val(), - 'phoneNo' : $("#phoneNo").val() + 'phoneNo' : $("#phoneNo").val(), + 'api_ver' : 2, + 'user_token' : $("#user_token").val(), }, success:function(res){ if (res.code == 200) { @@ -494,6 +500,8 @@ 'idNo' : $("#idNo").val(), 'phoneNo' : $("#phoneNo").val(), 'signCode' : code, + 'api_ver' : 2, + 'user_token' : $("#user_token").val(), }, success:function(res){ if (res.code == 200) {