提交的内容

This commit is contained in:
2025-05-12 15:45:02 +08:00
parent 629c4750da
commit b48c692775
3043 changed files with 34732 additions and 60810 deletions

4
vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php vendored Executable file → Normal file
View File

@ -100,6 +100,10 @@ trait TimeFieldQuery
public function whereMonth(string $field, string $month = 'this month', int $step = 1, string $logic = 'AND')
{
if (in_array($month, ['this month', 'last month'])) {
if($month === 'last month') {
$month = $this->timeRule['last month'][0];
}
$month = date('Y-m', strtotime($month));
}