Commit d96a23a2 by 王召彬

test

parent 82323331
......@@ -20,15 +20,15 @@ class BaseException extends Exception
return;
}
if(array_key_exists('code',$params)){
$this->code = $params['errorCode'];
$this->code = $params['code'];
}
if(array_key_exists('msg',$params)){
$this->message = $params['msg'];
}
if(array_key_exists('errorCode',$params)){
$this->errorCode = $params['errorCode'];
if(array_key_exists('error_code',$params)){
$this->errorCode = $params['error_code'];
}
parent::__construct($this->message, $this->code);
......
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