建议反馈修改
This commit is contained in:
@@ -20,7 +20,7 @@ class domail {
|
||||
* @param type $data
|
||||
*/
|
||||
public function send($data){
|
||||
$res = sendEmail($data['email'],$data['title'],$data['title'],$data['content'],$data['sendEmail'],$data['sendPassword']);
|
||||
$res = sendEmail($data['email'],$data['title'],$data['from_name'],$data['content'],$data['sendEmail'],$data['sendPassword'],$data['attachmentFile']='');
|
||||
$insert = [
|
||||
'title'=>$data['title'],
|
||||
'content'=>$data['content'],
|
||||
@@ -34,6 +34,9 @@ class domail {
|
||||
$insert['is_attachment'] = 1;
|
||||
$insert['attachment_url'] = $data['attachment_url'];
|
||||
}
|
||||
if(isset($data['journal_id'])){
|
||||
$insert['journal_id'] = $data['journal_id'];
|
||||
}
|
||||
if($res['status']==1){
|
||||
$info = Db::name('email')->insert($insert);
|
||||
if(!$info){
|
||||
|
||||
Reference in New Issue
Block a user