时间修改

This commit is contained in:
chengxl
2025-12-29 14:05:49 +08:00
parent 18f6608cea
commit 66f963c7aa

View File

@@ -506,8 +506,8 @@ class Workbench extends Base
}
$aArticle['type_name'] = translateType($aArticle['type']);//文章类型
//查询期刊信息
$aWhere = ['journal_id' => $aArticle['article_id'],'state' => 0];
$aJournal = Db::name('journal')->field('title as journal_name,website,email as journal_email')->find();
$aWhere = ['journal_id' => $aArticle['journal_id'],'state' => 0];
$aJournal = Db::name('journal')->field('title as journal_name,website,email as journal_email')->where($aWhere)->find();
if(!empty($aJournal)){
$aArticle += $aJournal;
}
@@ -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]);