Compare commits

...

4 Commits

Author SHA1 Message Date
wyn
7970be6fd7 Merge branch 'master' of https://git.nuttyreading.com/zm/journal 2026-08-04 10:13:13 +08:00
wyn
160f4c3791 TO投稿系统获取官网id 2026-08-04 10:13:06 +08:00
wangjinlei
3272063fc0 Merge remote-tracking branch 'origin/master' 2026-08-03 18:06:31 +08:00
wangjinlei
e1e6740137 小更新+自动发邮件的间隔 2026-08-03 18:06:15 +08:00
2 changed files with 32 additions and 1 deletions

View File

@@ -400,7 +400,7 @@ class Journal extends Controller
->where("ctime","<",$s_time)
->select();
$m_p_month_num = 0;
foreach ($list1 as $item) {
foreach ($list_m_p as $item) {
if($item['is_wos']==1){
$m_p_month_num++;
}

View File

@@ -130,6 +130,37 @@ class Special extends Controller {
$re['specials'] = $list;
return jsonSuccess($re);
}
/**
* @title 根据ISSN查询期刊ID
* @description 根据ISSN查询期刊ID
* @url /master/Special/getJournalIdByIssn
* @method POST
*
* @param name:issn type:string require:1 desc:期刊ISSN
*
* @return journal_id:期刊id
*/
public function getJournalIdByIssn(){
$data = $this->request->post();
$rule = new Validate([
'issn' => 'require',
]);
if (!$rule->check($data)) {
return jsonError($rule->getError());
}
$issn = trim($data['issn']);
$journal = $this->journal_obj
->field('journal_id')
->where('issn', $issn)
->find();
if (!$journal) {
return jsonError('journal not found');
}
return jsonSuccess([
'journal_id' => intval($journal['journal_id']),
]);
}
/**
* @title 客座期刊(更改状态)