Explorar o código

fix 获取客服下标

zoujiajian hai 10 meses
pai
achega
6a6a297acf

+ 4 - 2
netflix-web/src/main/java/com/cyksj/web/controller/sys/SysConfigController.java

@@ -251,8 +251,10 @@ public class SysConfigController {
 	 * 获取客服下标
 	 */
 	@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);
 		if (index == 10) {
 			redisService.set(key, 0);