Commit 226ce52a by guojuxing

服务周期修改

parent 74710c84
......@@ -91,7 +91,15 @@ public class ServiceInfoVO implements Serializable{
}
JSONObject jsonObject = JSONObject.parseObject(skuInfo);
JSONObject period = jsonObject.getJSONObject("period");
return period.get("effect_time") + (String) period.get("name");
String unit = (String) period.get("effect_time");
if ("3".equals(unit)) {
unit = "年";
} else if("2".equals(unit)) {
unit = "月";
} else {
unit = "天";
}
return period.get("effect_time") + unit;
}
public String getServeInfo() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment