From a673c09746603caa979151c8a92dcf380c3742bc Mon Sep 17 00:00:00 2001 From: Council Date: Sat, 25 Apr 2026 08:54:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(JsBarcode):=20=E7=94=A8=20ShopXO=20?= =?UTF-8?q?=E8=87=AA=E5=B8=A6=E6=9C=AC=E5=9C=B0=E6=96=87=E4=BB=B6=E6=9B=BF?= =?UTF-8?q?=E4=BB=A3=20CDN=EF=BC=88=E4=BF=AE=E5=A4=8D=E6=9D=A1=E5=BD=A2?= =?UTF-8?q?=E7=A0=81=E4=B8=8D=E6=98=BE=E7=A4=BA=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ticket_wallet.html: cdn.jsdelivr.net → {{}}static/common/lib/JsBarcode/JsBarcode.all.min.js - Index.php: 控制器显式传递 public_host(插件不继承 Common 基类) - ShopXO 自带 JsBarcode v3.11.5,比原 CDN 的 3.11.0 还新 --- shopxo/app/plugins/vr_ticket/index/Index.php | 3 +++ .../app/plugins/vr_ticket/view/goods/ticket_wallet.html | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/shopxo/app/plugins/vr_ticket/index/Index.php b/shopxo/app/plugins/vr_ticket/index/Index.php index f931d8b..b97a465 100755 --- a/shopxo/app/plugins/vr_ticket/index/Index.php +++ b/shopxo/app/plugins/vr_ticket/index/Index.php @@ -51,8 +51,11 @@ class Index } // 渲染票夹页面 + // 注意:插件不继承 index/Common,故 $public_host 不会自动赋值 + // 使用 Config('shopxo.host_url') 或显式传递均可,这里用 Config() 保持一致 return MyView('../../../plugins/vr_ticket/view/goods/ticket_wallet', [ 'user' => $user, + 'public_host' => \think\facade\Config::get('shopxo.host_url'), ]); } } diff --git a/shopxo/app/plugins/vr_ticket/view/goods/ticket_wallet.html b/shopxo/app/plugins/vr_ticket/view/goods/ticket_wallet.html index 67f3ea9..44ef069 100644 --- a/shopxo/app/plugins/vr_ticket/view/goods/ticket_wallet.html +++ b/shopxo/app/plugins/vr_ticket/view/goods/ticket_wallet.html @@ -2,7 +2,7 @@ + href="{{$public_host}}plugins/vr_ticket/static/css/ticket.css?v=" /> @@ -32,9 +32,9 @@ - - + href="{{$public_host}}plugins/vr_ticket/static/css/ticket_card.css?v=" /> + +