Skip to content

Commit 6b66ff1

Browse files
1. decryptData的getErrorMsg使用Common类中的getErrorMsg
1 parent 5641b71 commit 6b66ff1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MiniProgram.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function decryptData($paramArr = array())
9494
$sessionData = $this->jscode2Session($paramArr['code']);
9595
if (isset($sessionData['errcode'])) {
9696
$res['code'] = -101;
97-
$res['msg'] = $this->getErrorMsg($sessionData['errcode']);
97+
$res['msg'] = Common::getErrorMsg($sessionData['errcode']);
9898
return $res;
9999
}
100100
$openid = $sessionData['openid'];
@@ -114,7 +114,7 @@ public function decryptData($paramArr = array())
114114
$errCode = $pc->decryptData($paramArr['encryptedData'], $paramArr['iv'], $data);
115115
if (!empty($errCode)) {
116116
$res['code'] = -103;
117-
$res['msg'] = $this->getErrorMsg($errCode);
117+
$res['msg'] = Common::getErrorMsg($errCode);
118118
return $res;
119119
}
120120

0 commit comments

Comments
 (0)