fix: alinPay.php 补漏 limit_agent 空数组放行逻辑
This commit is contained in:
@@ -50,8 +50,9 @@ trait alinPay
|
|||||||
return json(['status' => 0, 'message' => '所在地区暂不支持充值']);
|
return json(['status' => 0, 'message' => '所在地区暂不支持充值']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$isAllow = false;
|
$limitAgents = $area_list[$user['area_id']]['limit_agent'];
|
||||||
foreach ($area_list[$user['area_id']]['limit_agent'] as $allowAgentId) {
|
$isAllow = empty($limitAgents);
|
||||||
|
foreach ($limitAgents as $allowAgentId) {
|
||||||
if (in_array($allowAgentId, $zdlIdArr)) {
|
if (in_array($allowAgentId, $zdlIdArr)) {
|
||||||
$isAllow = true;
|
$isAllow = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user