记得上下班打卡 | git大法好,push需谨慎

Commit bf0c5082 authored by 胡佳晨's avatar 胡佳晨

修改脚本

parent bdbdcdb6
......@@ -97,12 +97,12 @@ public class DataImpl {
}
//获取演出每日任务积分
Integer performancePrice = orderTicketsMapper.getOrderScore(uid);
score += (performancePrice.intValue() / 100);
score += (performancePrice.intValue());
//获取商品每日任务积分
String resultData = HttpUtil.get("http://devmall.zhengzai.tv/admin/sumUserCost?user_id=" + 1, null);
String resultData = HttpUtil.get("http://mall.zhengzai.tv/admin/sumUserCost?user_id=" + uid, null);
int goodsPrice = (int) JSONObject.parseObject(resultData).get("cost");
try {
score += (goodsPrice / 100);
score += (goodsPrice);
}catch (Exception e){
}
......@@ -141,7 +141,7 @@ public class DataImpl {
if (isLog <= 0) {
MultiValueMap<String, String> params = CollectionUtil.linkedMultiValueMapStringString();
params.add("uid", uid);
params.add("score", score + "");
params.add("score", (score>=12000?12000:score) + "");
params.add("content", "历史积分");
HttpUtil.post(stoneUrl + "/user/logs/in2111", params);
}
......@@ -180,11 +180,11 @@ public class DataImpl {
}
//获取演出每日任务积分
Integer performancePrice = orderTicketsMapper.getOrderScore(uid);
score += performancePrice.intValue() / 100;
score += performancePrice.intValue();
//获取商品每日任务积分
String resultData = HttpUtil.get("http://devmall.zhengzai.tv/admin/sumUserCost?user_id=" + 1, null);
String resultData = HttpUtil.get("http://mall.zhengzai.tv/admin/sumUserCost?user_id=" + uid, null);
int goodsPrice = (int) JSONObject.parseObject(resultData).get("cost");
score += goodsPrice / 100;
score += goodsPrice ;
//获取 关注摩登天空服务号
if (getUnionIdByPhone(mobile) != null) {
......@@ -220,7 +220,7 @@ public class DataImpl {
if (isLog <= 0) {
MultiValueMap<String, String> params = CollectionUtil.linkedMultiValueMapStringString();
params.add("uid", uid);
params.add("score", score + "");
params.add("score", (score>=12000?12000:score) + "");
params.add("content", "历史积分");
HttpUtil.post(stoneUrl + "/user/logs/in2111", params);
}
......
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