时间修改
This commit is contained in:
@@ -506,8 +506,8 @@ class Workbench extends Base
|
|||||||
}
|
}
|
||||||
$aArticle['type_name'] = translateType($aArticle['type']);//文章类型
|
$aArticle['type_name'] = translateType($aArticle['type']);//文章类型
|
||||||
//查询期刊信息
|
//查询期刊信息
|
||||||
$aWhere = ['journal_id' => $aArticle['article_id'],'state' => 0];
|
$aWhere = ['journal_id' => $aArticle['journal_id'],'state' => 0];
|
||||||
$aJournal = Db::name('journal')->field('title as journal_name,website,email as journal_email')->find();
|
$aJournal = Db::name('journal')->field('title as journal_name,website,email as journal_email')->where($aWhere)->find();
|
||||||
if(!empty($aJournal)){
|
if(!empty($aJournal)){
|
||||||
$aArticle += $aJournal;
|
$aArticle += $aJournal;
|
||||||
}
|
}
|
||||||
@@ -551,7 +551,8 @@ class Workbench extends Base
|
|||||||
$iIsCode = 1;
|
$iIsCode = 1;
|
||||||
}
|
}
|
||||||
//当前时间
|
//当前时间
|
||||||
$iNowTime = time();
|
// $iNowTime = time();
|
||||||
|
$iNowTime = strtotime(date('Y-m-d', time()));
|
||||||
// 14天 = 14*24*3600 秒 = 1209600 秒
|
// 14天 = 14*24*3600 秒 = 1209600 秒
|
||||||
$iFourteenDays = 14 * 24 * 3600;
|
$iFourteenDays = 14 * 24 * 3600;
|
||||||
//五天
|
//五天
|
||||||
@@ -569,6 +570,8 @@ class Workbench extends Base
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
//判断是否超过5天
|
//判断是否超过5天
|
||||||
|
$iTime = date('Y-m-d', $iTime);
|
||||||
|
$iTime = strtotime($iTime);//邀请时间戳
|
||||||
$timeDiff = $iTime+$iFiveDays;
|
$timeDiff = $iTime+$iFiveDays;
|
||||||
if($timeDiff < $iNowTime){
|
if($timeDiff < $iNowTime){
|
||||||
//执行审稿过期
|
//执行审稿过期
|
||||||
@@ -600,6 +603,8 @@ class Workbench extends Base
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
//判断是否超过14天
|
//判断是否超过14天
|
||||||
|
$iTime = date('Y-m-d', $iTime);
|
||||||
|
$iTime = strtotime($iTime);//同意审稿时间戳
|
||||||
$timeDiff = $iTime+$iFourteenDays;
|
$timeDiff = $iTime+$iFourteenDays;
|
||||||
if($timeDiff < $iNowTime){
|
if($timeDiff < $iNowTime){
|
||||||
return json_encode(['status' => 16,'msg' => 'The number of days for agreeing to review has exceeded 14','data' => $aData]);
|
return json_encode(['status' => 16,'msg' => 'The number of days for agreeing to review has exceeded 14','data' => $aData]);
|
||||||
|
|||||||
Reference in New Issue
Block a user