From fab0cdf497fecf463dc459438109bc55958b5461 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Fri, 8 Apr 2022 13:39:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=BC=AB=E7=94=BB=E8=B4=AD?= =?UTF-8?q?=E4=B9=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yutou/qqbot/bilibili/BiliBiliManga.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/yutou/qqbot/bilibili/BiliBiliManga.java b/src/main/java/com/yutou/qqbot/bilibili/BiliBiliManga.java index fea9677..9b71605 100644 --- a/src/main/java/com/yutou/qqbot/bilibili/BiliBiliManga.java +++ b/src/main/java/com/yutou/qqbot/bilibili/BiliBiliManga.java @@ -70,7 +70,7 @@ public class BiliBiliManga { JSONObject json = new JSONObject(); if (isPayMission) { json.put("code", 2); - json.put("msg", "任务正在进行:" + missionProduct); + json.put("msg", "任务正在进行:" + missionProduct+" 兑换数量:"+missionProduct.getPayAmount()); return json; } int userPoint = getMyPoint(); @@ -96,7 +96,7 @@ public class BiliBiliManga { num = missionProduct.getRemain_amount(); } - + missionProduct.setPayAmount(num); JSONObject data = new JSONObject(); data.put("product_id", id); data.put("product_num", num); @@ -109,7 +109,7 @@ public class BiliBiliManga { json.put("msg", "商品无货,正在抢购"); }else { json.put("code", 0); - json.put("msg", "任务创建成功:"+missionProduct+" 购买数量:"+num); + json.put("msg", "任务创建成功:"+missionProduct+" 兑换数量:"+num); } return json; } @@ -164,6 +164,7 @@ public class BiliBiliManga { int remain_amount; int real_cost; int amount; + int payAmount; @Override public String toString() {