This commit is contained in:
wangjinlei
2022-11-08 18:23:20 +08:00
parent 45532ef702
commit 4d176060f4
7 changed files with 102 additions and 9 deletions

View File

@@ -298,7 +298,8 @@ function my_doiToFrag1($data){
$f = $data['refer_content'];
}else{
$c_frag = rtrim($frag,'.');
$f = substr_replace($c_frag,PHP_EOL,strripos($c_frag,"http"),0);
// $f = substr_replace($c_frag,PHP_EOL,strripos($c_frag,"http"),0);
$f = $c_frag." Available at: ".PHP_EOL."http://doi.org/".$data['refer_doi'];
$cs = 1;
}
$p_refer_obj->where('p_refer_id',$data['p_refer_id'])->update(['refer_frag'=>$f,"cs"=>$cs]);