Kaynağa Gözat

提取pid更新

zhaozhen 1 yıl önce
ebeveyn
işleme
78200c53da
1 değiştirilmiş dosya ile 6 ekleme ve 2 silme
  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
         }