Commit 61654f2c by xmy
parents 5b0d5890 209bcacb
......@@ -24,11 +24,13 @@ class CommonException extends Exception
$this->message = $params['msg'];
}
// 参数errCode 等效于 errorCode
// 参数errCode 等效于 传参errorCode
if(isset($params['errCode'])){
$params['errorCode'] = $params['errCode'];
}
$this->errorCode = $params['errorCode'];
if(isset($params['errorCode'])) {
$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