|
@ -18,6 +18,7 @@ import org.springframework.stereotype.Controller;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
@ -230,15 +231,4 @@ public class WechatCoreController extends WeixinBaseController {
|
|
return s;
|
|
return s;
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/getDoctorActivityPath")
|
|
|
|
@ResponseBody
|
|
|
|
private String getDoctorActivityPath(String code){
|
|
|
|
try {
|
|
|
|
Doctor d = doctorService.findDoctorByCode(code);
|
|
|
|
return write(-1, "获取成功!", "data", d.getActivityPath());
|
|
|
|
}catch (Exception e){
|
|
|
|
error(e);
|
|
|
|
return error(-1, "获取地址失败");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
}
|