短信异常修复

This commit is contained in:
jianghanbo 2024-08-11 17:37:32 +08:00
parent e7e757dbfc
commit 9fe2effc94
1 changed files with 7 additions and 5 deletions

View File

@ -42,6 +42,7 @@ class Orders {
$ttl = 86400; $ttl = 86400;
$result = []; $result = [];
$admins = array_column($admins, null, 'id');
foreach($orders as $order) { foreach($orders as $order) {
$admin_mobile = $admins[$order->admin_id] ?? ''; $admin_mobile = $admins[$order->admin_id] ?? '';
@ -49,6 +50,7 @@ class Orders {
$result[$order->sn] = Error::undefined('client mobile or admin mobile invalid'); $result[$order->sn] = Error::undefined('client mobile or admin mobile invalid');
continue; continue;
} }
$admin_mobile = $admin_mobile['mobile'] ?? '';
if (Blacks::CExists($order->mobile)) { if (Blacks::CExists($order->mobile)) {
$result[$order->sn] = Error::ERR_SMS_BLACKS; $result[$order->sn] = Error::ERR_SMS_BLACKS;