|
@@ -12,6 +12,8 @@ import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
|
import org.apache.commons.io.FileUtils;
|
|
|
import org.apache.commons.io.IOUtils;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
@@ -50,6 +52,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
@Api(tags = "易宝支付服务")
|
|
|
@RestController
|
|
|
public class YeepayController extends BaseController {
|
|
|
+ private static final Logger logger = LoggerFactory.getLogger(YeepayController.class);
|
|
|
|
|
|
@Autowired
|
|
|
private HfMemberService hfMemberService;
|
|
@@ -126,7 +129,8 @@ public class YeepayController extends BaseController {
|
|
|
PrivateKey privateKey =RSAKeyUtils.string2PrivateKey(hfMerchantConfig.getRsaPrivateKey());
|
|
|
PublicKey publicKey = RSAKeyUtils.string2PublicKey(hfMerchantConfig.getRsaPublicKey());
|
|
|
|
|
|
- dto = DigitalEnvelopeUtils.decrypt(dto, privateKey, publicKey);
|
|
|
+ dto = DigitalEnvelopeUtils.decrypt(dto, privateKey, publicKey);
|
|
|
+ logger.info("易宝支付回调信息:{}", JSON.toJSONString(dto));
|
|
|
System.out.println("支付回调信息:" + JSON.toJSONString(dto));
|
|
|
|
|
|
return "SUCCESS";
|