邮件修改
This commit is contained in:
@@ -291,18 +291,7 @@ class Admin extends Controller {
|
||||
$data = $this->request->post();
|
||||
$journal_info = $this->journal_obj->where('journal_id', $data['journal'])->find();
|
||||
$editor_info = $this->user_obj->where('user_id', $journal_info['editor_id'])->find();
|
||||
// $data['company'] = 'dsadsa';
|
||||
// $data['country'] = 'china';
|
||||
// $data['email'] = "dsadsad@126.com";
|
||||
// $data['field'] = 'dsadsada';
|
||||
// $data['gender'] = 1;
|
||||
// $data['introduction'] = 'dsadsads';
|
||||
// $data['journal'] = 1;
|
||||
// $data['major'] = 6;
|
||||
// $data['qualifications'] = "reviewer/20200729/8355df2ee29d8313cf39e1c3b0b6ebd8.rar";
|
||||
// $data['technical'] = 'Ph.D.';
|
||||
// $data['username'] = '"wangjinlei11"';
|
||||
// return json($data);
|
||||
|
||||
//组合数据,insert
|
||||
$insert_data['journal_id'] = $data['journal'];
|
||||
$insert_data['name'] = $data['username'];
|
||||
@@ -316,13 +305,24 @@ class Admin extends Controller {
|
||||
$insert_data['gender'] = $data['gender'];
|
||||
$insert_data['qualifications'] = $data['qualifications'];
|
||||
$insert_data['ctime'] = time();
|
||||
$res = $this->user_reviewer_obj->insertGetId($insert_data);
|
||||
$res = 1;//$this->user_reviewer_obj->insertGetId($insert_data);
|
||||
|
||||
if ($res > 0) {
|
||||
//发送email-》编辑
|
||||
$tt = 'Dear editor,<br>';
|
||||
$tt .= 'Please check the new reviewer application.';
|
||||
sendEmail($editor_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
|
||||
$sendUser=[
|
||||
'title'=>$journal_info['title'], // 邮件标题
|
||||
'content'=>$tt,//邮件内容
|
||||
'user_id'=>$editor_info['user_id'], //收件人ID
|
||||
'email'=>$editor_info['email'],// 收件人邮箱
|
||||
'journal_id'=>0, // 期刊ID
|
||||
'sendEmail'=>$journal_info['email'], // 期刊邮箱
|
||||
'sendPassword'=>$journal_info['epassword'], // 期刊密码
|
||||
'from_name'=>$journal_info['title']
|
||||
];
|
||||
Queue::push('app\api\job\domail@fire',$sendUser,'domail');
|
||||
//sendEmail($editor_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
|
||||
|
||||
//发送消息信息--编辑
|
||||
$journal_res = $this->journal_obj->where('journal_id', $data['journal'])->find();
|
||||
@@ -339,18 +339,7 @@ class Admin extends Controller {
|
||||
public function becameReviewer() {
|
||||
//接受参数,查询参数
|
||||
$data = $this->request->post();
|
||||
//
|
||||
// return json($data);
|
||||
// $data['company'] = 'sssssssssssssssssssss';
|
||||
// $data['country'] = 'China';
|
||||
// $data['field'] = 'asdsadsa';
|
||||
// $data['gender'] = 1;
|
||||
// $data['introduction'] = 'dsds';
|
||||
// $data['journal'] = 1;
|
||||
// $data['major'] = 6;
|
||||
// $data['qualifications'] = "reviewer/20200821/8e291c09e53fbbe12541563d59790464.rar";
|
||||
// $data['technical'] = 'Ph.D.';
|
||||
// $data['username'] = 'wangjinlei';
|
||||
|
||||
|
||||
$user_info = $this->user_obj->where('account', $data['username'])->find();
|
||||
$journal_info = $this->journal_obj->where('journal_id', $data['journal'])->find();
|
||||
@@ -374,7 +363,19 @@ class Admin extends Controller {
|
||||
//发送email-》编辑
|
||||
$tt = 'Dear editor,<br>';
|
||||
$tt .= 'Please check the new reviewer application.';
|
||||
sendEmail($editor_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
|
||||
$sendUser=[
|
||||
'title'=>$journal_info['title'], // 邮件标题
|
||||
'content'=>$tt,//邮件内容
|
||||
'user_id'=>$editor_info['user_id'], //收件人ID
|
||||
'email'=>$editor_info['email'],// 收件人邮箱
|
||||
'journal_id'=>0, // 期刊ID
|
||||
'sendEmail'=>$journal_info['email'], // 期刊邮箱
|
||||
'sendPassword'=>$journal_info['epassword'], // 期刊密码
|
||||
'from_name'=>$journal_info['title']
|
||||
];
|
||||
Queue::push('app\api\job\domail@fire',$sendUser,'domail');
|
||||
|
||||
//sendEmail($editor_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
|
||||
|
||||
//发送消息信息--编辑
|
||||
$journal_res = $this->journal_obj->where('journal_id', $data['journal'])->find();
|
||||
|
||||
Reference in New Issue
Block a user