1
This commit is contained in:
@@ -110,6 +110,46 @@ class Auto extends Base
|
||||
Queue::push('app\api\job\mail@fire', $maidata, "tmail");
|
||||
}
|
||||
|
||||
public function mypushemail(){
|
||||
die("service stop");
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
"num"=>"require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$list = $this->user_author_obj
|
||||
->field("t_user.*")
|
||||
->join("t_user","t_user.user_id = t_user_author.user_id","left")
|
||||
->where('t_user_author.journal_title',"Traditional Medicine Research")
|
||||
->where('t_user_author.stage_year',">","2021")
|
||||
->page($data['num'],1000)
|
||||
->select();
|
||||
// $journal_info = $this->journal_obj->where('journal_id',1)->find();
|
||||
|
||||
// $l['email'] = "751475802@qq.com";
|
||||
// $l['realname'] = "wangjinlei";
|
||||
// $l1['email'] = "2714044218@qq.com";
|
||||
// $l1['realname'] = "liuna";
|
||||
// $list[] = $l;
|
||||
// $list[] = $l1;
|
||||
// return jsonSuccess($list);
|
||||
foreach ($list as $v){
|
||||
$tt = 'Dear Dr. ' . ($v['realname'] == '' ? $v['account'] : $v['realname']) . ',<br/><br/>';
|
||||
$tt .= "Congratulations! Our Traditional Medicine Research Journal has achieved its first impact factor of 1.3. Thank you for your valuable contribution. We would like to express our sincere appreciation for your valuable contributions and for choosing our journal as a platform for sharing your groundbreaking research.<br/>Looking forward to your continued contributions in the future.<br/><br/>";
|
||||
$tt .= "Sincerely,<br/>Editorial Office<br/>Traditional Medicine Research<br/>Email: tmr@tmrjournals.com<br/>Website:https://www.tmrjournals.com/tmr";
|
||||
$ali['email'] = $v['email'];
|
||||
$ali['title'] = "Traditional Medicine Research Achieves its First Impact Factor of 1.3";
|
||||
$ali['content'] = $tt;
|
||||
$ali['has_hb'] = 1;
|
||||
// sendEmail($v['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
|
||||
Queue::push('app\api\job\mail@promotion', $ali, "tmail");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// public function cvComit(){
|
||||
// $list = $this->user_reviewer_info_obj
|
||||
|
||||
Reference in New Issue
Block a user