| Total Complexity | 2 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class Encryptor{ |
||
| 10 | |||
| 11 | /** |
||
| 12 | * 解密数据(微信小程序手机号) |
||
| 13 | * @param string $sessionKey |
||
| 14 | * @param string $iv |
||
| 15 | * @param string $encrypted |
||
| 16 | * @return array |
||
| 17 | * array(4) { |
||
| 18 | * ["phoneNumber"]=> |
||
| 19 | * string(11) "1314666****" |
||
| 20 | * ["purePhoneNumber"]=> |
||
| 21 | * string(11) "1314666****" |
||
| 22 | * ["countryCode"]=> |
||
| 23 | * string(2) "86" |
||
| 24 | * ["watermark"]=> |
||
| 25 | * array(2) { |
||
| 26 | * ["timestamp"]=> |
||
| 27 | * int(1732589884) |
||
| 28 | * ["appid"]=> |
||
| 29 | * string(18) "wxb771b4b7fb****" |
||
| 30 | * } |
||
| 31 | * } |
||
| 32 | * @throws OAuthException |
||
| 33 | */ |
||
| 34 | static public function decryptData(string $sessionKey, string $iv, string $encrypted): array |
||
| 51 |