From dfea53e36ce43acc1a9d40ac70efac52981212d2 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Mon, 21 Apr 2025 14:19:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=9F=9F=E5=90=8D=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E8=8E=B7=E5=8F=96=E4=BD=9C=E8=80=85=20URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 34 ++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index 8f98454a..84e8b460 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -1837,7 +1837,7 @@ class Information extends CI_Controller if (!empty($author)) { $data_H1['author'] = $author->OPI_FirstName; $data_H1['OPI_Code'] = $author->OPI_Code; - $data_H1['author_url'] = $this->get_author_url($author->OPI_Code); + $data_H1['author_url'] = $this->get_author_url('www.globalhighlights.com', $author->OPI_Code); } else { $author_web = $this->Infoauthors_model->detail_by_id($information->ic_author); //原始作者,可能是在线作者等 if (!empty($author_web)) { @@ -5637,24 +5637,24 @@ class Information extends CI_Controller return true; } - public function get_author_url($OPI_Code) + public function get_author_url($domain_name, $OPI_Code) { $OPI_CodeUrls = [ - 'zzy' => 'https://www.globalhighlights.com/aboutus/team/ruru-zhou', - '2' => 'https://www.globalhighlights.com/aboutus/team/ruru-zhou', - 'HWT' => 'https://www.globalhighlights.com/aboutus/team/mike-he', - 'CA' => 'https://www.globalhighlights.com/aboutus/team/carol-wang', - 'SI' => 'https://www.globalhighlights.com/aboutus/team/simon-huang', - 'TJQ' => 'https://www.globalhighlights.com/aboutus/team/cindy-tang', - 'CLA' => 'https://www.globalhighlights.com/aboutus/team/claire-wang', - 'Albee' => 'https://www.globalhighlights.com/aboutus/team/albee-ning', - 'KM' => 'https://www.globalhighlights.com/aboutus/team/kimi-huang', - 'RY' => 'https://www.globalhighlights.com/aboutus/team/rita-yu', - 'QMY' => 'https://www.globalhighlights.com/aboutus/team/chris-quan', - 'CY' => 'https://www.globalhighlights.com/aboutus/team/cynthia-li', - 'Vicky' => 'https://www.globalhighlights.com/aboutus/team/vicky-leng', - 'LXW' => 'https://www.globalhighlights.com/aboutus/team/carper-li', - 'zzyGH' => 'https://www.globalhighlights.com/aboutus/team/ruru-zhou', + 'zzy' => 'https://' . $domain_name .'/aboutus/team/ruru-zhou', + '2' => 'https://' . $domain_name .'/aboutus/team/ruru-zhou', + 'HWT' => 'https://' . $domain_name .'/aboutus/team/mike-he', + 'CA' => 'https://' . $domain_name .'/aboutus/team/carol-wang', + 'SI' => 'https://' . $domain_name .'/aboutus/team/simon-huang', + 'TJQ' => 'https://' . $domain_name .'/aboutus/team/cindy-tang', + 'CLA' => 'https://' . $domain_name .'/aboutus/team/claire-wang', + 'Albee' => 'https://' . $domain_name .'/aboutus/team/albee-ning', + 'KM' => 'https://' . $domain_name .'/aboutus/team/kimi-huang', + 'RY' => 'https://' . $domain_name .'/aboutus/team/rita-yu', + 'QMY' => 'https://' . $domain_name .'/aboutus/team/chris-quan', + 'CY' => 'https://' . $domain_name .'/aboutus/team/cynthia-li', + 'Vicky' => 'https://' . $domain_name .'/aboutus/team/vicky-leng', + 'LXW' => 'https://' . $domain_name .'/aboutus/team/carper-li', + 'zzyGH' => 'https://' . $domain_name .'/aboutus/team/ruru-zhou', ]; if (!empty($OPI_Code) && array_key_exists($OPI_Code, $OPI_CodeUrls)) {