fix: 修复了FinancialRecordController中的逻辑错误

This commit is contained in:
mkm 2024-05-23 16:46:26 +08:00
parent f2277960c2
commit 4575eccbe5

View File

@ -23,7 +23,7 @@ class FinancialRecordController extends BaseApiController
{
$start_time = $this->request->get('start_time');
$end_time = $this->request->get('end_time');
if(isset($start_time)||isset($end_time)){
if(!isset($start_time)||!isset($end_time)){
$start_time=date('Y-m-d',time());
$end_time=date('Y-m-d',strtotime('-7 days'));
}