From 1f122be8dc050e368669605c5aaab9194eb4ee78 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Tue, 2 Jul 2024 15:32:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=AD=BE=E5=88=B0=E5=88=97=E8=A1=A8API=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/lists/user_sign/UserSignLists.php | 2 ++ app/common/logic/UserSignLogic.php | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/api/lists/user_sign/UserSignLists.php b/app/api/lists/user_sign/UserSignLists.php index 44e4697fb..e8b763631 100644 --- a/app/api/lists/user_sign/UserSignLists.php +++ b/app/api/lists/user_sign/UserSignLists.php @@ -43,6 +43,7 @@ class UserSignLists extends BaseApiDataLists implements ListsSearchInterface */ public function lists(): array { + $type=$this->request->get('type',1); $mark=$this->request->get('mark',''); if($type==1){ @@ -54,6 +55,7 @@ class UserSignLists extends BaseApiDataLists implements ListsSearchInterface }elseif($mark==2){ $this->searchWhere[]=['financial_pm','=',0]; } + $this->searchWhere[]=['uid','=',$this->userId]; $list=UserSign::where($this->searchWhere)->order('id desc') ->limit($this->limitOffset, $this->limitLength) ->select()->each(function ($item){ diff --git a/app/common/logic/UserSignLogic.php b/app/common/logic/UserSignLogic.php index 91a55b93e..b320aed4a 100644 --- a/app/common/logic/UserSignLogic.php +++ b/app/common/logic/UserSignLogic.php @@ -27,9 +27,6 @@ class UserSignLogic extends BaseLogic $write = self::write($order, $total_vip, 0, 1, 9); self::write_log($write, $total_vip, 0, 9); User::where('id', $order->uid)->inc('integral', $total_vip)->update(); - } else { - $write = self::write($order, $total_vip, 0, 0, 7); - self::write_log($write, $total_vip, 0, 7); } return true; }