diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/app/recharge/AppPhoneRecordController.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/app/recharge/AppPhoneRecordController.java index 8b223f46d..7addc129a 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/app/recharge/AppPhoneRecordController.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/app/recharge/AppPhoneRecordController.java @@ -63,14 +63,13 @@ public class AppPhoneRecordController { return success(null); } @PostMapping("delete") - public CommonResult delete(@RequestBody List data){ - String result = HttpRequest.post(phoneUrl+"query/deleteReport") + public CommonResult delete(@RequestBody String data){ + String result = HttpRequest.post(phoneUrl+"query/deleteReport?orderNo="+data) .header("token",token) - .body(JSONObject.toJSONString(data)) .execute() .body(); JSONObject resultJson = JSONObject.parseObject(result); - log.info("提报新增返回结果{}",JSONObject.toJSONString(resultJson)); + log.info("删除返回结果{}",JSONObject.toJSONString(resultJson)); if("0000".equals(resultJson.get("code"))){ return success(null); } diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/PhoneRecordServiceImpl.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/PhoneRecordServiceImpl.java index 984000c4e..bbe6284c5 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/PhoneRecordServiceImpl.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/PhoneRecordServiceImpl.java @@ -141,9 +141,8 @@ public class PhoneRecordServiceImpl implements PhoneRecordService { */ @Override public Boolean deletePhoneGear(String orderId) { - String result = HttpRequest.post(phoneUrl+"query/deleteReport") + String result = HttpRequest.post(phoneUrl+"query/deleteReport?orderNo="+orderId) .header("token",token) - .body(JSONObject.toJSONString(orderId)) .execute() .body(); JSONObject resultJson = JSONObject.parseObject(result);