ソースを参照

提取pid更新

zhaozhen 1 年間 前
コミット
78200c53da
共有1 個のファイルを変更した6 個の追加2 個の削除を含む
  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
         }