Kaynağa Gözat

提取pid-更新

zhaozhen 2 yıl önce
ebeveyn
işleme
96a51caf0a
1 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. 4 4
      app/Models/MomentTask.php

+ 4 - 4
app/Models/MomentTask.php

@@ -65,12 +65,12 @@ class MomentTask extends Model
65 65
 
66 66
         # 企微
67 67
         if( !empty($corpids) ) {
68
-            $query->where('corpid', $corpids);
68
+            $query->whereIn('corpid', is_array($corpids)?$corpids:[$corpids]);
69 69
         }
70 70
 
71 71
         # 按创建人查询
72 72
         if($creatorId) {
73
-            $query->where('admin_id', $creatorId);
73
+            $query->whereIn('admin_id', is_array($creatorId)?$creatorId:[$creatorId]);
74 74
         }
75 75
 
76 76
         # 按起始发送时间查询
@@ -100,12 +100,12 @@ class MomentTask extends Model
100 100
 
101 101
         # 企微
102 102
         if( !empty($corpids) ) {
103
-            $query->where('corpid', $corpids);
103
+            $query->whereIn('corpid', is_array($corpids)?$corpids:[$corpids]);
104 104
         }
105 105
 
106 106
         # 按创建人查询
107 107
         if($creatorId) {
108
-            $query->where('admin_id', $creatorId);
108
+            $query->whereIn('admin_id', is_array($creatorId)?$creatorId:[$creatorId]);
109 109
         }
110 110
 
111 111
         # 按起始发送时间查询