From 328adaf3a4841d32e3f9bc58913e6487f46c5785 Mon Sep 17 00:00:00 2001 From: shirne Date: Sun, 11 Aug 2024 14:13:34 +0800 Subject: [PATCH] credit taglib --- src/config/index/template.php | 11 ++++++----- .../taglib => extend/modules/credit/tablib}/Goods.php | 8 ++++---- 2 files changed, 10 insertions(+), 9 deletions(-) rename src/{application/common/taglib => extend/modules/credit/tablib}/Goods.php (91%) diff --git a/src/config/index/template.php b/src/config/index/template.php index f5a40b7f..97d94eeb 100644 --- a/src/config/index/template.php +++ b/src/config/index/template.php @@ -1,4 +1,5 @@ '20181109', - 'view_path'=>Env::get('root_path').'template'.DIRECTORY_SEPARATOR.'blog'.DIRECTORY_SEPARATOR, - 'independence'=>false, - 'taglib_pre_load'=>'app\common\taglib\Article,app\common\taglib\Product,app\common\taglib\Goods,app\common\taglib\Extendtag' -]; \ No newline at end of file + 'static_version' => '20181109', + 'view_path' => Env::get('root_path') . 'template' . DIRECTORY_SEPARATOR . 'blog' . DIRECTORY_SEPARATOR, + 'independence' => false, + 'taglib_pre_load' => 'app\common\taglib\Article,app\common\taglib\Product,app\common\taglib\Extendtag,modules\credit\taglib\Goods' +]; diff --git a/src/application/common/taglib/Goods.php b/src/extend/modules/credit/tablib/Goods.php similarity index 91% rename from src/application/common/taglib/Goods.php rename to src/extend/modules/credit/tablib/Goods.php index 3c502962..a0469aa3 100644 --- a/src/application/common/taglib/Goods.php +++ b/src/extend/modules/credit/tablib/Goods.php @@ -1,6 +1,6 @@ parseArg($tag['category']) : ''; if (is_string($category) && strpos($category, "'") === 0) { - $category = "\\app\\common\\facade\\GoodsCategoryFacade::getCategoryId(" . $category . ")"; + $category = "\\modules\\credit\\facade\\GoodsCategoryFacade::getCategoryId(" . $category . ")"; } $parseStr = ''; return $parseStr;