diff --git a/application/api/controller/Workbench.php b/application/api/controller/Workbench.php index 94df3f04..0d8bf45f 100644 --- a/application/api/controller/Workbench.php +++ b/application/api/controller/Workbench.php @@ -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]);