From a441d9f666658497b362cebe7586c50cfd3019e4 Mon Sep 17 00:00:00 2001
From: zhangzy <15710074375@163.com>
Date: 星期三, 03 二月 2021 09:53:59 +0800
Subject: [PATCH] 'save'

---
 app/Http/Controllers/Api/v1/FaceController.php   |    2 +-
 app/Http/Controllers/Api/v1/SystemController.php |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/Http/Controllers/Api/v1/FaceController.php b/app/Http/Controllers/Api/v1/FaceController.php
index 2517091..43f8e01 100644
--- a/app/Http/Controllers/Api/v1/FaceController.php
+++ b/app/Http/Controllers/Api/v1/FaceController.php
@@ -235,7 +235,7 @@
         }
         $paramArr = json_decode($request->paramJson, true);
         if(count($paramArr)!=0) {
-            if(count($paramArr[0])!=4) {
+            if(count($paramArr[0])!=6) {
                 return $this->_response([], ResponseCode::PARAM_ERROR, '鏍煎紡閿欒');
             }
         }
diff --git a/app/Http/Controllers/Api/v1/SystemController.php b/app/Http/Controllers/Api/v1/SystemController.php
index b842d23..2ca1fa6 100644
--- a/app/Http/Controllers/Api/v1/SystemController.php
+++ b/app/Http/Controllers/Api/v1/SystemController.php
@@ -140,9 +140,7 @@
             $where['b.appType'] = 2;
             $where['b.isDelete'] = 0;
             $orderBy = ["b.fsort" => 'asc'];
-            $select = ["b.id as menuId", 'b.menuName', 'b.isDefault', 'b.jumpModule',
-                \DB::raw("CONCAT('" . MPFILE_PATH . "', " . "b.imageChecked" . ") AS 'imageChecked'"),
-                \DB::raw("CONCAT('" . MPFILE_PATH . "', " . "b.imageUnChecked" . ") AS 'imageUnChecked'")];
+            $select = ["b.id as menuId", 'b.menuName', 'b.isDefault', 'b.jumpModule', "b.imageChecked", "b.imageUnChecked"];
             $query = BottomModel::queryMenuJoinList();
             $bottomMenuList = BottomModel::getDataJoinList($query, $where, $select, $orderBy)->toArray();
             foreach($bottomMenuList as $key => $val)
@@ -155,6 +153,8 @@
                     }
                     $typeNum = 1;
                 }
+                $bottomMenuList[$key]['imageChecked'] = $this->fun->stitchingPath($val['imageChecked']);
+                $bottomMenuList[$key]['imageUnChecked'] = $this->fun->stitchingPath($val['imageUnChecked']);
             }
             $this->redis->set($_key . $deviceType . $version, json_encode($bottomMenuList, true));
         }

--
Gitblit v1.8.0