Browse Source

提取pid-更新

zhaozhen 2 years ago
parent
commit
96a51caf0a
1 changed files with 4 additions and 4 deletions
  1. 4 4
      app/Models/MomentTask.php

+ 4 - 4
app/Models/MomentTask.php

65
 
65
 
66
         # 企微
66
         # 企微
67
         if( !empty($corpids) ) {
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
         if($creatorId) {
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
 
100
 
101
         # 企微
101
         # 企微
102
         if( !empty($corpids) ) {
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
         if($creatorId) {
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
         # 按起始发送时间查询