From 3399f59e654ba4cb86dc2875b2246408c6d0d2d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Fri, 17 Feb 2023 14:19:15 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/api/event.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crmeb/app/api/event.php b/crmeb/app/api/event.php index 330a139c9..edd3af92c 100644 --- a/crmeb/app/api/event.php +++ b/crmeb/app/api/event.php @@ -17,8 +17,6 @@ return [ 'HttpEnd' => [], 'LogLevel' => [], 'LogWrite' => [], - 'UserLogin'=>[ -// \crmeb\listeners\user\UserLogin::class - ] + 'UserLogin'=> [] ] ]; From 5c0e18757b0586b7dee86831bb9090d0757ed023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Fri, 17 Feb 2023 14:20:07 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=96=87=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/uni-app/pages/admin/statistics/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/uni-app/pages/admin/statistics/index.vue b/template/uni-app/pages/admin/statistics/index.vue index 4fca25e4a..b83c4a3dd 100644 --- a/template/uni-app/pages/admin/statistics/index.vue +++ b/template/uni-app/pages/admin/statistics/index.vue @@ -49,7 +49,7 @@
- {{$t(`单位`)}}({{where.type == 1?$t(`元.`):$t(`分.`)}}) + {{$t(`单位`)}}({{where.type == 1?$t(`元.`):$t(`份`)}})
From 243634c5507f1e2441037cf4ac038c97e0081f53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Fri, 17 Feb 2023 14:24:21 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/api/common.php | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/crmeb/app/api/common.php b/crmeb/app/api/common.php index 28de6a816..7d8dbf991 100644 --- a/crmeb/app/api/common.php +++ b/crmeb/app/api/common.php @@ -9,35 +9,3 @@ // | Author: CRMEB Team // +---------------------------------------------------------------------- -/** - * 设置浏览信息 - * @param $uid - * @param int $product_id - * @param int $cate - * @param string $type - * @param string $content - * @param int $min - */ -function set_view($uid, $product_id = 0, $cate = 0, $type = '', $content = '', $min = 20) -{ - //TODO 待优化 - $Db = new \app\models\store\StoreVisit; - $view = $Db->where('uid', $uid)->where('product_id', $product_id)->field('count,add_time,id')->find(); - if ($view && $type != 'search') { - $time = time(); - if (($view['add_time'] + $min) < $time) { - $Db->where(['id' => $view['id']])->update(['count' => $view['count'] + 1, 'add_time' => time()]); - } - } else { - $cate = explode(',', $cate)[0]; - $Db->insert([ - 'add_time' => time(), - 'count' => 1, - 'product_id' => $product_id, - 'cate_id' => $cate, - 'type' => $type, - 'uid' => $uid, - 'content' => $content - ]); - } -}