add debug
This commit is contained in:
parent
cc9d78c657
commit
3559d3d908
@ -90,6 +90,8 @@ if ($opts->cron) {
|
||||
$jalStmt->bindValue('file', $fileName);
|
||||
$jalStmt->execute();
|
||||
if ($jalStmt->rowCount() == 0) {
|
||||
|
||||
echo date('Y-m-d H:i:s')." - ".$fileName.": non trouvé donc inséré\n";
|
||||
$data = array(
|
||||
'pdfName' => $fileName,
|
||||
'idJalEd' => $idJalEd,
|
||||
@ -112,6 +114,8 @@ if ($opts->cron) {
|
||||
$exist = $jalStmt->fetch(\PDO::FETCH_OBJ);
|
||||
// --- Vérification de la taille des fichiers
|
||||
if ($fileSize != $exist->pdfSize) {
|
||||
|
||||
echo date('Y-m-d H:i:s')." - ".$fileName.": DateDeliver reset\n";
|
||||
// --- Renseigner octde.jalpdfsed
|
||||
try {
|
||||
$isInsert = $conn->update('octde.jalpdfsed', array(
|
||||
|
Loading…
Reference in New Issue
Block a user