正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -41,11 +41,13 @@ class Home extends Base { | @@ -41,11 +41,13 @@ class Home extends Base { | ||
| 41 | 41 | ||
| 42 | // 默认查询 inbox | 42 | // 默认查询 inbox | 
| 43 | if(!is_array($folder_ids) || !$folder_ids){ | 43 | if(!is_array($folder_ids) || !$folder_ids){ | 
| 44 | + $folder = app()->request('folder','收件箱'); | ||
| 44 | $folder_ids = db()->value( | 45 | $folder_ids = db()->value( | 
| 45 | sprintf( | 46 | sprintf( | 
| 46 | - "select `id` from `%s` where `email_id` = %d and `origin_folder` = 'INBOX'", | 47 | + "select `id` from `%s` where `email_id` = %d and `folder` = '%s'", | 
| 47 | folderSql::$table | 48 | folderSql::$table | 
| 48 | - ,$email_id | 49 | + ,$email_id, | 
| 50 | + addslashes($folder) | ||
| 49 | ) | 51 | ) | 
| 50 | ); | 52 | ); | 
| 51 | 53 | 
- 
请 注册 或 登录 后发表评论