From 9c3f828fc37fd03ae958946d67b6c216be4dd703 Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 9 Dec 2020 17:54:47 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E8=B0=83=E6=95=B4=E7=BC=96?= =?UTF-8?q?=E5=8F=B7=E7=94=9F=E6=88=90=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/data/controller/NewsItem.php | 2 +- app/data/controller/ShopGoods.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/data/controller/NewsItem.php b/app/data/controller/NewsItem.php index f535c9137..520ee785f 100644 --- a/app/data/controller/NewsItem.php +++ b/app/data/controller/NewsItem.php @@ -94,7 +94,7 @@ class NewsItem extends Controller protected function _form_filter(array &$data) { if (empty($data['code'])) { - $data['code'] = CodeExtend::uniqidNumber(15, 'A'); + $data['code'] = CodeExtend::uniqidNumber(14, 'A'); } if ($this->request->isGet()) { $query = $this->app->db->name('DataNewsMark')->where(['deleted' => 0, 'status' => 1]); diff --git a/app/data/controller/ShopGoods.php b/app/data/controller/ShopGoods.php index 267808e9e..c8184793b 100644 --- a/app/data/controller/ShopGoods.php +++ b/app/data/controller/ShopGoods.php @@ -136,7 +136,7 @@ class ShopGoods extends Controller protected function _copy_form_filter(array &$data) { if ($this->request->isPost()) { - $data['code'] = CodeExtend::uniqidNumber(12, 'G'); + $data['code'] = CodeExtend::uniqidNumber(14, 'G'); } } @@ -150,7 +150,7 @@ class ShopGoods extends Controller protected function _form_filter(array &$data) { if (empty($data['code'])) { - $data['code'] = CodeExtend::uniqidNumber(12, 'G'); + $data['code'] = CodeExtend::uniqidNumber(14, 'G'); } if ($this->request->isGet()) { $data['mark'] = str2arr($data['mark'] ?? '');