作者 邓超

优化

@@ -96,6 +96,10 @@ class SyncMail { @@ -96,6 +96,10 @@ class SyncMail {
96 } 96 }
97 } 97 }
98 98
  99 +
  100 + protected $isBody = null;
  101 +
  102 +
99 public function stop(){ 103 public function stop(){
100 $this->isStop = true; 104 $this->isStop = true;
101 } 105 }
@@ -110,6 +114,14 @@ class SyncMail { @@ -110,6 +114,14 @@ class SyncMail {
110 } 114 }
111 115
112 /** 116 /**
  117 + * @param null $isBody
  118 + */
  119 + public function setIsBody($isBody)
  120 + {
  121 + $this->isBody = $isBody;
  122 + return $this;
  123 + }
  124 + /**
113 * 输出日志 125 * 输出日志
114 * @param $msg 126 * @param $msg
115 * @author:dc 127 * @author:dc
@@ -627,6 +639,12 @@ class SyncMail { @@ -627,6 +639,12 @@ class SyncMail {
627 } 639 }
628 } 640 }
629 } 641 }
  642 +
  643 + // 全局
  644 + if($this->isBody!==null){
  645 + $isBody = $this->isBody;
  646 + }
  647 +
630 //TODO 如果header 头信息里面有2段数据 第二段就作为内容解析 648 //TODO 如果header 头信息里面有2段数据 第二段就作为内容解析
631 if($item->header->body()){ 649 if($item->header->body()){
632 $parseBody = $item->header->body(); 650 $parseBody = $item->header->body();