1
This commit is contained in:
156
.env
156
.env
@@ -12,4 +12,158 @@ mail_server = imap.qq.com
|
||||
|
||||
[journal]
|
||||
;官网服务器地址
|
||||
base_url = http://journalapi.tmrjournals.com/public/index.php
|
||||
base_url = http://journalapi.tmrjournals.com/public/index.php
|
||||
|
||||
|
||||
[emailtemplete]
|
||||
pre = '<!doctype html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<title>TMR</title>
|
||||
<link rel="shortcut icon" href="img/tmr3.png" type="image/x-icon"/>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-weight: 300;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "lucida Grande",Verdana,"Microsoft YaHei";
|
||||
font-size: 14px;
|
||||
line-height: 1.8;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #444;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a {
|
||||
transition: all .5s;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.boy_sty {
|
||||
width: 1000px;
|
||||
margin: 50px auto 0 auto;
|
||||
border: 1px solid #e6e6e6;
|
||||
border-radius: 10px;
|
||||
border-collapse: collapse;
|
||||
border-style: hidden;
|
||||
box-shadow: 0 0 0 1px #e6e6e6;
|
||||
}
|
||||
|
||||
.img_tit {
|
||||
/*background-color: #f9f9f9;*/
|
||||
padding: 50px 40px 40px 40px;
|
||||
background: url(https://www.tmrjournals.cn/img/post_banner.png) center;
|
||||
background-size: cover;
|
||||
|
||||
}
|
||||
.img_tit>a{
|
||||
float: left;
|
||||
}
|
||||
.img_tit>a h3{
|
||||
font-size: 12px;
|
||||
color: #214b3c;
|
||||
font-weight: bold;
|
||||
letter-spacing: -0.8px;
|
||||
}
|
||||
.img_tit>div{
|
||||
float: right;
|
||||
font-size: 20px;
|
||||
line-height: 46px;
|
||||
}
|
||||
.img_tit>div>a{
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
.img_tit>div>a:hover{
|
||||
text-decoration: underline;
|
||||
}
|
||||
.img_tit>div>b{
|
||||
margin: 0 10px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.bor_con {
|
||||
background-color: #fff;
|
||||
padding: 50px 0 50px 40px;
|
||||
}
|
||||
|
||||
.bor_con > h3 {
|
||||
font-size: 16px;
|
||||
margin: 0 0 15px 0;
|
||||
}
|
||||
|
||||
.fot_bot {
|
||||
padding: 10px 0 3px 40px;
|
||||
background-color: #e1eeea;
|
||||
border-bottom-left-radius: 10px;
|
||||
border-bottom-right-radius: 10px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.fot_bot > div {
|
||||
float: right;
|
||||
margin: 0 30px 0 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
.fot_bot > p{
|
||||
float: left;
|
||||
margin: 16px 0 0 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="boy_sty">
|
||||
<div class="img_tit">
|
||||
<a href="https://www.tmrjournals.cn/" target="_blank">
|
||||
<img src="https://www.tmrjournals.cn/img/tmr.png" style="width: 130px;">
|
||||
<h3>TMR Publishing Group</h3>
|
||||
</a>
|
||||
<div>
|
||||
<a href="https://www.tmrjournals.com" target="_blank">TMR</a>
|
||||
<b>/</b>
|
||||
<a href="https://www.tmrjournals.cn/rev_ver.html" target="_blank">Scientist Community</a>
|
||||
<b>/</b>
|
||||
<a href="https://www.tmrjournals.cn/tmrde/" target="_blank">Database</a>
|
||||
<b>/</b>
|
||||
<a href="https://submission.tmrjournals.com/" target="_blank">Submission System</a>
|
||||
</div>
|
||||
|
||||
<br clear="both">
|
||||
</div>
|
||||
<div class="bor_con">'
|
||||
|
||||
net = '</div>
|
||||
<div class="fot_bot">
|
||||
<p>
|
||||
Copyright © TMR Publishing Group Limited. <br>
|
||||
E-mail: publisher@tmrjournals.com | https://www.tmrjournals.com <br>
|
||||
Telephone: +64 02108293806
|
||||
</p>
|
||||
<div>
|
||||
<img src="https://www.tmrjournals.cn/img/post_erweima.png" style="width: 100px;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>'
|
||||
@@ -598,10 +598,12 @@ class Reviewer extends Controller
|
||||
}
|
||||
$list = $this
|
||||
->user_reviewer_info_obj
|
||||
->field('t_user.email')
|
||||
->field('t_user.user_id,t_user.email')
|
||||
->join('t_user','t_user.user_id = t_user_reviewer_info.reviewer_id','left')
|
||||
->where('t_user_reviewer_info.major',$topic['major_id'])
|
||||
->where('t_user_reviewer_info.state',0)->select();
|
||||
->where('t_user.is_advert',0)
|
||||
->where('t_user_reviewer_info.state',0)
|
||||
->select();
|
||||
|
||||
$re['reviewers'] = $list;
|
||||
return jsonSuccess($re);
|
||||
|
||||
@@ -237,19 +237,19 @@ class Typeset extends Controller
|
||||
$ts_info = $this->ts_obj->where('article_id', $article_id)->where('ts_state',0)->find();
|
||||
$refers = $this->ts_refer_obj->where('ts_id', $ts_info['ts_id'])->where('refer_state', 0)->select();
|
||||
foreach ($refers as $v) { //处理doi
|
||||
if (strpos($v['refer_content'], 'doi:') == false && strpos($v['refer_content'], 'doi.org/') == false) {
|
||||
if (strripos($v['refer_content'], 'doi:') == false && strripos($v['refer_content'], 'doi.org/') == false) {
|
||||
continue;
|
||||
}
|
||||
$doi = '';
|
||||
if (strpos($v['refer_content'], 'doi.org/') != false) {
|
||||
$cache_arr = explode(' ', trim(substr($v['refer_content'], strpos($v['refer_content'], 'doi.org/') + 8)));
|
||||
if (strripos($v['refer_content'], 'doi.org/') != false) {
|
||||
$cache_arr = explode(' ', trim(substr($v['refer_content'], strripos($v['refer_content'], 'doi.org/') + 8)));
|
||||
if (substr($cache_arr[0], -1) == '.') {
|
||||
$doi = substr($cache_arr[0], 0, -1);
|
||||
} else {
|
||||
$doi = $cache_arr[0];
|
||||
}
|
||||
} else {
|
||||
$cache_arr = explode(' ', trim(substr($v['refer_content'], strpos($v['refer_content'], 'doi:') + 4)));
|
||||
$cache_arr = explode(' ', trim(substr($v['refer_content'], strripos($v['refer_content'], 'doi:') + 4)));
|
||||
if (substr($cache_arr[0], -1) == '.') {
|
||||
$doi = substr($cache_arr[0], 0, -1);
|
||||
} else {
|
||||
@@ -433,6 +433,8 @@ class Typeset extends Controller
|
||||
$url = "http://ts.tmrjournals.com/api/typeset/webGetDocx";
|
||||
// var_dump($typesetInfo);die;
|
||||
$res = object_to_array(json_decode(myPost1($url, $typesetInfo)));
|
||||
// return jsonSuccess($res);
|
||||
|
||||
if(!isset($res['data']['file'])||$res['data']['file']==''){
|
||||
return jsonError('create error');
|
||||
}
|
||||
@@ -662,7 +664,7 @@ class Typeset extends Controller
|
||||
* 删除排版实例
|
||||
*/
|
||||
public function delTypeSet(){
|
||||
$data = $this->require->post();
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
'ts_id'=>'require'
|
||||
]);
|
||||
|
||||
@@ -311,6 +311,14 @@ class User extends Controller
|
||||
return jsonSuccess([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 退订用户的广告邮件
|
||||
*/
|
||||
public function unAdvertForUser($uid){
|
||||
$this->user_obj->where('user_id',$uid)->update(['is_advert'=>1]);
|
||||
echo 'Unsubscribe successfully!';
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 申请期刊审稿人对于审稿人
|
||||
* @description 申请期刊审稿人对于审稿人
|
||||
|
||||
@@ -251,6 +251,7 @@ function my_doiToFrag($data){
|
||||
$cs = 1;
|
||||
}
|
||||
$ts_refer_obj->where('ts_refer_id',$data['ts_refer_id'])->update(['refer_frag'=>$f,"cs"=>$cs]);
|
||||
$ts_refer_obj->close();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1038,6 +1038,10 @@ class Query
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function close(){
|
||||
return $this->connection->close();
|
||||
}
|
||||
|
||||
/**
|
||||
* 指定OR查询条件
|
||||
* @access public
|
||||
|
||||
Reference in New Issue
Block a user