diff --git a/Application/Sdk/Controller/PayH5Controller.class.php b/Application/Sdk/Controller/PayH5Controller.class.php
index d018b40a..5e494ba6 100644
--- a/Application/Sdk/Controller/PayH5Controller.class.php
+++ b/Application/Sdk/Controller/PayH5Controller.class.php
@@ -359,6 +359,7 @@ class PayH5Controller extends BaseController{
$ret = json_decode($ret, true);
$json_data['url']=$ret[0]['payURL'];
if($ret[0]['respCode'] == '000000'){
+ $json_data['url'] .= "?tx_client=hideopen";
// 存入pay_url 继续支付
M("spend", "tab_")->where([
'extend' => $request['extend'],
@@ -1206,7 +1207,7 @@ ADD COLUMN `pay_url` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL AFTER
if($request['code']==1){
$json_data['url'] = $is_pay['mweb_url'].'&redirect_url='.urlencode(C('PAY_DOMAIN')."sdk.php/Spend/paycallback/orderno/{$request['pay_order_number']}/game_id/{$request['game_id']}/paytype/weixinpay");
- $request['pay_url'] = $json_data['url'];
+ $request['pay_url'] = $json_data['url'] . "&tx_client=hideopen";
$this->add_spend($request,1);
}
diff --git a/Application/Sdk/Controller/SpendController.class.php b/Application/Sdk/Controller/SpendController.class.php
index 9a1da4a9..d769c327 100644
--- a/Application/Sdk/Controller/SpendController.class.php
+++ b/Application/Sdk/Controller/SpendController.class.php
@@ -294,6 +294,11 @@ ADD COLUMN `pay_url` varchar(255) NOT NULL DEFAULT '' AFTER `check_sign`;
} else {
$this->assign("aliapp", 0);
}
+ if(get_zfb_type() == 2) {
+ $this->assign("sqzfb", 1);
+ } else {
+ $this->assign("sqzfb", 0);
+ }
// pp($orderno);
$this->assign("orderno", $orderno);
$this->assign("paytype", $paytype);
diff --git a/Application/Sdk/Controller/UserController.class.php b/Application/Sdk/Controller/UserController.class.php
index dca5a34b..de0a92a8 100644
--- a/Application/Sdk/Controller/UserController.class.php
+++ b/Application/Sdk/Controller/UserController.class.php
@@ -3227,6 +3227,43 @@ class UserController extends BaseController
exit;
}
+ /**
+ * 订单状态
+ */
+ public function order_status() {
+
+ $request = json_decode(base64_decode(file_get_contents("php://input")), true);
+ if (I("debug")) {
+ $request['orderno'] = "SP_20191105154135nTcz";
+ }
+ if (!$request['orderno']) return ;
+
+ $pay_where = substr($orderno, 0, 2);
+ $map['pay_order_number'] = $orderno;
+
+ switch ($pay_where) {
+ case 'SP' :
+ $result = M('Spend', 'tab_')->field("*")->where($map)->find();
+ break;
+ case 'PF' :
+ $result = M('deposit', 'tab_')->field('*')->where($map)->find();
+ break;
+ case 'TB' :
+ $result = M('balance', 'tab_')->field('*')->where($map)->find();
+ break;
+ case 'BR' :
+ $result = M('bind_recharge', 'tab_')->field('*')->where($map)->find();
+ break;
+ }
+ // 支付成功跳转页面
+ if ($result['pay_status'] == 1) {
+ $this->new_set_message(200, "支付成功");
+ // $this->success("支付成功", U("userH/get_user_money", ['user_token' => $userToken]));
+ } else {
+ $this->new_set_message(0, "支付失败");
+ }
+
+ }
}
diff --git a/Application/Sdk/View/default/Spend/paycallback.html b/Application/Sdk/View/default/Spend/paycallback.html
index 9db19359..f00a28ce 100644
--- a/Application/Sdk/View/default/Spend/paycallback.html
+++ b/Application/Sdk/View/default/Spend/paycallback.html
@@ -17,7 +17,7 @@
-
+