From 752200ea93e2ed2d60c55319b5c4bede19b72f52 Mon Sep 17 00:00:00 2001 From: TL Date: Tue, 30 Aug 2022 10:12:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E5=AE=B6=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- beike/Repositories/CountryRepo.php | 3 +-- resources/lang/zh_cn/admin/common.php | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/beike/Repositories/CountryRepo.php b/beike/Repositories/CountryRepo.php index 46e26463..c7693230 100644 --- a/beike/Repositories/CountryRepo.php +++ b/beike/Repositories/CountryRepo.php @@ -23,8 +23,7 @@ class CountryRepo */ public static function create($data) { - $id = Country::query()->insertGetId($data); - return self::find($id); + return Country::query()->create($data); } /** diff --git a/resources/lang/zh_cn/admin/common.php b/resources/lang/zh_cn/admin/common.php index 729fd73b..b11520a2 100644 --- a/resources/lang/zh_cn/admin/common.php +++ b/resources/lang/zh_cn/admin/common.php @@ -63,6 +63,6 @@ return [ 'rmas_index' => '售后管理', 'customers_index' => '客户列表', 'customer_groups_index' => '客户组', - 'countries_index' => '国家', - 'zones_index' => '省份', + 'countries_index' => '国家管理', + 'zones_index' => '省份管理', ];