From 83796ddaadefd48c7f2efb6da3ba6838275a7432 Mon Sep 17 00:00:00 2001
From: 王智 <wz@bronet.cn>
Date: Sat, 31 Oct 2020 14:09:02 +0800
Subject: [PATCH] 修改

---
 application/api/controller/Common.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/api/controller/Common.php b/application/api/controller/Common.php
index 6a97af5..9585694 100644
--- a/application/api/controller/Common.php
+++ b/application/api/controller/Common.php
@@ -714,7 +714,7 @@ class Common extends Api
         }
         $map['BatteryCode'] = ['LIKE', '%' . $Code . '%'];
         //用户电池分类ID
-        $Id = Db::name('battery_code')->where($map)->value('id');
+        $Id = Db::name('battery_code')->where($map)->find();
         if (empty($Id)) {
             $this->error('系统没有找到该电池分类', 0);
             die;
--
libgit2 0.24.0