cqp 2 месяцев назад
Родитель
Сommit
a7236509ab
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      app/Service/OrderService.php

+ 3 - 3
app/Service/OrderService.php

@@ -583,16 +583,16 @@ class OrderService extends Service
             ->where('b.type',WxEmployeeOfficial::login_type_one)
             ->where('b.appid',$appid)
             ->whereIn('a.reminder_id', array_column($reminders,'id'))
-            ->select('a.reminder_id','a.customer_supply_id','a.open_id')
+            ->select('a.reminder_id','a.customer_supply_id','a.openid')
             ->get()->toArray();
         if (empty($details)) return [false, '未找到任何可发送的微信消息的供应商'];
 
         // 按 reminder_id 分组
         $detailMap = [];
         foreach ($details as $d) {
-            if (! empty($d['open_id'])) {
+            if (! empty($d['openid'])) {
                 $detailMap[$d['reminder_id']][] = [
-                    'open_id' => $d['open_id'],
+                    'open_id' => $d['openid'],
                     'employee_id' => $d['customer_supply_id'],
                 ];
             }