diff --git a/application/api/controller/Journal.php b/application/api/controller/Journal.php index 87564c6..7daade7 100644 --- a/application/api/controller/Journal.php +++ b/application/api/controller/Journal.php @@ -1141,7 +1141,7 @@ class Journal extends Controller { ->join('j_board_group', 'j_board.board_group_id = j_board_group.board_group_id', 'left') ->where('j_board.journal_id', $data['journal_id']) ->where('j_board.state', 0) - ->order('j_board_group.board_group_id,j_board.name') + ->order('j_board_group.sort desc,j_board_group.board_group_id,j_board.name') ->select(); $frag = []; foreach ($list as $k => $v) { diff --git a/application/master/controller/Board.php b/application/master/controller/Board.php index 021fd64..02d86d9 100644 --- a/application/master/controller/Board.php +++ b/application/master/controller/Board.php @@ -103,7 +103,7 @@ class Board extends Controller { return jsonError($rule->getError()); } $journal_info = $this->journal_obj->where('issn',$data['issn'])->find(); - $groups = $this->board_group_obj->where('journal_id',$journal_info['journal_id'])->where('state',0)->select(); + $groups = $this->board_group_obj->where('journal_id',$journal_info['journal_id'])->where('state',0)->order('sort desc')->select(); foreach($groups as $k => $v){ $cache_num = $this->board_obj->where('journal_id',$journal_info['journal_id']) ->where('state',0) diff --git a/application/master/controller/Journal.php b/application/master/controller/Journal.php index 259b451..b2f3925 100644 --- a/application/master/controller/Journal.php +++ b/application/master/controller/Journal.php @@ -911,7 +911,6 @@ class Journal extends Controller } public function pushEmailToUser(){ - // die('stop'); $data = $this->request->post(); $rule = new Validate([ 'num'=>'require' @@ -923,9 +922,8 @@ class Journal extends Controller $pag = []; $pag['num'] = $data['num']; $res = object_to_array(json_decode(myPost($url, $pag))); - $tt = 'Greetings!
Thank you for your attention to TMR Publishing Group and your active participation.

'; - $tt .= "According to Clarivate's latest policy (https://clarivate.com/news/clarivate-announces-changes-to-the-2023-journal-citation-reports/), Traditional Medicine Research (ISSN 2413-3973) will get the first Impact Factor in 2023. You are welcome to pay attention to the journal and submit manuscripts. You are always welcome to read and share the articles and encourage you to submit your manuscripts to us through the following channels: www.tmrjournals.com/tmr


"; - + $tt = 'Dear Colleague,

I am writing to let you know about some of the most popular papers published in our journal. These papers have been widely read and cited by researchers in the field, and we believe they offer valuable insights and contributions to the academic community.

'; + $articles = $this->article_obj ->field('j_article.*,j_journal_stage.stage_year,j_journal_stage.stage_vol,j_journal_stage.stage_no') ->join('j_journal_stage', 'j_journal_stage.journal_stage_id = j_article.journal_stage_id', 'left') @@ -942,10 +940,20 @@ class Journal extends Controller $tt .= "Download pdf


"; } + $tt .= "If you are interested in reading these papers, you can access them through our website: https://www.tmrjournals.com/tmr. We encourage you to share them with your colleagues and students, and we welcome any feedback or comments you may have.

"; + $tt .= "Thank you for your interest in our journal.

"; + $tt .= "Best regards,
Editor-in-Chief: Xiong-Zhi Wu
Traditional Medicine Research
"; + // $maidata['email'] = '849192806@qq.com'; + // $maidata['title'] = "New findings and insights from Traditional Medicine Research"; + // $maidata['content'] = $tt; + // Queue::push('app\api\job\mail@propa', $maidata, "mail"); + + + foreach($res['data']['list'] as $v){ $maidata['email'] = $v['email']; - $maidata['title'] = "TOP10 popular papers|Traditional Medicine Research (2021-2022)"; + $maidata['title'] = "New findings and insights from Traditional Medicine Research"; $maidata['content'] = $tt; Queue::push('app\api\job\mail@propa', $maidata, "mail"); }