20201112
This commit is contained in:
@@ -508,7 +508,7 @@ class Article extends Controller {
|
|||||||
return json(['code'=>0]);
|
return json(['code'=>0]);
|
||||||
}else{
|
}else{
|
||||||
//接收文章,必须有两个及以上的大于40个字的对作者的评论,除去news和comment类型的文章
|
//接收文章,必须有两个及以上的大于40个字的对作者的评论,除去news和comment类型的文章
|
||||||
if($data['state']==5&&$article_info['type']!="N"&&$article_info['type']!="T"){
|
if($data['state']==5&&$article_info['type']!="N"&&$article_info['type']!="T"&&$article_info['type']!="LTE"){
|
||||||
//定义符合条件的数量
|
//定义符合条件的数量
|
||||||
$rev_real_num = 0;
|
$rev_real_num = 0;
|
||||||
//获取通过的审稿意见数
|
//获取通过的审稿意见数
|
||||||
@@ -704,6 +704,17 @@ class Article extends Controller {
|
|||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private function creatRejectUrlForReviewer($user,$article_id){
|
||||||
|
$code = md5(time().rand(1000,9999).'thinkphp');
|
||||||
|
$insert['user_id'] = $user['user_id'];
|
||||||
|
$insert['code'] = $code;
|
||||||
|
$insert['ctime'] = time();
|
||||||
|
$this->login_auto_obj->insert($insert);
|
||||||
|
$url = 'https://submission.tmrjournals.com/per_text_fail?Art_id='.$article_id.'&act='.$code;
|
||||||
|
return $url;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @title 获取期刊by领域
|
* @title 获取期刊by领域
|
||||||
* @description 获取期刊by领域
|
* @description 获取期刊by领域
|
||||||
@@ -848,7 +859,7 @@ class Article extends Controller {
|
|||||||
$tt .= 'Thank you for your consideration.<br> Look forward for your reply.<br>';
|
$tt .= 'Thank you for your consideration.<br> Look forward for your reply.<br>';
|
||||||
$tt .= '<a href="'.$this->creatLoginUrlForreviewer($reviewer_info,$res).'">Click here to review the article</a><br>';
|
$tt .= '<a href="'.$this->creatLoginUrlForreviewer($reviewer_info,$res).'">Click here to review the article</a><br>';
|
||||||
// $tt .= '<a href="https://submission.tmrjournals.com/">Click here to review the article</a><br>';
|
// $tt .= '<a href="https://submission.tmrjournals.com/">Click here to review the article</a><br>';
|
||||||
// $tt .= '<a href="">Click on the link to reject the review of this manuscript</a><br>';
|
$tt .= '<a href="'.$this->creatRejectUrlForReviewer($reviewer_info, $res).'">Click on the link to reject the review of this manuscript</a><br>';
|
||||||
$tt .= 'Your username:'.$reviewer_info['account'].'<br><br>';
|
$tt .= 'Your username:'.$reviewer_info['account'].'<br><br>';
|
||||||
$tt .= 'Your original password:123456qwe, if you have reset the password, please login with the new one or click the "<a href="https://submission.tmrjournals.com/retrieve">forgot password</a>".<br>';
|
$tt .= 'Your original password:123456qwe, if you have reset the password, please login with the new one or click the "<a href="https://submission.tmrjournals.com/retrieve">forgot password</a>".<br>';
|
||||||
$tt .= 'Sincerely,<br>Editorial Office<br>';
|
$tt .= 'Sincerely,<br>Editorial Office<br>';
|
||||||
|
|||||||
@@ -51,6 +51,22 @@ class Auto extends Controller {
|
|||||||
sendEmail($maidata['email'], $journal_info['title'], $journal_info['title'], $maidata['title'], $journal_info['email'], $journal_info['epassword']);
|
sendEmail($maidata['email'], $journal_info['title'], $journal_info['title'], $maidata['title'], $journal_info['email'], $journal_info['epassword']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public function resetReviewerPassword(){
|
||||||
|
$list = $this->user_obj
|
||||||
|
->field("t_user.*")
|
||||||
|
->join("t_user_reviewer_info","t_user_reviewer_info.reviewer_id = t_user.user_id","left")
|
||||||
|
->where("t_user_reviewer_info.reviewer_info_id",">",0)
|
||||||
|
->where("t_user.password","e9f5c5240c0bb39488e6dbfbdb1517e0")
|
||||||
|
->where("t_user.state",0)
|
||||||
|
->select();
|
||||||
|
echo '<pre>';
|
||||||
|
var_dump($list);
|
||||||
|
echo '</pre>';
|
||||||
|
die;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 推送邮件给审稿人提醒审稿人
|
* 推送邮件给审稿人提醒审稿人
|
||||||
|
|||||||
Reference in New Issue
Block a user