短信异常修复
This commit is contained in:
parent
e7e757dbfc
commit
9fe2effc94
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue