Commit b5709341 authored by zhz's avatar zhz

goods

parent 19d68c5f
...@@ -86,6 +86,7 @@ class GoodsCommonModel extends \DAO\AbstractModel { ...@@ -86,6 +86,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;
} }
/** /**
...@@ -124,6 +125,7 @@ class GoodsCommonModel extends \DAO\AbstractModel { ...@@ -124,6 +125,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