feat: 增加用户签到列表API查询功能

This commit is contained in:
mkm 2024-07-02 15:32:38 +08:00
parent f8da0b9a96
commit 1f122be8dc
2 changed files with 2 additions and 3 deletions

View File

@ -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){

View File

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