mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
no message
This commit is contained in:
parent
8c04a432a8
commit
f8cbd31f61
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user