|
|
@ -764,6 +764,9 @@ class PayH5Controller extends BaseController{
|
|
|
|
$request['merchant_id'] = $pay_info['id'];
|
|
|
|
$request['merchant_id'] = $pay_info['id'];
|
|
|
|
$request['merchant_way'] = self::WX_PAY;
|
|
|
|
$request['merchant_way'] = self::WX_PAY;
|
|
|
|
$request['main_id'] = $main_id;
|
|
|
|
$request['main_id'] = $main_id;
|
|
|
|
|
|
|
|
if (C('SHARE_ID.'.$pay_conf['partner']) == 'y') {
|
|
|
|
|
|
|
|
$request['share_status'] = 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
$this->add_deposit($request, 1);
|
|
|
|
$this->add_deposit($request, 1);
|
|
|
|
// .(is_ssl()?'https%3A%2F%2F':'http%3A%2F%2F'). $_SERVER ['HTTP_HOST'] . "%2Fsdk.php%2FSpend%2Fpay_success%2Forderno%2F".$request['pay_order_number'].'%2Fgame_id%2F'.$request['game_id'] ;
|
|
|
|
// .(is_ssl()?'https%3A%2F%2F':'http%3A%2F%2F'). $_SERVER ['HTTP_HOST'] . "%2Fsdk.php%2FSpend%2Fpay_success%2Forderno%2F".$request['pay_order_number'].'%2Fgame_id%2F'.$request['game_id'] ;
|
|
|
|
/* if (I('request.api_ver') == 1) {
|
|
|
|
/* if (I('request.api_ver') == 1) {
|
|
|
@ -772,6 +775,8 @@ class PayH5Controller extends BaseController{
|
|
|
|
} */
|
|
|
|
} */
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
jsonOutput(0, "支付失败");
|
|
|
|
jsonOutput(0, "支付失败");
|
|
|
|
|
|
|
|
Log::write("platform_weixin_pay支付失败".serialize($is_pay));
|
|
|
|
|
|
|
|
exit();
|
|
|
|
// redirect(U('Spend/notice',array('user_id'=>$user_id, 'is_platform' => 1,'game_id'=>$game_id,'msg'=>'支付失败', 'user_token' => $this->userToken)));exit;
|
|
|
|
// redirect(U('Spend/notice',array('user_id'=>$user_id, 'is_platform' => 1,'game_id'=>$game_id,'msg'=>'支付失败', 'user_token' => $this->userToken)));exit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}elseif ($pay_info['channel'] == 5) { // 汇付宝
|
|
|
|
}elseif ($pay_info['channel'] == 5) { // 汇付宝
|
|
|
@ -1494,13 +1499,18 @@ class PayH5Controller extends BaseController{
|
|
|
|
$request['merchant_id'] = $pay_info['id'];
|
|
|
|
$request['merchant_id'] = $pay_info['id'];
|
|
|
|
$request['merchant_way'] = self::WX_PAY;
|
|
|
|
$request['merchant_way'] = self::WX_PAY;
|
|
|
|
$request['main_id'] = $main_id;
|
|
|
|
$request['main_id'] = $main_id;
|
|
|
|
|
|
|
|
if (C('SHARE_ID.'.$pay_conf['partner']) == 'y') {
|
|
|
|
|
|
|
|
$request['share_status'] = 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
$this->add_spend($request,1);
|
|
|
|
$this->add_spend($request,1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// $json_data['url'] = $is_pay['mweb_url'].'&redirect_url='.C('PAY_DOMAIN')."sdk.php/Spend/paycallback/orderno/{$request['pay_order_number']}/game_id/{$request['game_id']}";
|
|
|
|
// $json_data['url'] = $is_pay['mweb_url'].'&redirect_url='.C('PAY_DOMAIN')."sdk.php/Spend/paycallback/orderno/{$request['pay_order_number']}/game_id/{$request['game_id']}";
|
|
|
|
// (is_ssl()?'https%3A%2F%2F':'http%3A%2F%2F'). $_SERVER ['HTTP_HOST'] . "%2Fsdk.php%2FSpend%2Fpay_success%2Forderno%2F".$request['pay_order_number'].'%2Fgame_id%2F'.$request['game_id'] ;
|
|
|
|
// (is_ssl()?'https%3A%2F%2F':'http%3A%2F%2F'). $_SERVER ['HTTP_HOST'] . "%2Fsdk.php%2FSpend%2Fpay_success%2Forderno%2F".$request['pay_order_number'].'%2Fgame_id%2F'.$request['game_id'] ;
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
echo json_encode(['code'=>0,'msg'=> '支付失败']);exit;
|
|
|
|
echo json_encode(['code'=>0,'msg'=> '支付失败']);
|
|
|
|
|
|
|
|
Log::write("platform_weixin_pay支付失败".serialize($is_pay));
|
|
|
|
|
|
|
|
exit;
|
|
|
|
// redirect(U('Spend/notice',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=>'支付失败', 'user_token' => $this->userToken)));exit;
|
|
|
|
// redirect(U('Spend/notice',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=>'支付失败', 'user_token' => $this->userToken)));exit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}elseif ($pay_info['channel'] == 5) {
|
|
|
|
}elseif ($pay_info['channel'] == 5) {
|
|
|
|