Prechádzať zdrojové kódy

清理无效的日志

wangyuanbo 2 rokov pred
rodič
commit
32853b2deb

+ 1 - 6
imcs-bt-be/imcs-authority-server/src/main/java/com/github/zuihou/api/AndroidApi.java

@@ -158,7 +158,7 @@ public class AndroidApi {
         resultMap.put("orderId", preOrder.getId());
         resultMap.put("productCfg", productConfig);
         resultMap.put("qrCode", qrCode);
-        System.out.println("安卓端下单返回==" + resultMap.toString());
+        System.out.println("安卓端下单返回orderId=" + preOrder.getId());
 
         return R.success(resultMap);
     }
@@ -281,7 +281,6 @@ public class AndroidApi {
         returnMap.put("message", "FAIL");
 
 
-        System.out.println("开始验签————》timestamp=" + timestamp + "nonce=" + wechatpayNonce + "signature=" + signature + "serial=" + serial);
         try {
             reader = request.getReader();
             String str = null;
@@ -295,14 +294,11 @@ public class AndroidApi {
             messageBuilder.append(wechatpayNonce).append("/n");
             messageBuilder.append(bodySb.toString()).append("/n");
 
-            System.out.println("待验签的message=" + messageBuilder.toString());
             Verifier verifier = WxPayUtil.getVerifier(wxPayCfg.getMchId(), wxPayCfg.getCertNo(), wxPayCfg.getPrivateKeyPath(), wxPayCfg.getApiV3Key());
 
 //            if (!WxPayUtil.verifierSign(verifier, messageBuilder.toString(), signature, serial)) {
-//                System.out.println("验签失败");
 //                return returnMap;
 //            }
-            System.out.println("开始解密了");
 
             ObjectMapper objectMapper = new ObjectMapper();
             JsonNode jsonNode = objectMapper.readTree(bodySb.toString());
@@ -349,7 +345,6 @@ public class AndroidApi {
                 return returnMap;
             }
         } catch (Exception e) {
-            System.out.println("支付回调异常" + e);
             e.printStackTrace();
             return returnMap;
         } finally {

+ 5 - 2
imcs-bt-be/imcs-authority-server/src/main/java/com/github/zuihou/service/WxPayService.java

@@ -30,7 +30,7 @@ public class WxPayService {
 
     //    调用微信统一下单接口
     public String wxUnifiedorder(UnifiedorderDto unifiedorderDto) throws Exception {
-        System.out.println("微信统一下单接口入参="+unifiedorderDto.toString());
+        System.out.println("微信统一下单接口入参,外部订单号="+unifiedorderDto.getOut_trade_no());
         HttpPost httpPost = new HttpPost(wxPayCfg.getWxUnifiedorder());
         Object o = JSONArray.toJSON(unifiedorderDto);
         String reqData = o.toString();
@@ -44,7 +44,6 @@ public class WxPayService {
         try {
             int statusCode = response.getStatusLine().getStatusCode();
             if (statusCode == 200) {
-                System.out.println("微信统一下单返回结果success,body=");
                 String s = EntityUtils.toString(response.getEntity());
                 JSONObject jsonObject = JSONObject.parseObject(s);
                 String prepayId = jsonObject.getString("prepay_id");
@@ -54,6 +53,7 @@ public class WxPayService {
 
             } else {
                 String msg = EntityUtils.toString(response.getEntity());
+                System.out.println("微信统一下单返回异常,body="+msg);
                 throw new IOException(msg);
             }
         } finally {
@@ -86,8 +86,11 @@ public class WxPayService {
         httpPost.setEntity(entity);
         httpPost.addHeader("Accept", "application/json");
         httpPost.addHeader("Content-type", "application/json; charset=utf-8");
+
         CloseableHttpResponse response = WxPayUtil.getClint(wxPayCfg.getMchId(), wxPayCfg.getCertNo(), wxPayCfg.getPrivateKeyPath(), wxPayCfg.getApiV3Key()).execute(httpPost);
 
+
+
         try {
             //响应码
             statusCode = response.getStatusLine().getStatusCode();

+ 0 - 2
imcs-bt-be/imcs-authority-server/src/test/java/com/github/zuihou/CacheTest.java

@@ -33,9 +33,7 @@ public class CacheTest {
 
 
         Map<String, Object> aaa = caches.get("aaa");
-        System.out.println(aaa);
         Map<String, Object> bbb = caches.get("aaa");
-        System.out.println(bbb);
         Map<String, Object> bbb1 = caches.get("aaa1");
         System.out.println(bbb1);
 

+ 0 - 1
imcs-bt-be/imcs-business-biz/src/main/java/com/github/zuihou/business/company/service/impl/CompanyServiceImpl.java

@@ -56,7 +56,6 @@ public class CompanyServiceImpl extends SuperServiceImpl<CompanyMapper, Company>
         List<Long> areaList = company.getAreaList();
         company.setComArea(JacksonUtil.writeValueAsString(areaList));
 //        **************************************************
-        log.info("*****************区域json" + company.getComArea());
         boolean save = true;
         if(null == company.getId()) {
             save = this.save(company);

+ 0 - 1
imcs-bt-be/imcs-business-biz/src/main/java/com/github/zuihou/business/goods/service/impl/GoodsServiceImpl.java

@@ -108,7 +108,6 @@ public class GoodsServiceImpl extends SuperServiceImpl<GoodsMapper, Goods> imple
         String access_token = "";
         String url = accessTokenUrl.replace("APPID", appId).replace("APPSECRET", secret);
         String result = HttpClientUtils.sendGetData(url);
-        log.info("查询出来的微信token" + result);
         JSONObject jsonObject = JSONObject.parseObject(result);
         if (jsonObject.get("access_token") != null) {
             access_token = jsonObject.getString("access_token");

+ 0 - 1
imcs-bt-be/imcs-business-biz/src/main/java/com/github/zuihou/business/miniApp/service/impl/MiniAppServiceImpl.java

@@ -61,7 +61,6 @@ public class MiniAppServiceImpl extends SuperServiceImpl<MiniAppMapper, MemberGr
 
         Token token = JwtUtil.createJWT(param, 25920000L);
 
-        System.out.println("生成的tokenInfo==" + token.toString());
 
 //        根据openId查询数据库,如果存在,更新token并返回会员信息
         QueryWrap<Member> memberQueryWrap = new QueryWrap<>();

+ 8 - 18
imcs-bt-be/imcs-business-controller/src/main/java/com/github/zuihou/business/controller/company/CompanyController.java

@@ -1,39 +1,30 @@
 package com.github.zuihou.business.controller.company;
 
-import cn.hutool.core.bean.BeanUtil;
-import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.github.zuihou.authority.entity.core.Org;
 import com.github.zuihou.authority.service.core.OrgService;
+import com.github.zuihou.base.R;
+import com.github.zuihou.base.controller.SuperController;
 import com.github.zuihou.base.request.PageParams;
-import com.github.zuihou.business.company.entity.Company;
+import com.github.zuihou.business.company.dto.CompanyPageDTO;
 import com.github.zuihou.business.company.dto.CompanySaveDTO;
 import com.github.zuihou.business.company.dto.CompanyUpdateDTO;
-import com.github.zuihou.business.company.dto.CompanyPageDTO;
+import com.github.zuihou.business.company.entity.Company;
 import com.github.zuihou.business.company.service.CompanyService;
-
-import java.util.List;
-import java.util.Map;
-import java.util.stream.Collectors;
-
-import com.github.zuihou.base.controller.SuperController;
-import com.github.zuihou.base.R;
-import com.github.zuihou.database.mybatis.conditions.Wraps;
 import com.github.zuihou.database.mybatis.conditions.query.LbqWrapper;
-import com.github.zuihou.database.mybatis.conditions.query.QueryWrap;
 import com.github.zuihou.log.annotation.SysLog;
-import com.xxl.job.core.util.JacksonUtil;
+import com.github.zuihou.security.annotation.PreAuth;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.extern.slf4j.Slf4j;
-import org.checkerframework.checker.units.qual.C;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.*;
-import com.github.zuihou.security.annotation.PreAuth;
 
-import javax.ws.rs.POST;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
 
 
 /**
@@ -83,7 +74,6 @@ public class CompanyController extends SuperController<CompanyService, Long, Com
     @ApiOperation(value = "保存公司", notes = "保存公司")
     @PostMapping("/saveCompany")
     public R<Boolean> saveCompany(@RequestBody Company company) {
-        log.info("保存企业入参" + JacksonUtil.writeValueAsString(company));
         R<Boolean> result = baseService.saveCompany(company);
         if(result.getIsSuccess()){
             Org org = orgService.getOne(new LbqWrapper<Org>().eq(Org::getLabel, company.getComName()));

+ 0 - 1
imcs-bt-be/imcs-business-controller/src/main/java/com/github/zuihou/business/controller/goods/GoodsController.java

@@ -73,7 +73,6 @@ public class GoodsController extends SuperController<GoodsService, Long, Goods,
     )
     @PreAuth("hasPermit('{}add')")
     public R saveGoods(@RequestBody @Validated Goods goods) {
-        log.info("goods对象" + JSON.toJSONString(goods));
         int i = baseService.saveGoods(goods);
         return R.success();
     }

+ 0 - 1
imcs-bt-be/imcs-business-controller/src/main/java/com/github/zuihou/business/controller/productionresource/ResourceBusinessController.java

@@ -99,7 +99,6 @@ public class ResourceBusinessController extends SuperController<ResourceBusiness
     @PostMapping(value = "/saveEquGoods")
     @ResponseBody
     public R<Boolean> saveEquGoods(@RequestBody EquAndGoodsSaveDTO egDto) {
-        log.info("equAndGoods=" + egDto.toString());
         return R.success(baseService.saveEquGoods(egDto));
     }
 

+ 0 - 2
imcs-bt-be/imcs-common/src/main/java/com/github/zuihou/common/util/QrcodeUtil.java

@@ -28,9 +28,7 @@ public class QrcodeUtil {
         try {
             generateQRCodeImage("This is my first QR Code", 350, 350, QR_CODE_IMAGE_PATH);
         } catch (WriterException e) {
-            System.out.println("Could not generate QR Code, WriterException :: " + e.getMessage());
         } catch (IOException e) {
-            System.out.println("Could not generate QR Code, IOException :: " + e.getMessage());
         }
 
     }

+ 0 - 3
imcs-bt-be/imcs-tenant-biz/src/main/java/com/github/zuihou/tenant/util/HttpClientUtils.java

@@ -43,8 +43,6 @@ public class HttpClientUtils {
 
     public static synchronized CloseableHttpClient getHttpClient() {
         if (httpClient == null) {
-            System.out.println("---------------------------------------------------------创建");
-
             //注册访问协议相关的Socket工厂
             Registry<ConnectionSocketFactory> socketFactoryRegistry = RegistryBuilder
                     .<ConnectionSocketFactory>create()
@@ -316,7 +314,6 @@ public class HttpClientUtils {
             String s = EntityUtils.toString(entity);
             com.alibaba.fastjson.JSONObject jsonObject = com.alibaba.fastjson.JSONObject.parseObject(s);
             if (jsonObject.get("errcode") != null) {
-                System.out.println("获取小程序码失败,errcode=" + jsonObject.get("errcode") + "errmsg=" + jsonObject.get("errmsg"));
                 returnMap.put("errcode", jsonObject.get("errcode"));
                 returnMap.put("errmsg", jsonObject.get("errmsg"));
                 return returnMap;