新增漫画购买功能

This commit is contained in:
Yutousama 2022-04-08 13:39:00 +08:00
parent 3fdd2cf5ec
commit fab0cdf497

View File

@ -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() {