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; }