Przeglądaj źródła

出错时返回exit(1)

visuddhinanda 4 lat temu
rodzic
commit
40bd1bf643
1 zmienionych plików z 4 dodań i 3 usunięć
  1. 4 3
      public/app/install/db_insert_templet_cli.php

+ 4 - 3
public/app/install/db_insert_templet_cli.php

@@ -151,15 +151,16 @@ for ($from=$_from; $from <=$_to ; $from++) {
 
 		$log = "$from, $FileName, error, $error[2] \r\n";
 		//fwrite($myLogFile, $log);
+		exit(1);
 	} else {
 		
 		echo "updata $row recorders.".PHP_EOL;
-	}
-
-
 
+	}
 }
 
+exit();
+