From 6f759ced2952462d63abdd93bed159ea09c09d16 Mon Sep 17 00:00:00 2001 From: XiaoLFeng Date: Sun, 9 Jul 2023 10:36:54 +0800 Subject: [PATCH] =?UTF-8?q?EditFeature=EF=BC=9A=E9=85=8D=E7=BD=AE=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 处理数据编辑修改内容 Signed-off-by: XiaoLFeng --- app/Http/Controllers/DataBase.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Controllers/DataBase.php b/app/Http/Controllers/DataBase.php index fc73829..bfce5eb 100644 --- a/app/Http/Controllers/DataBase.php +++ b/app/Http/Controllers/DataBase.php @@ -21,6 +21,10 @@ public function __construct() ->toArray(); foreach ($result as $value) { $value->blog_rss_judge ? $value->blog_rss_judge = 1 : $value->blog_rss_judge = 0; + if ($value->blog_sel_color == 8) $value->blog_sel_color = 6; + if ($value->blog_sel_color == 2) $value->blog_sel_color = 8; + if ($value->blog_sel_color == 7) $value->blog_sel_color = 4; + if ($value->blog_sel_color == 5) $value->blog_sel_color = 3; DB::table('blog_link') ->insert([ 'blogName' => $value->blog_name,