From 1d88e1850c894297c248037f6d3df197e341855a Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Fri, 13 Dec 2024 23:06:52 +0800 Subject: [PATCH] y --- Application/Sdk/Controller/PayH5Controller.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Sdk/Controller/PayH5Controller.class.php b/Application/Sdk/Controller/PayH5Controller.class.php index e2be600..e00ffb4 100644 --- a/Application/Sdk/Controller/PayH5Controller.class.php +++ b/Application/Sdk/Controller/PayH5Controller.class.php @@ -1615,7 +1615,7 @@ class PayH5Controller extends BaseController{ $params = [ 'order_no' => $request['pay_order_number'], 'user_id' => (int)$request['user_id'], - 'user_account' => $request['user_account'], + 'user_account' => $request['user_account'] ?: "", 'game_id' => (int)$request['game_id'], 'game_name' => $request['game_name'], 'server_id' => $request['server_id'], @@ -1627,7 +1627,7 @@ class PayH5Controller extends BaseController{ '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"), 'promote_id' => (int)$request['promote_id'], - 'promote_account' => $request['promote_account'], + 'promote_account' => $request['promote_account'] ?: "", 'client_ip' => $request['spend_ip'], 'pay_type' => 'wxpay-h5' ];