作者 邓超

邮件详情

@@ -812,9 +812,22 @@ class Home extends Base { @@ -812,9 +812,22 @@ class Home extends Base {
812 */ 812 */
813 public function info(){ 813 public function info(){
814 $id = app()->request('id',0,'intval'); 814 $id = app()->request('id',0,'intval');
815 - // 没有,说明没有同步过来  
816 - $email = $this->getEmail();  
817 - $data = db()->first(listsSql::first(dbWhere(['id'=>$id,'email_id'=>$email['id']]))); 815 +
  816 + $udate = app()->request('id',0,'intval');
  817 + $subject = app()->request('subject');
  818 + if($udate&&$subject){
  819 + $data = db()->first(listsSql::first(dbWhere(['id'=>$id,'udate'=>$udate])));
  820 + if($data && $data['subject'] != $subject){
  821 + $data = [];
  822 + }
  823 + if($data){
  824 + $email = db()->first(emailSql::first($data['email_id']));
  825 + }
  826 + }else{
  827 + // 没有,说明没有同步过来
  828 + $email = $this->getEmail();
  829 + $data = db()->first(listsSql::first(dbWhere(['id'=>$id,'email_id'=>$email['id']])));
  830 + }
818 831
819 if($data){ 832 if($data){
820 $sync_num = 0; 833 $sync_num = 0;