zhaozhen преди 1 година
родител
ревизия
78200c53da
променени са 1 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 6 2
      app/Console/Commands/Test.php

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

695
                     continue;
695
                     continue;
696
                 }
696
                 }
697
 
697
 
698
+                $pid = null;
698
                 $res = MassMsgService::drawPid($data, $pid, 'test');
699
                 $res = MassMsgService::drawPid($data, $pid, 'test');
699
                 if ($res) {
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
         }