Commit ec835e00 authored by zhuwei's avatar zhuwei

1

parent 3f3c0859
...@@ -543,6 +543,7 @@ class OrderLog extends Basic ...@@ -543,6 +543,7 @@ class OrderLog extends Basic
"page_no" => 1, "page_no" => 1,
"page_size" => 15 "page_size" => 15
);*/ );*/
if (!isset($params["submit_agent_id"]) || !isset($params["status"])) { if (!isset($params["submit_agent_id"]) || !isset($params["status"])) {
return $this->response("101", "请求参数错误"); return $this->response("101", "请求参数错误");
} }
......
...@@ -174,8 +174,13 @@ function tranTime($time_inpute) ...@@ -174,8 +174,13 @@ function tranTime($time_inpute)
* 独立记录日志文件 * 独立记录日志文件
* @param $content * @param $content
*/ */
function big_log($content){ function big_log($content,$filename='find_bug'){
$filename = ROOT_PATH.'runtime/log/find_bug.log'; $filenames = ROOT_PATH.'runtime/log/'.$filename.'.log';
$content = '['.date("Y-m-d H:i:s", time()).'] '.$content; $time_str = '['.date("Y-m-d H:i:s", time()).'] ';
file_put_contents($filename, $content."\r\n", FILE_APPEND); if(is_array($content)){
$content = print_r($content, true);
}
$content = $time_str.$content."\r\n";
file_put_contents($filenames, $content, FILE_APPEND);
} }
\ No newline at end of file
...@@ -183,8 +183,8 @@ class ImageDepot extends Basic ...@@ -183,8 +183,8 @@ class ImageDepot extends Basic
public function ceshi() public function ceshi()
{ {
big_log('=============测试================='); $arr = ['html','css','javascript','vuejs'];
big_log($arr);
} }
......
...@@ -295,9 +295,7 @@ class OBargainModel extends Model ...@@ -295,9 +295,7 @@ class OBargainModel extends Model
->limit($pageSize) ->limit($pageSize)
->page($pageNo) ->page($pageNo)
->select(); ->select();
//echo $this->db_->getLastSql(); // big_log($this->db_->getLastSql());
// dump($this->db_->getLastSql());exit;
return $result; return $result;
} }
......
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