Преглед на файлове

Merge remote-tracking branch 'origin/master'

shensong00 преди 2 години
родител
ревизия
4d0ee226c0
променени са 1 файла, в които са добавени 15 реда и са изтрити 1 реда
  1. 15 1
      app/Console/Commands/MassMsgSend.php

+ 15 - 1
app/Console/Commands/MassMsgSend.php

@@ -88,6 +88,9 @@ class MassMsgSend extends Command
88 88
         $tagList = $ruleInfo['tag_list'];
89 89
         $excludeTagList = $ruleInfo['exclude_tag_list'];
90 90
         $createdAt = $ruleInfo['created_at'];
91
+        $payStatus = $ruleInfo['pay_status'];
92
+        $payNumMin = $ruleInfo['pay_num_min'];
93
+        $payNumMax = $ruleInfo['pay_num_max'];
91 94
 
92 95
         # 处理附件内容中的素材ID
93 96
         $attachments = json_decode($attachments, true);
@@ -95,7 +98,6 @@ class MassMsgSend extends Command
95 98
 
96 99
         $search = array();
97 100
 
98
-
99 101
         if($customerFilter){
100 102
             if(!empty($gender)) {
101 103
                 $search['gender'] = $gender;
@@ -136,6 +138,18 @@ class MassMsgSend extends Command
136 138
 
137 139
                 $search['tag_list'] = explode(',', $tagList);
138 140
             }
141
+
142
+            if(is_numeric($payStatus)) {
143
+                $search['pay_status'] = $payStatus;
144
+            }
145
+
146
+            if(is_numeric($payNumMin)) {
147
+                $search['pay_num_min'] = $payNumMin;
148
+            }
149
+
150
+            if(is_numeric($payNumMax)) {
151
+                $search['pay_num_max'] = $payNumMax;
152
+            }
139 153
         }
140 154
 
141 155