上线信息推荐管理

hotfix/paypal-note
ycc 4 years ago
parent 5c0b4dc627
commit 8f50024b8b

@ -35,6 +35,7 @@ class recommends_and_tips_model extends CI_Model
public function tips_detail($it_id) public function tips_detail($it_id)
{ {
$timestamp=time();
$sql = " SELECT TOP 1 $sql = " SELECT TOP 1
it.it_id it.it_id
,it.it_title ,it.it_title
@ -46,9 +47,9 @@ class recommends_and_tips_model extends CI_Model
where 1=1 where 1=1
AND it.it_sitecode=? AND it.it_sitecode=?
AND it.it_id=? AND it.it_id=?
AND it.it_expires<=getdate() AND it.it_expires<=?
"; ";
$query = $this->HT->query($sql, array($this->config->item('site_code'), $it_id)); $query = $this->HT->query($sql, array($this->config->item('site_code'), $it_id,$timestamp));
//print_r($this->INFO->queries); //print_r($this->INFO->queries);
if ($query->num_rows() > 0) { if ($query->num_rows() > 0) {
$row = $query->row(); $row = $query->row();

Loading…
Cancel
Save