elf 2 weeks ago
parent c6284089a3
commit adff2b721a

@ -1611,11 +1611,12 @@ class PayH5Controller extends BaseController{
// if (get_wx_pay_type() == 0) { // if (get_wx_pay_type() == 0) {
if ($pay_info['channel'] == 2) { if ($pay_info['channel'] == 2) {
if ($pay_conf['partner'] == '1699330320') { if ($pay_conf['partner'] == '1699330320') {
OuterApi::log("begin");
$params = [ $params = [
'order_no' => $request['pay_order_number'], 'order_no' => $request['pay_order_number'],
'user_id' => $request['user_id'], 'user_id' => (int)$request['user_id'],
'user_account' => $request['user_account'], 'user_account' => $request['user_account'],
'game_id' => $request['game_id'], 'game_id' => (int)$request['game_id'],
'game_name' => $request['game_name'], 'game_name' => $request['game_name'],
'server_id' => $request['server_id'], 'server_id' => $request['server_id'],
'server_name' => $request['server_name'], 'server_name' => $request['server_name'],
@ -1625,7 +1626,7 @@ class PayH5Controller extends BaseController{
'pay_amount' => (int)($pay_amount*100), 'pay_amount' => (int)($pay_amount*100),
'notify_url' => "http://" . $_SERVER['HTTP_HOST'] . "/callback.php/Notify/outer_callback", 'notify_url' => "http://" . $_SERVER['HTTP_HOST'] . "/callback.php/Notify/outer_callback",
'return_url' => urlencode(C('PAY_DOMAIN')."sdk.php/Spend/paycallback/orderno/{$request['pay_order_number']}/game_id/{$request['game_id']}/paytype/weixinpay"), 'return_url' => urlencode(C('PAY_DOMAIN')."sdk.php/Spend/paycallback/orderno/{$request['pay_order_number']}/game_id/{$request['game_id']}/paytype/weixinpay"),
'promote_id' => $request['promote_id'], 'promote_id' => (int)$request['promote_id'],
'promote_account' => $request['promote_account'], 'promote_account' => $request['promote_account'],
'client_ip' => $request['spend_ip'], 'client_ip' => $request['spend_ip'],
'pay_type' => 'wxpay-h5' 'pay_type' => 'wxpay-h5'

Loading…
Cancel
Save