Commit 4b82e841 authored by hj's avatar hj

更新提交

parent 0a879949
......@@ -299,6 +299,16 @@ class CheMenuService
{
if(!$productPageContent || !$productPageContent['content']) return false;
try{
SimpleLogs::writeLog('数据保存开始。数据:'.json_encode($productPageContent['content'], JSON_UNESCAPED_UNICODE), 'chemenu info', 'info');
$this->apiService->saveProduct($productPageContent['content']);
}catch(\Throwable $exception){
$productJobContent = [
'params' => ['content' => $productPageContent['content']],
'consumer' => __CLASS__,
'method' => 'productSave'
];
$this->apiService->pushQueue($productJobContent,'chemenu_product_save');
}
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment