diff --git a/application/api/controller/Article.php b/application/api/controller/Article.php
index ef6b857..99b0d3c 100644
--- a/application/api/controller/Article.php
+++ b/application/api/controller/Article.php
@@ -692,6 +692,7 @@ class Article extends Controller {
$tt .= 'Thank you for your consideration.
Look forward for your reply.
';
$tt .= 'Reviewer Center
';
$tt .= 'Your username:'.$reviewer_info['account'].'
';
+ $tt .= 'Your original password:123456qwe , if you have reset the password, please login with the new one or click the "forgot password".
';
$tt .= 'Sincerely,
Editorial Office
';
$tt .= $journal_info['title'].'
';
$tt .= 'Email:'.$journal_info['email'].'
';
diff --git a/application/api/controller/Super.php b/application/api/controller/Super.php
index 48d0206..2ae2cd0 100644
--- a/application/api/controller/Super.php
+++ b/application/api/controller/Super.php
@@ -42,18 +42,19 @@ class Super extends Controller{
$this->staff_to_journal_obj = Db::name('staff_to_journal');
}
- public function main() {
+ public function main() {
$data = $this->request->post();
$start_time = strtotime($data['start']);
$end_time = strtotime($data['end'].' 23:59:59');
$list = $this->journal_obj->where('state',0)->select();
foreach ($list as $k => $v){
+ $list[$k]['SGRSL'] = $this->getSGRSL($v['journal_id']);
$list[$k]['LYL'] = $this->getLYL($v['journal_id'],$start_time,$end_time);
$list[$k]['CC'] = $this->getCC($v['journal_id'],$start_time,$end_time);
$list[$k]['WS'] = $this->getWS($v['journal_id'],$start_time,$end_time);
$list[$k]['SJ'] = $this->getSJ($v['journal_id'],$start_time,$end_time);
}
- return jsonSuccess($list);
+ return json($list);
}
public function getAllArticle(){
@@ -97,6 +98,14 @@ class Super extends Controller{
return jsonSuccess($re);
}
+ /**
+ * 获取审稿人数量
+ */
+ private function getSGRSL($journal_id){
+ $res = $this->reviewer_to_journal_obj->where('journal_id',$journal_id)->where('state',0)->select();
+ return count($res);
+ }
+
/**
* 获取录用率
*/