no message

This commit is contained in:
kuaifan 2023-03-25 12:25:22 +08:00
parent 8c04a432a8
commit f8cbd31f61
3 changed files with 12 additions and 9 deletions

View File

@ -21,9 +21,9 @@ Group No.: `546574618`
# 1、Clone the repository # 1、Clone the repository
# Clone projects on github # Clone projects on github
git clone --depth=1 https://github.com/kuaifan/dootask.git git clone -b pro --depth=1 https://github.com/kuaifan/dootask.git
# Or you can use gitee # Or you can use gitee
git clone --depth=1 https://gitee.com/aipaw/dootask.git git clone -b pro --depth=1 https://gitee.com/aipaw/dootask.git
# 2、Enter directory # 2、Enter directory
cd dootask cd dootask

View File

@ -21,9 +21,9 @@
# 1、克隆项目到您的本地或服务器 # 1、克隆项目到您的本地或服务器
# 通过github克隆项目 # 通过github克隆项目
git clone --depth=1 https://github.com/kuaifan/dootask.git git clone -b pro --depth=1 https://github.com/kuaifan/dootask.git
# 或者你也可以使用gitee # 或者你也可以使用gitee
git clone --depth=1 https://gitee.com/aipaw/dootask.git git clone -b pro --depth=1 https://gitee.com/aipaw/dootask.git
# 2、进入目录 # 2、进入目录
cd dootask cd dootask

View File

@ -35,13 +35,16 @@ class Deleted extends AbstractModel
*/ */
public static function ids($type, $userid, $time): array public static function ids($type, $userid, $time): array
{ {
if (empty($time)) { $builder = self::where([
return [];
}
return self::where([
'type' => $type, 'type' => $type,
'userid' => $userid 'userid' => $userid
])->where('created_at', '>=', Carbon::parse($time))->pluck('did')->toArray(); ])->orderByDesc('id');
if (empty($time)) {
$builder = $builder->take(50);
} else {
$builder = $builder->where('created_at', '>=', Carbon::parse($time))->take(500);
}
return $builder->pluck('did')->toArray();
} }
/** /**