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

Commit 5971dda3 authored by zhengfuxin's avatar zhengfuxin

Merge remote-tracking branch 'remotes/origin/master' into zfx-Recommend

parents 8762589c ce21c900
......@@ -109,5 +109,7 @@ public class KylinRedisConst {
//订单关联 Ar激活码
public static final String ORDER_AR_CODE = "kylin:ar:order:";//$key + $orderId
public static final String ACTIVE_USE_AR_COUNT = "kylin:ar:use:count";//ar激活码使用量
}
......@@ -55,6 +55,7 @@ public class KylinArActiveServiceImpl implements IKylinArActiveService {
2,uid, LocalDateTime.now(),code
}
));
dataUtils.incrArCode();
return ResponseDto.success();
}
}
......@@ -1455,4 +1455,9 @@ public class DataUtils {
return (List<String>) obj;
}
}
//添加激活码使用量
public void incrArCode() {
redisUtil.incr(KylinRedisConst.ACTIVE_USE_AR_COUNT,1);
}
}
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