@@ 970-980 (lines=11) @@ | ||
967 | ||
968 | // 获取加密内容 |
|
969 | ||
970 | protected function encryptJSONSignSource($request, $responseContent) { |
|
971 | ||
972 | $parsetItem = $this->parserEncryptJSONSignSource($request, $responseContent); |
|
973 | ||
974 | $bodyIndexContent = substr($responseContent, 0, $parsetItem->startIndex); |
|
975 | $bodyEndContent = substr($responseContent, $parsetItem->endIndex, strlen($responseContent) + 1 - $parsetItem->endIndex); |
|
976 | ||
977 | $bizContent = decrypt($parsetItem->encryptContent, $this->encryptKey); |
|
978 | return $bodyIndexContent . $bizContent . $bodyEndContent; |
|
979 | ||
980 | } |
|
981 | ||
982 | ||
983 | private function parserEncryptJSONSignSource($request, $responseContent) { |
|
@@ 1035-1045 (lines=11) @@ | ||
1032 | ||
1033 | // 获取加密内容 |
|
1034 | ||
1035 | protected function encryptXMLSignSource($request, $responseContent) { |
|
1036 | ||
1037 | $parsetItem = $this->parserEncryptXMLSignSource($request, $responseContent); |
|
1038 | ||
1039 | $bodyIndexContent = substr($responseContent, 0, $parsetItem->startIndex); |
|
1040 | $bodyEndContent = substr($responseContent, $parsetItem->endIndex, strlen($responseContent) + 1 - $parsetItem->endIndex); |
|
1041 | $bizContent = decrypt($parsetItem->encryptContent, $this->encryptKey); |
|
1042 | ||
1043 | return $bodyIndexContent . $bizContent . $bodyEndContent; |
|
1044 | ||
1045 | } |
|
1046 | ||
1047 | private function parserEncryptXMLSignSource($request, $responseContent) { |
|
1048 |