快捷支付

master
tpingzhang 5 years ago
parent 0184892f7f
commit 9c4331fc22

@ -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();
}

@ -259,6 +259,8 @@
<input type="hidden" name="user_id" id="user_id" value="{$user_id}" />
<input type="hidden" name="game_id" id="game_id" value="{$game_id}" />
<input type="hidden" name="extend" id="extend" value="{$extend}" />
<input type="hidden" name="user_token" id="user_token" value="{$user_token}" />
<input type="hidden" name="api_ver" id="api_ver" value="2" />
<div class="paypage">
<div class="weui-cells weui-cells_form" style="padding: .3rem 0 0;">
@ -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) {

Loading…
Cancel
Save