From 531ad171724ef812fc8513ba7653fe0f52517359 Mon Sep 17 00:00:00 2001 From: liapples Date: Tue, 14 Sep 2021 14:47:35 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E8=97=8F=E9=99=84=E5=8A=A0=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/ProductController.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/app/AdminSupplier/Controllers/ProductController.php b/app/AdminSupplier/Controllers/ProductController.php index 014c440..606c86d 100644 --- a/app/AdminSupplier/Controllers/ProductController.php +++ b/app/AdminSupplier/Controllers/ProductController.php @@ -76,22 +76,6 @@ class ProductController extends AdminController $show->field('know')->unescape()->as(fn($v) => preg_replace('/.*?<\/script>/is', '', $v)); $show->field('content')->unescape()->as(fn($v) => preg_replace('/.*?<\/script>/is', '', $v)); $show->field('verify_mobile','核销员手机'); - $show->field('extends', '附加信息') - ->unescape() - ->as(function ($v) { - $html = ''; - $arr = [ - 'project' => '服务项目', - 'date' => '时间', - 'tags' => '包含项目', - 'open_time' => '开放时间', - 'package' => '包含套餐', - ]; - foreach ($v as $k => $item) { - $html .= new Card(Table::make([$arr[$k] ?? '项目'], $item)); - } - return $html; - }); $show->field('created_at'); $show->field('updated_at'); });