正在显示
2 个修改的文件
包含
5 行增加
和
11 行删除
| @@ -149,16 +149,6 @@ trait DbQuery { | @@ -149,16 +149,6 @@ trait DbQuery { | ||
| 149 | 149 | ||
| 150 | $sql = "update `{$table}` set ".dbUpdate($data). " where ".$where; | 150 | $sql = "update `{$table}` set ".dbUpdate($data). " where ".$where; |
| 151 | 151 | ||
| 152 | - if($table == listsSql::$table){ | ||
| 153 | - if ($data['seen']??''){ | ||
| 154 | - @file_put_contents(LOG_PATH.'/seen.log',print_r([ | ||
| 155 | - $sql, | ||
| 156 | - $_REQUEST, | ||
| 157 | - php_sapi_name() | ||
| 158 | - ],true),FILE_APPEND); | ||
| 159 | - } | ||
| 160 | - } | ||
| 161 | - | ||
| 162 | $data = $this->getData($data); | 152 | $data = $this->getData($data); |
| 163 | 153 | ||
| 164 | $query = $this->query([$sql,$data]); | 154 | $query = $this->query([$sql,$data]); |
| @@ -480,7 +480,11 @@ class SyncMail { | @@ -480,7 +480,11 @@ class SyncMail { | ||
| 480 | Event::call('mail_sync_list',$id, $data); | 480 | Event::call('mail_sync_list',$id, $data); |
| 481 | 481 | ||
| 482 | }else{ | 482 | }else{ |
| 483 | - $this->db->update(listsSql::$table,$data,dbWhere(['id'=> $id])); | 483 | + // 非ai邮件才更新 |
| 484 | + if(!defined('CLI_AI_SYNC_START')){ | ||
| 485 | + $this->db->update(listsSql::$table,$data,dbWhere(['id'=> $id])); | ||
| 486 | + } | ||
| 487 | + | ||
| 484 | } | 488 | } |
| 485 | 489 | ||
| 486 | //TODO 如果header 头信息里面有2段数据 第二段就作为内容解析 | 490 | //TODO 如果header 头信息里面有2段数据 第二段就作为内容解析 |
-
请 注册 或 登录 后发表评论