Bladeren bron

提取pid更新

zhaozhen 2 jaren geleden
bovenliggende
commit
1b5e3b85ff
2 gewijzigde bestanden met toevoegingen van 44 en 79 verwijderingen
  1. 39 74
      app/Console/Commands/Test.php
  2. 5 5
      app/Service/MassMsgService.php

File diff suppressed because it is too large
+ 39 - 74
app/Console/Commands/Test.php


+ 5 - 5
app/Service/MassMsgService.php

@@ -122,12 +122,12 @@ class MassMsgService
122 122
                 }
123 123
             }
124 124
 
125
-            if (count($drawPids) > 1) {
126
-                Log::logError('提取推广链接PID存在多个值', $datum, $logName);
127
-                return false;
128
-            }
125
+//            if (count($drawPids) > 1) {
126
+//                Log::logError('提取推广链接PID存在多个值', $datum, $logName);
127
+//                return false;
128
+//            }
129 129
 
130
-            if (!empty($drawPids)) $pid = current($drawPids);
130
+            if (!empty($drawPids)) $pid = json_encode(array_filter($drawPids));
131 131
 
132 132
             Log::logInfo('提取结束', $attachments, $logName);
133 133
         }