Skip to content

Commit

Permalink
1. decryptData的getErrorMsg使用Common类中的getErrorMsg
Browse files Browse the repository at this point in the history
  • Loading branch information
shinn-lancelot committed Dec 10, 2018
1 parent 5641b71 commit 6b66ff1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MiniProgram.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function decryptData($paramArr = array())
$sessionData = $this->jscode2Session($paramArr['code']);
if (isset($sessionData['errcode'])) {
$res['code'] = -101;
$res['msg'] = $this->getErrorMsg($sessionData['errcode']);
$res['msg'] = Common::getErrorMsg($sessionData['errcode']);
return $res;
}
$openid = $sessionData['openid'];
Expand All @@ -114,7 +114,7 @@ public function decryptData($paramArr = array())
$errCode = $pc->decryptData($paramArr['encryptedData'], $paramArr['iv'], $data);
if (!empty($errCode)) {
$res['code'] = -103;
$res['msg'] = $this->getErrorMsg($errCode);
$res['msg'] = Common::getErrorMsg($errCode);
return $res;
}

Expand Down

0 comments on commit 6b66ff1

Please sign in to comment.