This commit is contained in:
wangjinlei
2021-12-21 16:54:13 +08:00
parent b4f5cd59bb
commit e00dd3913b
8 changed files with 785 additions and 99 deletions

View File

@@ -373,8 +373,8 @@ class Admin extends Controller {
continue;
}
//验证是否存在此用户并且存在对应关系
$this_reviewer = self::get_username($v['username']);
$mme = self::get_userByEmail($v['email']);
$this_reviewer = self::get_username(trim($v['username']));
$mme = self::get_userByEmail(trim($v['email']));
if ($this_reviewer == null && $mme != null) {
$er_data[] = [
'username' => trim($v['username']),
@@ -409,7 +409,7 @@ class Admin extends Controller {
//添加user主体基本信息
$cache_reviewer['account'] = trim($v['username']);
$cache_reviewer['password'] = md5('123456qwe');
$cache_reviewer['email'] = $v['email'];
$cache_reviewer['email'] = trim($v['email']);
$cache_reviewer['realname'] = trim($v['realname']);
$cache_reviewer['is_reviewer'] = 1;
$cache_reviewer['ctime'] = time();
@@ -454,19 +454,10 @@ class Admin extends Controller {
];
//发送邮件提醒审稿人
// $tt = 'Dear Reviewer,<br>';
// $tt .= 'In order to provide a better online experience for both authors and readers, the submission system was changed to new.<br>';
// $tt .= 'Website was closed between 18:00 Aug. 2, 2020 to 24:00 Aug. 2, 2020 Beijing time.<br>';
// $tt .= 'You could log in with your account in submission.tmrjournals.com .<br>';
// $tt .= 'Your username:'.$v['username'].'<br>';
// $tt .= 'Your password: 123456qwe (you could change your password in the system by yourself later.)<br>';
// $tt .= 'Thank you so much for your kindly support.<br><br>';
// $tt .= $journal_info['title'].'<br>';
// $tt .= date('Y-m-d');
$content = "Thank you for registering as a " . $journal_info['title'] . " reviewer<br/>". "At present, you have passed our examination<br/>";
$content .= '<a href="https://submission.tmrjournals.com">SubmissionSystem</a><br>';
$content .= '<p>username:' . trim($v['username']) . '</p>';
$content .= '<p>Original Password: 123456qwe</p>';//$has_res ? '' : '<p>password:123456qwe</p>';
$content = "Thank you for registering as a " . $journal_info['title'] . " reviewer<br/>". "At present, you have passed our examination<br/>";
$content .= '<a href="https://submission.tmrjournals.com">SubmissionSystem</a><br>';
$content .= '<p>username:' . trim($v['username']) . '</p>';
$content .= '<p>Original Password: 123456qwe</p>';//$has_res ? '' : '<p>password:123456qwe</p>';
$maidata['email'] = $v['email'];
$maidata['title'] = $journal_info['title'];