fix: 彻底解耦存取款显隐与agent_type,只按pay_channel下发(防错配复发)
根因:登录/用户信息接口死卡 agent_type==1 才下发支付渠道,靠运营手动保持 agent_type 与 pay_channel 一致,一改错(如人工线配在线通道)用户就没存取款。 改为只看 pay_channel:OPR=人工(下发收款信息),非空非OPR=在线(下发币种/链),空=隐藏。 顺带修复 get_user_info 此前缺 OPR 分支导致人工线用户刷新丢充值信息的隐患。 覆盖移动端(Portal)+PC,均走此接口。170 错配存量已单独 UPDATE 修复。
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user