Commit 0fb5ac8e authored by hj's avatar hj

更新提交

parent 889256b8
......@@ -38,7 +38,8 @@ class ChemSrcService
preg_match_all($wuhuaDetailRegx, $wuhuaHtml['wuhuaHtml'],$wuhuaDetailList);
if(!empty($wuhuaDetailList)){
foreach($wuhuaDetailList['title'] as $key => $title){
$wuhuaList[$title] = str_replace( " ", "", str_replace( "\r\n", "", $wuhuaDetailList['content'][$key]));
$wuhuaList[] = ["key" => $title, "value" => str_replace( " ", "", str_replace( "\r\n", "", $wuhuaDetailList['content'][$key]))];
//$wuhuaList[$title] = str_replace( " ", "", str_replace( "\r\n", "", $wuhuaDetailList['content'][$key]));
}
}
if(!empty($wuhuaList)){
......@@ -48,13 +49,16 @@ class ChemSrcService
'cas' => $cas
], [
'mol_id' => $molId,
'content' => json_encode([$wuhuaList], JSON_UNESCAPED_UNICODE)
'content' => json_encode($wuhuaList, JSON_UNESCAPED_UNICODE)
]);
}
}
return true;
}
}catch(\Throwable $exception){
/*if(stripos($exception->getMessage(), '403')){
}*/
SimpleLogs::writeLog($exception->getMessage(), __CLASS__.':batchUpdateCas', 'error');
}
}
......
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