Commit 900b7439 by 王召彬

test

parent 48afabf0
......@@ -24,9 +24,11 @@ class CommonException extends Exception
$this->message = $params['msg'];
}
if(isset($params['errorCode'])){
$this->errorCode = $params['errorCode'];
// 参数errCode 等效于 errorCode
if(isset($params['errCode'])){
$params['errorCode'] = $params['errCode'];
}
$this->errorCode = $params['errorCode'];
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