|
|
@ -791,13 +791,17 @@ class PayH5Controller extends BaseController{
|
|
|
|
$pay['bank_card_type'] = 0;
|
|
|
|
$pay['bank_card_type'] = 0;
|
|
|
|
$pay['return_url'] = C('PAY_DOMAIN')."sdk.php/Spend/paycallback/orderno/{$request['pay_order_number']}/user_token/".$this->userToken."/paytype/weixinpay/game_id/{$game_id}";
|
|
|
|
$pay['return_url'] = C('PAY_DOMAIN')."sdk.php/Spend/paycallback/orderno/{$request['pay_order_number']}/user_token/".$this->userToken."/paytype/weixinpay/game_id/{$game_id}";
|
|
|
|
$heepay = new Heepay();
|
|
|
|
$heepay = new Heepay();
|
|
|
|
$url = $heepay->wxh5_pay($pay);
|
|
|
|
$json_data = $heepay->wxh5_pay($pay);
|
|
|
|
$request['pay_url'] = $url;//."&tx_client=hideopen";
|
|
|
|
if($json_data['ret_code'] == "0000"){
|
|
|
|
$request['merchant_id'] = $pay_info['id'];
|
|
|
|
$request['pay_url'] = $json_data['url'] . "&tx_client=hideopen";
|
|
|
|
$request['merchant_way'] = self::WX_PAY;
|
|
|
|
$request['merchant_id'] = $pay_info['id'];
|
|
|
|
$request['main_id'] = $main_id;
|
|
|
|
$request['merchant_way'] = self::WX_PAY;
|
|
|
|
|
|
|
|
$request['main_id'] = $main_id;
|
|
|
|
$this->add_deposit($request, 1);
|
|
|
|
$this->add_deposit($request, 1);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
jsonOutput(0, "支付失败");
|
|
|
|
|
|
|
|
exit;
|
|
|
|
|
|
|
|
}
|
|
|
|
}elseif(get_wx_pay_type() == 2){
|
|
|
|
}elseif(get_wx_pay_type() == 2){
|
|
|
|
|
|
|
|
|
|
|
|
if($request['code']==1){
|
|
|
|
if($request['code']==1){
|
|
|
|