|
@@ -251,8 +251,10 @@ public class SysConfigController {
|
|
|
* 获取客服下标
|
|
* 获取客服下标
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/get/service/index")
|
|
@GetMapping("/get/service/index")
|
|
|
- public Result<Long> getCorpFollowIndex() {
|
|
|
|
|
- String key = RedisKey.SERVICE_INDEX_KEY;
|
|
|
|
|
|
|
+ public Result<Long> getCorpFollowIndex(@RequestParam(defaultValue = "1") Integer type) {
|
|
|
|
|
+ //客服下表类型
|
|
|
|
|
+ String oriType = type == 1 ? "ep" : "other";
|
|
|
|
|
+ String key = RedisKey.SERVICE_INDEX_KEY + oriType;
|
|
|
Long index = redisService.incr(key, 1l);
|
|
Long index = redisService.incr(key, 1l);
|
|
|
if (index == 10) {
|
|
if (index == 10) {
|
|
|
redisService.set(key, 0);
|
|
redisService.set(key, 0);
|