فهرست منبع

先关闭测试代码

lqc 4 سال پیش
والد
کامیت
ef375efe80
1فایلهای تغییر یافته به همراه16 افزوده شده و 16 حذف شده
  1. 16 16
      src/main/java/com/mokamrp/privates/controller/pangu/FosterwxMobilePoolController.java

+ 16 - 16
src/main/java/com/mokamrp/privates/controller/pangu/FosterwxMobilePoolController.java

@@ -89,22 +89,22 @@ public class FosterwxMobilePoolController extends BaseController<FosterwxMobileP
             fosterwxMobilePoolService.updateById(editHandle.getRaw());
             fosterwxMobilePoolService.updateById(editHandle.getRaw());
 
 
             // 判断专挑或阈值是否有更改
             // 判断专挑或阈值是否有更改
-            Map<String, Object> body = new HashMap<>(1);
-            body.put("ids", id);
-            boolean ischange = false;
-            if (!Objects.equals(oldVO.getStatus(), editHandle.getRaw().getStatus())) {
-                ischange = true;
-                body.put("status", editHandle.getRaw().getStatus() == 0 ? 2 : 1);
-            }
-            if (!Objects.equals(oldVO.getMaxFans(), editHandle.getRaw().getMaxFans())) {
-                ischange = true;
-                body.put("threshold", editHandle.getRaw().getMaxFans());
-            }
-
-            if (ischange) {
-                HttpEntity<Map<String, Object>> httpEntity = new HttpEntity<>(body, null);
-                JSONObject result = restTemplate.exchange(domain + "/poster/qrcode/update", HttpMethod.POST, httpEntity, JSONObject.class).getBody();
-            }
+            // Map<String, Object> body = new HashMap<>(1);
+            // body.put("ids", id);
+            // boolean ischange = false;
+            // if (!Objects.equals(oldVO.getStatus(), editHandle.getRaw().getStatus())) {
+            //     ischange = true;
+            //     body.put("status", editHandle.getRaw().getStatus() == 0 ? 2 : 1);
+            // }
+            // if (!Objects.equals(oldVO.getMaxFans(), editHandle.getRaw().getMaxFans())) {
+            //     ischange = true;
+            //     body.put("threshold", editHandle.getRaw().getMaxFans());
+            // }
+            //
+            // if (ischange) {
+            //     HttpEntity<Map<String, Object>> httpEntity = new HttpEntity<>(body, null);
+            //     JSONObject result = restTemplate.exchange(domain + "/poster/qrcode/update", HttpMethod.POST, httpEntity, JSONObject.class).getBody();
+            // }
         });
         });
         return AjaxResult.success("新增成功!");
         return AjaxResult.success("新增成功!");
     }
     }