小bug调整

This commit is contained in:
wangjinlei
2025-04-16 10:01:04 +08:00
parent ac0cd5ba1d
commit c8e66d1518

View File

@@ -792,7 +792,7 @@ function my_doiToFrag2($data)
// $year = $math[0];
// $qbj=trim(substr($frag,0,stripos($frag,$year))) ;
if (mb_substr_count($frag, '.') != 3) {
$f = $frag . " Available at: " . PHP_EOL . "http://doi.org/" . $data['refer_doi'];
$f = $frag . " Available at: " . PHP_EOL . "https://doi.org/" . $data['refer_doi'];
$update['refer_type'] = "other";
$update['refer_frag'] = $f;
$update['cs'] = 1;
@@ -809,7 +809,7 @@ function my_doiToFrag2($data)
$update['refer_type'] = "journal";
$update['is_ja'] = $joura == trim($bj[0]) ? 0 : 1;
$update['dateno'] = str_replace(' ', '', str_replace('-', '', trim($bj[1])));
$update['doilink'] = strpos($data['refer_doi'],"http")===false?"http://doi.org/" . $data['refer_doi']:$data['refer_doi'];
$update['doilink'] = strpos($data['refer_doi'],"http")===false?"https://doi.org/" . $data['refer_doi']:$data['refer_doi'];
$update['cs'] = 1;
}
}