|
...
|
...
|
@@ -79,10 +79,10 @@ class DeleteProductCategory extends Command |
|
|
|
$this->updateCategory();
|
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
$noticeLogModel->edit(['status'=>NoticeLog::STATUS_SUCCESS],['id'=>$item['id']]);
|
|
|
|
echo 'success:' . $item['id'] . PHP_EOL;
|
|
|
|
echo 'success:' . $item['id'] . '执行时间:'.date('Y-m-d H:i:s') . PHP_EOL;
|
|
|
|
}catch (\Exception $e){
|
|
|
|
echo 'error:' . $item['id'] . $e->getMessage() . PHP_EOL;
|
|
|
|
errorLog('delete_product_category删除失败', $item, $e);
|
|
|
|
errorLog('delete_product_category删除失败'.',执行时间:'.date('Y-m-d H:i:s'), $item, $e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
...
|
...
|
|