...
|
...
|
@@ -462,12 +462,21 @@ class Mail { |
|
|
|
|
|
|
|
|
// 更新描述
|
|
|
$db->update(listsSql::$table,[
|
|
|
'description' => $description,
|
|
|
'is_file' => MailFun::isBodyFile($body)
|
|
|
],dbWhere([
|
|
|
'id' => $id
|
|
|
]));
|
|
|
try {
|
|
|
$db->update(listsSql::$table,[
|
|
|
'description' => @base64_encode($description) ? $description : '',
|
|
|
'is_file' => MailFun::isBodyFile($body)
|
|
|
],dbWhere([
|
|
|
'id' => $id
|
|
|
]));
|
|
|
}catch (\Throwable $e){
|
|
|
$db->update(listsSql::$table,[
|
|
|
'is_file' => MailFun::isBodyFile($body)
|
|
|
],dbWhere([
|
|
|
'id' => $id
|
|
|
]));
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
return true;
|
...
|
...
|
|