提交 ade76635 编写于 作者: yongbo.wang's avatar yongbo.wang

微信类型 1、云鹊医联 5、云鹊健康 10、基层大众版 15、云鹊医 20、基层医生版

上级 dd9640f4
......@@ -12,7 +12,7 @@ public class Constants {
public static String WECHAT_YQYL_TOKEN = "tokenPicaHealth";
//微信公众号简称
public static String WECHAT_NAME_YQYL="YQYL";
public static Integer WECHAT_NAME_YQYL= 1;//微信类型 1、云鹊医联 5、云鹊健康 10、基层大众版 15、云鹊医 20、基层医生版
//返回消息类型:文本
public static final String RESP_MESSAGE_TYPE_TEXT = "text";
......
......@@ -19,5 +19,5 @@ import java.util.Map;
@RequestMapping(value = "/wechats", headers = "sysCode=21", produces = "application/json;charset=UTF-8")
public interface IWechatsServiceClient {
@RequestMapping(method = RequestMethod.GET, value = "/users")
PicaResponse<Map<String, Object>> users(@RequestParam(value = "wechatName") String wechatName, @RequestParam(value = "openId") String openId);
PicaResponse<Map<String, Object>> users(@RequestParam(value = "type") Integer type, @RequestParam(value = "openId") String openId);
}
......@@ -28,7 +28,7 @@ public class WechatsServiceFailFactory implements FallbackFactory<IWechatsServic
return new IWechatsServiceClient() {
@Override
public PicaResponse users(String wechatName, String openId) {
public PicaResponse users(Integer type, String openId) {
logger.error("service:IWechatsServiceClient interface:users 触发熔断机制fallback", cause);
return response;
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册