From dd84f674b0bd6843b3fdd02ef7080f6dd02ed489 Mon Sep 17 00:00:00 2001 From: li Date: Mon, 1 Jun 2026 23:45:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BD=BB=E5=BA=95=E8=A7=A3=E8=80=A6?= =?UTF-8?q?=E5=AD=98=E5=8F=96=E6=AC=BE=E6=98=BE=E9=9A=90=E4=B8=8Eagent=5Ft?= =?UTF-8?q?ype,=E5=8F=AA=E6=8C=89pay=5Fchannel=E4=B8=8B=E5=8F=91(=E9=98=B2?= =?UTF-8?q?=E9=94=99=E9=85=8D=E5=A4=8D=E5=8F=91)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:登录/用户信息接口死卡 agent_type==1 才下发支付渠道,靠运营手动保持 agent_type 与 pay_channel 一致,一改错(如人工线配在线通道)用户就没存取款。 改为只看 pay_channel:OPR=人工(下发收款信息),非空非OPR=在线(下发币种/链),空=隐藏。 顺带修复 get_user_info 此前缺 OPR 分支导致人工线用户刷新丢充值信息的隐患。 覆盖移动端(Portal)+PC,均走此接口。170 错配存量已单独 UPDATE 修复。 --- application/onlinechip/controller/Pcapi.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/application/onlinechip/controller/Pcapi.php b/application/onlinechip/controller/Pcapi.php index 6855a3d..1dea564 100755 --- a/application/onlinechip/controller/Pcapi.php +++ b/application/onlinechip/controller/Pcapi.php @@ -197,7 +197,7 @@ class Pcapi extends Controller{ $find['pay_channel'] = ''; $find['pay_channel_currency'] = []; $find['pay_channel_coin_chain'] = []; - if($topAgent['agent_type'] == 1){ + if($topAgent['pay_channel'] && $topAgent['pay_channel'] != 'OPR'){ // 现金线走支付渠道 $find['pay_channel'] = $topAgent['pay_channel']; $find['pay_channel_currency'] = []; @@ -211,7 +211,7 @@ class Pcapi extends Controller{ $find['pay_channel_coin_chain'] = json_decode($payChannelInfo['coin_chain'],true); } } - } elseif ($topAgent['agent_type'] == 2 && $topAgent['pay_channel'] == 'OPR') { // 人工转帐上分,前端显示充值信息 + } elseif ($topAgent['pay_channel'] == 'OPR') { // 人工转帐上分,前端显示充值信息(不依赖 agent_type,只看 pay_channel) $find['pay_channel'] = $topAgent['pay_channel']; $find['pay_channel_address'] = $topAgent['pay_channel_address']; } @@ -270,7 +270,7 @@ class Pcapi extends Controller{ $find['pay_channel'] = ''; $find['pay_channel_currency'] = []; $find['pay_channel_coin_chain'] = []; - if($topAgent['agent_type'] == 1){ + if($topAgent['pay_channel'] && $topAgent['pay_channel'] != 'OPR'){ // 现金线走支付渠道 $find['pay_channel'] = $topAgent['pay_channel']; $find['pay_channel_currency'] = []; @@ -284,6 +284,9 @@ class Pcapi extends Controller{ $find['pay_channel_coin_chain'] = json_decode($payChannelInfo['coin_chain'],true); } } + } elseif($topAgent['pay_channel'] == 'OPR'){ // 人工转帐上分:与 login 保持一致下发收款信息(此前 get_user_info 缺失,刷新会丢) + $find['pay_channel'] = 'OPR'; + $find['pay_channel_address'] = $topAgent['pay_channel_address']; } $find['manager'] = []; if($find['bet_type'] == 2){