正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -4,6 +4,8 @@ namespace Lib\Imap\Parse; | @@ -4,6 +4,8 @@ namespace Lib\Imap\Parse; | ||
| 4 | 4 | ||
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | +use Lib\Imap\Fun; | ||
| 8 | + | ||
| 7 | /** | 9 | /** |
| 8 | * 解析邮件 | 10 | * 解析邮件 |
| 9 | * @author:dc | 11 | * @author:dc |
| @@ -101,10 +103,10 @@ class DeCode{ | @@ -101,10 +103,10 @@ class DeCode{ | ||
| 101 | } | 103 | } |
| 102 | 104 | ||
| 103 | if (!$from) { | 105 | if (!$from) { |
| 104 | - return mb_convert_encoding($str, $to); | 106 | + return Fun::mb_convert_encoding($str, $to); |
| 105 | } | 107 | } |
| 106 | 108 | ||
| 107 | - return mb_convert_encoding($str, $to, $from); | 109 | + return Fun::mb_convert_encoding($str, $to, $from); |
| 108 | 110 | ||
| 109 | } catch (\Exception $e) { | 111 | } catch (\Exception $e) { |
| 110 | if (strstr($from, '-')) { | 112 | if (strstr($from, '-')) { |
-
请 注册 或 登录 后发表评论