时间调整

This commit is contained in:
chengxl
2025-12-29 14:00:44 +08:00
parent 4d46b66d02
commit a951558f9b

View File

@@ -551,7 +551,8 @@ class Workbench extends Base
$iIsCode = 1;
}
//当前时间
$iNowTime = time();
// $iNowTime = time();
$iNowTime = strtotime(date('Y-m-d', time()));
// 14天 = 14*24*3600 秒 = 1209600 秒
$iFourteenDays = 14 * 24 * 3600;
//五天
@@ -569,6 +570,8 @@ class Workbench extends Base
]);
}
//判断是否超过5天
$iTime = date('Y-m-d', $iTime);
$iTime = strtotime($iTime);//邀请时间戳
$timeDiff = $iTime+$iFiveDays;
if($timeDiff < $iNowTime){
//执行审稿过期
@@ -600,6 +603,8 @@ class Workbench extends Base
]);
}
//判断是否超过14天
$iTime = date('Y-m-d', $iTime);
$iTime = strtotime($iTime);//同意审稿时间戳
$timeDiff = $iTime+$iFourteenDays;
if($timeDiff < $iNowTime){
return json_encode(['status' => 16,'msg' => 'The number of days for agreeing to review has exceeded 14','data' => $aData]);