fix: alinPay.php 补漏 limit_agent 空数组放行逻辑
This commit is contained in:
@@ -50,8 +50,9 @@ trait alinPay
|
||||
return json(['status' => 0, 'message' => '所在地区暂不支持充值']);
|
||||
}
|
||||
|
||||
$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