新增漫画购买功能
This commit is contained in:
parent
3fdd2cf5ec
commit
fab0cdf497
@ -70,7 +70,7 @@ public class BiliBiliManga {
|
|||||||
JSONObject json = new JSONObject();
|
JSONObject json = new JSONObject();
|
||||||
if (isPayMission) {
|
if (isPayMission) {
|
||||||
json.put("code", 2);
|
json.put("code", 2);
|
||||||
json.put("msg", "任务正在进行:" + missionProduct);
|
json.put("msg", "任务正在进行:" + missionProduct+" 兑换数量:"+missionProduct.getPayAmount());
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
int userPoint = getMyPoint();
|
int userPoint = getMyPoint();
|
||||||
@ -96,7 +96,7 @@ public class BiliBiliManga {
|
|||||||
num = missionProduct.getRemain_amount();
|
num = missionProduct.getRemain_amount();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
missionProduct.setPayAmount(num);
|
||||||
JSONObject data = new JSONObject();
|
JSONObject data = new JSONObject();
|
||||||
data.put("product_id", id);
|
data.put("product_id", id);
|
||||||
data.put("product_num", num);
|
data.put("product_num", num);
|
||||||
@ -109,7 +109,7 @@ public class BiliBiliManga {
|
|||||||
json.put("msg", "商品无货,正在抢购");
|
json.put("msg", "商品无货,正在抢购");
|
||||||
}else {
|
}else {
|
||||||
json.put("code", 0);
|
json.put("code", 0);
|
||||||
json.put("msg", "任务创建成功:"+missionProduct+" 购买数量:"+num);
|
json.put("msg", "任务创建成功:"+missionProduct+" 兑换数量:"+num);
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
@ -164,6 +164,7 @@ public class BiliBiliManga {
|
|||||||
int remain_amount;
|
int remain_amount;
|
||||||
int real_cost;
|
int real_cost;
|
||||||
int amount;
|
int amount;
|
||||||
|
int payAmount;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
Loading…
Reference in New Issue
Block a user