增加了通过邮件模板表示服判断的逻辑
This commit is contained in:
parent
14ca43e49b
commit
ea5116216e
|
@ -7,7 +7,7 @@ class EmailText{
|
|||
|
||||
function __construct()
|
||||
{
|
||||
if(!is_numeric($this->tmpid)||empty($this->tmpid))
|
||||
if(empty($this->tmpid))
|
||||
{
|
||||
$this->tmpid = 0;
|
||||
}
|
||||
|
@ -19,7 +19,10 @@ class EmailText{
|
|||
{
|
||||
return false;
|
||||
}else{
|
||||
if(is_numeric($this->tmpid))
|
||||
$sql = "select id,body from emailtext where id='".$this->tmpid."'";
|
||||
else
|
||||
$sql = "select id,body from emailtext where template='".$this->tmpid."'";
|
||||
$rs = $this->db->query($sql);
|
||||
|
||||
$c = $rs->fetch();
|
||||
|
|
Loading…
Reference in New Issue