Authored by wangnan

自动客服 fix

package com.yoho.search.restapi.others;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import com.yoho.search.common.cache.aop.SearchCacheAble;
import com.yoho.search.common.utils.HttpServletRequestUtils;
import com.yoho.search.models.SearchApiResult;
import com.yoho.search.service.service.IRobotQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.yoho.search.common.cache.aop.SearchCacheAble;
import com.yoho.search.common.utils.HttpServletRequestUtils;
import com.yoho.search.models.SearchApiResult;
import com.yoho.search.service.service.IRobotQuestionService;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;
/**
* Created by wangnan on 2016/12/13.
... ... @@ -30,7 +28,7 @@ public class RobotQuestionController {
* @param request
* @return
*/
@SearchCacheAble(cacheInMinute = 10, cacheName = "ROBOT_QUESTION")
@SearchCacheAble(cacheInMinute = 1, cacheName = "ROBOT_QUESTION")
@RequestMapping(method = RequestMethod.GET, value = "/robotquestion")
@ResponseBody
public SearchApiResult searchRobotQuestion(HttpServletRequest request) {
... ...