fix: 移除 limit_agent 白名单限制,所有代理下会员均可充值/提现
- config.php: area_id=3 的 limit_agent 改为空数组 - Order.php/epayPay.php/ccpayPay.php: 空数组时跳过白名单检查
This commit is contained in:
@@ -43,8 +43,9 @@ trait ccpayPay
|
||||
return json(['Success' => 1, 'Data' => $data]);
|
||||
}
|
||||
|
||||
$isAllow = false;
|
||||
foreach ($area_list[$user['area_id']]['limit_agent'] as $allowAgentId) {
|
||||
$limitAgents = $area_list[$user['area_id']]['limit_agent'];
|
||||
$isAllow = empty($limitAgents);
|
||||
foreach ($limitAgents as $allowAgentId) {
|
||||
if (in_array($allowAgentId, $zdlIdArr)) {
|
||||
$isAllow = true;
|
||||
}
|
||||
|
||||
@@ -88,8 +88,9 @@ trait epayPay
|
||||
return json(['Success' => 1, 'Data' => $data]);
|
||||
}
|
||||
|
||||
$isAllow = false;
|
||||
foreach ($area_list[$user['area_id']]['limit_agent'] as $allowAgentId) {
|
||||
$limitAgents = $area_list[$user['area_id']]['limit_agent'];
|
||||
$isAllow = empty($limitAgents);
|
||||
foreach ($limitAgents as $allowAgentId) {
|
||||
if (in_array($allowAgentId, $zdlIdArr)) {
|
||||
$isAllow = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user