2 Commits 48c0f3abba ... 40f3d6d802

Autor SHA1 Mensaje Fecha
  zhaozhen 40f3d6d802 Merge branch 'master' of http://101.200.220.49:8001/houxiaohua/playlet %!s(int64=2) %!d(string=hace) años
  zhaozhen 96a51caf0a 提取pid-更新 %!s(int64=2) %!d(string=hace) años
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  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
         # 按起始发送时间查询