Pārlūkot izejas kodu

提取pid更新

zhaozhen 1 gadu atpakaļ
vecāks
revīzija
78200c53da
1 mainītis faili ar 6 papildinājumiem un 2 dzēšanām
  1. 6 2
      app/Console/Commands/Test.php

+ 6 - 2
app/Console/Commands/Test.php

@@ -695,11 +695,15 @@ class Test extends Command
695 695
                     continue;
696 696
                 }
697 697
 
698
+                $pid = null;
698 699
                 $res = MassMsgService::drawPid($data, $pid, 'test');
699 700
                 if ($res) {
700
-                    if (!is_null($pid)) $upDb['pid'] = $pid;
701
+                    if (!is_null($pid)) {
702
+                        $upDb['pid'] = $pid;
703
+                        $item->update($upDb);
704
+                    }
705
+
701 706
 
702
-                    $item->update($upDb);
703 707
                 }
704 708
             }
705 709
         }