|
|
@ -359,6 +359,7 @@ class PayH5Controller extends BaseController{
|
|
|
|
$ret = json_decode($ret, true);
|
|
|
|
$ret = json_decode($ret, true);
|
|
|
|
$json_data['url']=$ret[0]['payURL'];
|
|
|
|
$json_data['url']=$ret[0]['payURL'];
|
|
|
|
if($ret[0]['respCode'] == '000000'){
|
|
|
|
if($ret[0]['respCode'] == '000000'){
|
|
|
|
|
|
|
|
$json_data['url'] .= "?tx_client=hideopen";
|
|
|
|
// 存入pay_url 继续支付
|
|
|
|
// 存入pay_url 继续支付
|
|
|
|
M("spend", "tab_")->where([
|
|
|
|
M("spend", "tab_")->where([
|
|
|
|
'extend' => $request['extend'],
|
|
|
|
'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){
|
|
|
|
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");
|
|
|
|
$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);
|
|
|
|
$this->add_spend($request,1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|