Commit 82323331 by 王召彬

test

parent eaa8052b
......@@ -17,8 +17,7 @@ class BaseException extends Exception
public function __construct($params)
{
if(!is_array($params)){
return ;
throw new Exception('参数必须是数组');
return;
}
if(array_key_exists('code',$params)){
$this->code = $params['errorCode'];
......@@ -36,7 +35,7 @@ class BaseException extends Exception
}
public function getErrcode(){
return $this->errorCode;
return $this->errorCode;
}
}
\ No newline at end of file
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