Commit ec835e00 authored by zhuwei's avatar zhuwei

1

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