|
|
@ -644,7 +644,7 @@ ADD COLUMN `pay_url` text NULL AFTER `check_sign`;
|
|
|
|
$pay['amount'] = $request['price'];
|
|
|
|
$pay['amount'] = $request['price'];
|
|
|
|
$pay['user_ip'] = get_client_ip();
|
|
|
|
$pay['user_ip'] = get_client_ip();
|
|
|
|
$pay['sign_key'] = C('heepay.key');//密钥
|
|
|
|
$pay['sign_key'] = C('heepay.key');//密钥
|
|
|
|
$pay['payerName'] = "万盟天下";
|
|
|
|
$pay['payerName'] = iconv("UTF-8", "gb2312//IGNORE", "万盟天下");
|
|
|
|
$pay['number'] = 1;
|
|
|
|
$pay['number'] = 1;
|
|
|
|
$pay['goods_note']= "消费-".$request["pay_order_number"];
|
|
|
|
$pay['goods_note']= "消费-".$request["pay_order_number"];
|
|
|
|
$pay['device'] = "wap";
|
|
|
|
$pay['device'] = "wap";
|
|
|
@ -652,7 +652,7 @@ ADD COLUMN `pay_url` text NULL AFTER `check_sign`;
|
|
|
|
$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);
|
|
|
|
$url = $heepay->wxh5_pay($pay);
|
|
|
|
$request['pay_url'] = $url."&tx_client=hideopen";
|
|
|
|
$request['pay_url'] = $url;//."&tx_client=hideopen";
|
|
|
|
|
|
|
|
|
|
|
|
$this->add_deposit($request, 1);
|
|
|
|
$this->add_deposit($request, 1);
|
|
|
|
}elseif(get_wx_pay_type() == 2){
|
|
|
|
}elseif(get_wx_pay_type() == 2){
|
|
|
|