kongxiangyang 2 bulan lalu
induk
melakukan
8100e3197b

+ 2 - 3
crm-manager/src/main/java/com/crm/manager/service/impl/VaultodyServiceImpl.java

@@ -225,7 +225,7 @@ public class VaultodyServiceImpl implements VaultodyService {
         // ------------------ 构建消息用于签名 ------------------
         // ------------------ 构建消息用于签名 ------------------
         String message = timestamp + method + requestPath + query + JSON.toJSONString(params);
         String message = timestamp + method + requestPath + query + JSON.toJSONString(params);
         String signature = getSignature(message, apiSecret);
         String signature = getSignature(message, apiSecret);
-        System.out.println("Signature: " + signature);
+        log.info("Signature: {}",signature);
         Map<String, String> headers = new HashMap<>();
         Map<String, String> headers = new HashMap<>();
         headers.put("x-api-key", apiKey);
         headers.put("x-api-key", apiKey);
         headers.put("x-api-sign", signature);
         headers.put("x-api-sign", signature);
@@ -233,8 +233,7 @@ public class VaultodyServiceImpl implements VaultodyService {
         headers.put("x-api-passphrase", passphrase);
         headers.put("x-api-passphrase", passphrase);
         headers.put("Content-Type", "application/json");
         headers.put("Content-Type", "application/json");
         Connection.Response response = HttpUtil.get(baseUrl + requestPath, headers, params);
         Connection.Response response = HttpUtil.get(baseUrl + requestPath, headers, params);
-        System.out.println(response.statusCode());
-        System.out.println(response.body());
+        log.info("response.statusCode: {} , response.body: {}",response.statusCode() , response.body());
         if (response.statusCode() != 200) {
         if (response.statusCode() != 200) {
             return BaseResultDto.error(response.statusMessage());
             return BaseResultDto.error(response.statusMessage());
         }
         }