Commit 77cd5896 authored by zhz's avatar zhz

goods

parent 9700c873
...@@ -89,6 +89,7 @@ class GoodsCommonModel extends \DAO\AbstractModel { ...@@ -89,6 +89,7 @@ class GoodsCommonModel extends \DAO\AbstractModel {
} }
$str .= "->fetchAll();"; $str .= "->fetchAll();";
eval($str); eval($str);
\Our\Log::getInstance()->write($this->db->getLastSql());
return $data; return $data;
} }
/** /**
...@@ -130,6 +131,7 @@ class GoodsCommonModel extends \DAO\AbstractModel { ...@@ -130,6 +131,7 @@ class GoodsCommonModel extends \DAO\AbstractModel {
$str .=" limit {$limit[0]},{$limit[1]}"; $str .=" limit {$limit[0]},{$limit[1]}";
} }
$data = $this->db->query($str); $data = $this->db->query($str);
\Our\Log::getInstance()->write($this->db->getLastSql());
return $data->rows; return $data->rows;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment