作者 邓超

x

... ... @@ -39,8 +39,16 @@ class Home extends Base {
$where = ['email_id' => $this->getEmail('id')];
foreach ($folder_ids as $k=>$folder_id){
if(!$folder_id){
unset($folder_ids[$k]);
}
}
$folder_ids = array_values($folder_ids);
// 默认查询 inbox
if(!is_array($folder_ids)){
if(!is_array($folder_ids) || !$folder_ids){
$folder_ids = db()->value(
sprintf(
"select `id` from `%s` where `email_id` = %d and `origin_folder` = 'INBOX'",
... ...
... ... @@ -119,7 +119,7 @@ function my_filter($value,$filter=null){
}
// 强制转类型
if(is_numeric($value)&&strlen($value)<10&&intval(substr($value,0,1))!==0){
if(strpos($value,'.')!==false){
if(str_contains($value, '.')){
$value = floatval($value);
}else{
$value = intval($value);
... ...