写的比较大,帮我简化一下 public function url(){ <br>
$xid =I('xid'); <br>
$xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<list>\n"; <br>
if($xid==(44)){ <br>
$xml.='1'."\n"; <br>
}elseif($xid==497){<br>
$xml.='1'."\n";<br>
}elseif($xid==613){<br>
$xml.='1'."\n"; <br>
}elseif($xid==765){<br>
$xml.='1'."\n"; <br>
}else{<br>
$xml.='2'."\n"; <br>
} <br>
$xml .='</list>';<br>
echo $xml ; <br>
}
AD:真正免费,域名+虚机+企业邮箱=0元