處理收到的微信用戶消息并給出回復 --文字類消息

首先定義一個類InputMessage? 接受微信發(fā)過來的消息,微信穿過來的消息主要有,文字(用戶輸入的),點擊事件(按鈕),圖片,語音,鏈接,位置等等具體代碼如下:```import java.io.Serializable;import com.thoughtworks.xstream.annotations.XStreamAlias;@XStreamAlias("xml")? public class InputMessage implements Serializable {? ? ? ? /**? ? ? *? ? ? */? ? ? private static final long serialVersionUID = 1L;? ? ? @XStreamAlias("ToUserName")? ? ? private String ToUserName;? ? ? @XStreamAlias("FromUserName")? ? ? private String FromUserName;? ? ? @XStreamAlias("CreateTime")? ? ? private Long CreateTime;? ? ? @XStreamAlias("MsgType")? ? ? private String MsgType = "text";? ? ? @XStreamAlias("MsgId")? ? ? private Long MsgId;? ? ? // 文本消息? ? ? @XStreamAlias("Content")? ? ? private String Content;? ? ? // 圖片消息? ? ? @XStreamAlias("PicUrl")? ? ? private String PicUrl;? ? ? // 位置消息? ? ? @XStreamAlias("LocationX")? ? ? private String LocationX;? ? ? @XStreamAlias("LocationY")? ? ? private String LocationY;? ? ? @XStreamAlias("Scale")? ? ? private Long Scale;? ? ? @XStreamAlias("Label")? ? ? private String Label;? ? ? // 鏈接消息? ? ? @XStreamAlias("Title")? ? ? private String Title;? ? ? @XStreamAlias("Description")? ? ? private String Description;? ? ? @XStreamAlias("Url")? ? ? private String URL;? ? ? // 語音信息? ? ? @XStreamAlias("MediaId")? ? ? private String MediaId;? ? ? @XStreamAlias("Format")? ? ? private String Format;? ? ? @XStreamAlias("Recognition")? ? ? private String Recognition;? ? ? // 事件? ? ? @XStreamAlias("Event")? ? ? private String Event;? ? ? @XStreamAlias("EventKey")? ? ? private String EventKey;? ? ? @XStreamAlias("Ticket")? ? ? private String Ticket;? ? ? ? public String getToUserName() {? ? ? ? ? return ToUserName;? ? ? }? ? ? ? public void setToUserName(String toUserName) {? ? ? ? ? ToUserName = toUserName;? ? ? }? ? ? ? public String getFromUserName() {? ? ? ? ? return FromUserName;? ? ? }? ? ? ? public void setFromUserName(String fromUserName) {? ? ? ? ? FromUserName = fromUserName;? ? ? }? ? ? ? public Long getCreateTime() {? ? ? ? ? return CreateTime;? ? ? }? ? ? ? public void setCreateTime(Long createTime) {? ? ? ? ? CreateTime = createTime;? ? ? }? ? ? ? public String getMsgType() {? ? ? ? ? return MsgType;? ? ? }? ? ? ? public void setMsgType(String msgType) {? ? ? ? ? MsgType = msgType;? ? ? }? ? ? ? public Long getMsgId() {? ? ? ? ? return MsgId;? ? ? }? ? ? ? public void setMsgId(Long msgId) {? ? ? ? ? MsgId = msgId;? ? ? }? ? ? ? public String getContent() {? ? ? ? ? return Content;? ? ? }? ? ? ? public void setContent(String content) {? ? ? ? ? Content = content;? ? ? }? ? ? ? public String getPicUrl() {? ? ? ? ? return PicUrl;? ? ? }? ? ? ? public void setPicUrl(String picUrl) {? ? ? ? ? PicUrl = picUrl;? ? ? }? ? ? ? public String getLocationX() {? ? ? ? ? return LocationX;? ? ? }? ? ? ? public void setLocationX(String locationX) {? ? ? ? ? LocationX = locationX;? ? ? }? ? ? ? public String getLocationY() {? ? ? ? ? return LocationY;? ? ? }? ? ? ? public void setLocationY(String locationY) {? ? ? ? ? LocationY = locationY;? ? ? }? ? ? ? public Long getScale() {? ? ? ? ? return Scale;? ? ? }? ? ? ? public void setScale(Long scale) {? ? ? ? ? Scale = scale;? ? ? }? ? ? ? public String getLabel() {? ? ? ? ? return Label;? ? ? }? ? ? ? public void setLabel(String label) {? ? ? ? ? Label = label;? ? ? }? ? ? ? public String getTitle() {? ? ? ? ? return Title;? ? ? }? ? ? ? public void setTitle(String title) {? ? ? ? ? Title = title;? ? ? }? ? ? ? public String getDescription() {? ? ? ? ? return Description;? ? ? }? ? ? ? public void setDescription(String description) {? ? ? ? ? Description = description;? ? ? }? ? ? ? public String getURL() {? ? ? ? ? return URL;? ? ? }? ? ? ? public void setURL(String uRL) {? ? ? ? ? URL = uRL;? ? ? }? ? ? ? public String getEvent() {? ? ? ? ? return Event;? ? ? }? ? ? ? public void setEvent(String event) {? ? ? ? ? Event = event;? ? ? }? ? ? ? public String getEventKey() {? ? ? ? ? return EventKey;? ? ? }? ? ? ? public void setEventKey(String eventKey) {? ? ? ? ? EventKey = eventKey;? ? ? }? ? ? ? public String getMediaId() {? ? ? ? ? return MediaId;? ? ? }? ? ? ? public void setMediaId(String mediaId) {? ? ? ? ? MediaId = mediaId;? ? ? }? ? ? ? public String getFormat() {? ? ? ? ? return Format;? ? ? }? ? ? ? public void setFormat(String format) {? ? ? ? ? Format = format;? ? ? }? ? ? ? public String getRecognition() {? ? ? ? ? return Recognition;? ? ? }? ? ? ? public void setRecognition(String recognition) {? ? ? ? ? Recognition = recognition;? ? ? }? ? ? ? public String getTicket() {? ? ? ? ? return Ticket;? ? ? }? ? ? ? public void setTicket(String ticket) {? ? ? ? ? Ticket = ticket;? ? ? }? } import java.lang.annotation.ElementType;? import java.lang.annotation.Retention;? import java.lang.annotation.RetentionPolicy;? import java.lang.annotation.Target;? ? @Retention(RetentionPolicy.RUNTIME)? @Target({ ElementType.FIELD })? public @interface XStreamCDATA {? ? }? ```然后我們定義一個返回類根據(jù)對應的事件返回文本消息數(shù)據(jù)代碼如下:```import com.thoughtworks.xstream.annotations.XStreamAlias;? ? @XStreamAlias("xml")? public class OutputMessage {? ? ? ? @XStreamAlias("ToUserName")? ? ? @XStreamCDATA? ? ? private String ToUserName;? ? ? ? @XStreamAlias("FromUserName")? ? ? @XStreamCDATA? ? ? private String FromUserName;? ? ? ? @XStreamAlias("CreateTime")? ? ? private Long CreateTime;? ? ? ? @XStreamAlias("MsgType")? ? ? @XStreamCDATA? ? ? private String MsgType = "text";? ? ? ? private ImageMessage Image;? ? ? ? public String getToUserName() {? ? ? ? ? return ToUserName;? ? ? }? ? ? ? public void setToUserName(String toUserName) {? ? ? ? ? ToUserName = toUserName;? ? ? }? ? ? ? public String getFromUserName() {? ? ? ? ? return FromUserName;? ? ? }? ? ? ? public void setFromUserName(String fromUserName) {? ? ? ? ? FromUserName = fromUserName;? ? ? }? ? ? ? public Long getCreateTime() {? ? ? ? ? return CreateTime;? ? ? }? ? ? ? public void setCreateTime(Long createTime) {? ? ? ? ? CreateTime = createTime;? ? ? }? ? ? ? public String getMsgType() {? ? ? ? ? return MsgType;? ? ? }? ? ? ? public void setMsgType(String msgType) {? ? ? ? ? MsgType = msgType;? ? ? }? ? ? ? public ImageMessage getImage() {? ? ? ? ? return Image;? ? ? }? ? ? ? public void setImage(ImageMessage image) {? ? ? ? ? Image = image;? ? ? } }? ```最后將消息轉換給xml格式發(fā)送給用戶所以還需要一個xml轉換類代碼如下:```import com.thoughtworks.xstream.XStream;? import com.thoughtworks.xstream.annotations.XStreamAlias;? import com.thoughtworks.xstream.core.util.QuickWriter;? import com.thoughtworks.xstream.io.HierarchicalStreamWriter;? import com.thoughtworks.xstream.io.xml.PrettyPrintWriter;? import com.thoughtworks.xstream.io.xml.XppDriver;? import java.io.Writer;? import java.lang.reflect.Field;? public class SerializeXmlUtil {? ? ? public static XStream createXstream() {? ? ? ? ? return new XStream(new XppDriver() {? ? ? ? ? ? ? @Override? ? ? ? ? ? ? public HierarchicalStreamWriter createWriter(Writer out) {? ? ? ? ? ? ? ? ? return new PrettyPrintWriter(out) {? ? ? ? ? ? ? ? ? ? ? boolean cdata = false;? ? ? ? ? ? ? ? ? ? ? Class? targetClass = null;? ? ? ? ? ? ? ? ? ? ? ? @Override? ? ? ? ? ? ? ? ? ? ? public void startNode(String name, @SuppressWarnings("rawtypes") Class clazz) {? ? ? ? ? ? ? ? ? ? ? ? ? super.startNode(name, clazz);? ? ? ? ? ? ? ? ? ? ? ? ? // 業(yè)務處理,對于用XStreamCDATA標記的Field,需要加上CDATA標簽? ? ? ? ? ? ? ? ? ? ? ? ? if (!name.equals("xml")) {? ? ? ? ? ? ? ? ? ? ? ? ? ? ? cdata = needCDATA(targetClass, name);? ? ? ? ? ? ? ? ? ? ? ? ? } else {? ? ? ? ? ? ? ? ? ? ? ? ? ? ? targetClass = clazz;? ? ? ? ? ? ? ? ? ? ? ? ? }? ? ? ? ? ? ? ? ? ? ? }? ? ? ? ? ? ? ? ? ? ? ? @Override? ? ? ? ? ? ? ? ? ? ? protected void writeText(QuickWriter writer, String text) {? ? ? ? ? ? ? ? ? ? ? ? ? if (cdata) {? ? ? ? ? ? ? ? ? ? ? ? ? ? ? writer.write("");? ? ? ? ? ? ? ? ? ? ? ? ? } else {? ? ? ? ? ? ? ? ? ? ? ? ? ? ? writer.write(text);? ? ? ? ? ? ? ? ? ? ? ? ? }? ? ? ? ? ? ? ? ? ? ? }? ? ? ? ? ? ? ? ? };? ? ? ? ? ? ? }? ? ? ? ? });? ? ? }? ? ? ? private static boolean needCDATA(ClasstargetClass, String fieldAlias) {? ? ? ? ? boolean cdata = false;? ? ? ? ? // first, scan self? ? ? ? ? cdata = existsCDATA(targetClass, fieldAlias);? ? ? ? ? if (cdata)? ? ? ? ? ? ? return cdata;? ? ? ? ? // if cdata is false, scan supperClass until java.lang.Object? ? ? ? ? ClasssuperClass = targetClass.getSuperclass();? ? ? ? ? while (!superClass.equals(Object.class)) {? ? ? ? ? ? ? cdata = existsCDATA(superClass, fieldAlias);? ? ? ? ? ? ? if (cdata)? ? ? ? ? ? ? ? ? return cdata;? ? ? ? ? ? ? superClass = superClass.getClass().getSuperclass();? ? ? ? ? }? ? ? ? ? return false;? ? ? }? ? ? ? private static boolean existsCDATA(Classclazz, String fieldAlias) {? ? ? ? ? if ("MediaId".equals(fieldAlias)) {? ? ? ? ? ? ? return true; // 特例添加 morning99? ? ? ? ? }? ? ? ? ? // scan fields? ? ? ? ? Field[] fields = clazz.getDeclaredFields();? ? ? ? ? for (Field field : fields) {? ? ? ? ? ? ? // 1. exists XStreamCDATA? ? ? ? ? ? ? if (field.getAnnotation(XStreamCDATA.class) != null) {? ? ? ? ? ? ? ? ? XStreamAlias xStreamAlias = field.getAnnotation(XStreamAlias.class);? ? ? ? ? ? ? ? ? // 2. exists XStreamAlias? ? ? ? ? ? ? ? ? if (null != xStreamAlias) {? ? ? ? ? ? ? ? ? ? ? if (fieldAlias.equals(xStreamAlias.value()))// matched? ? ? ? ? ? ? ? ? ? ? ? ? return true;? ? ? ? ? ? ? ? ? } else {// not exists XStreamAlias? ? ? ? ? ? ? ? ? ? ? if (fieldAlias.equals(field.getName()))? ? ? ? ? ? ? ? ? ? ? ? ? return true;? ? ? ? ? ? ? ? ? }? ? ? ? ? ? ? }? ? ? ? ? }? ? ? ? ? return false;? ? ? }? ? }? ```需要第三方的xml? 轉換的jar? 支持這里我們引入? ```? 《dependency》? 《groupId〉om.thoughtworks.xstream《/groupId>? ? 《artifactId>xstream《/artifactId>? ? 《version>1.4.9《/version> 《/dependency> ```工具類弄好了接下來就是投入使用了。微信那邊采用的是post 請求所以我們在post中處理數(shù)據(jù)``` if (isGet) {? ? ? ? ? ? // 微信加密簽名? ? ? ? ? ? String signature = request.getParameter("signature");? ? ? ? ? ? // 時間戳? ? ? ? ? ? String timestamp = request.getParameter("timestamp");? ? ? ? ? ? // 隨機數(shù)? ? ? ? ? ? String nonce = request.getParameter("nonce");? ? ? ? ? ? // 隨機字符串? ? ? ? ? ? String echostr = request.getParameter("echostr");? ? ? ? ? ? // 通過檢驗signature對請求進行校驗,若校驗成功則原樣返回echostr,表示接入成功,否則接入失敗? ? ? ? ? ? if (signature != null && CheckoutUtil.checkSignature(StringConfig.Wen_Code,signature, timestamp, nonce)) {? ? ? ? ? ? ? ? try {? ? ? ? ? ? ? ? ? ? print = response.getWriter();? ? ? ? ? ? ? ? ? ? print.write(echostr);? ? ? ? ? ? ? ? ? ? print.flush();? ? ? ? ? ? ? ? } catch (IOException e) {? ? ? ? ? ? ? ? ? ? e.printStackTrace();? ? ? ? ? ? ? ? }? ? ? ? ? ? }? ? ? ? }else {? ? ? ? try {? ? ? ? ? ? ? ? ? // 接收消息并返回消息? ? ? ? ? ? ? ? new AcceptMessage().acceptMessage(request, response);? ? ? ? ? ? ? } catch (IOException e) {? ? ? ? ? ? ? ? ? e.printStackTrace();? ? ? ? ? ? ? }? ? ? ? ? }```接下來就是acceptMessage登場的時間了,我們先通過ServletInputStream 獲得流數(shù)據(jù),接下來使用xml工具類轉化成InputMessage 對象取得消息數(shù)據(jù)再根據(jù)消息數(shù)據(jù)處理返回 結果即可,據(jù)圖代碼如下所示:```import java.io.IOException;import java.util.Calendar;import java.util.Date;import javax.servlet.ServletInputStream;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import com.thoughtworks.xstream.XStream;import com.wen.blog.dto.TLResult;import com.wen.blog.util.HandleTalk;import com.wen.blog.util.ResultMsg;public class AcceptMessage {? ? private Logger logger = LoggerFactory.getLogger(this.getClass());public void acceptMessage(HttpServletRequest request, HttpServletResponse response) throws IOException {? ? ? ? ? // 處理接收消息? ? ? ? ? ServletInputStream in = request.getInputStream();? ? ? ? ? // 將POST流轉換為XStream對象? ? ? ? ? XStream xs = SerializeXmlUtil.createXstream();? ? ? ? ? xs.processAnnotations(InputMessage.class);? ? ? ? ? xs.processAnnotations(OutputMessage.class);? ? ? ? ? // 將指定節(jié)點下的xml節(jié)點數(shù)據(jù)映射為對象? ? ? ? ? xs.alias("xml", InputMessage.class);? ? ? ? ? // 將流轉換為字符串? ? ? ? ? StringBuilder xmlMsg = new StringBuilder();? ? ? ? ? byte[] b = new byte[4096];? ? ? ? ? for (int n; (n = in.read(b)) != -1;) {? ? ? ? ? ? ? xmlMsg.append(new String(b, 0, n, "UTF-8"));? ? ? ? ? }? ? ? ? ? // 將xml內(nèi)容轉換為InputMessage對象? ? ? ? ? InputMessage inputMsg = (InputMessage) xs.fromXML(xmlMsg.toString());? ? ? ? ? ? String servername = inputMsg.getToUserName();// 服務端? ? ? ? ? String custermname = inputMsg.getFromUserName();// 客戶端? ? ? ? ? long createTime = inputMsg.getCreateTime();// 接收時間? ? ? ? ? Long returnTime = Calendar.getInstance().getTimeInMillis() / 1000;// 返回時間? ? ? ? ? ? // 取得消息類型? ? ? ? ? String msgType = inputMsg.getMsgType();? ? ? ? ? // 根據(jù)消息類型獲取對應的消息內(nèi)容? ? ? ? ResultMsg msg= new HandleTalk().handleTalk(inputMsg.getContent());? ? ? ? TLResult tl=(TLResult) msg.getData();? ? ? ? logger.info("回答的內(nèi)容"+tl.text);? ? ? ? ? ? ? ? //String xmString = new String(tl.text.toString().getBytes("UTF-8"));? ? ? ? ? String xmString = tl.text;//new String(.toString().getBytes("UTF-8"));? ? ? ? ? ? ? //msgType.equals(MsgType.Text.toString())? ? ? ? if (tl.code==100000) {? ? ? ? ? ? ? // 文本消息? ? ? ? ? ? ? System.out.println("開發(fā)者微信號:" + inputMsg.getToUserName());? ? ? ? ? ? ? System.out.println("發(fā)送方帳號:" + inputMsg.getFromUserName());? ? ? ? ? ? ? System.out.println("消息創(chuàng)建時間:" + inputMsg.getCreateTime() + new Date(createTime * 1000l));? ? ? ? ? ? ? System.out.println("消息內(nèi)容:" + inputMsg.getContent());? ? ? ? ? ? ? System.out.println("消息Id:" + inputMsg.getMsgId());? ? ? ? ? ? ? System.out.println("消息類型:" + msgType);? ? ? ? ? ? ? StringBuffer str = new StringBuffer();? ? ? ? ? ? ? str.append("");? ? ? ? ? ? ? str.append("");? ? ? ? ? ? ? str.append("");? ? ? ? ? ? ? str.append("" + returnTime + "");? ? ? ? ? ? ? str.append("");? ? ? ? ? ? ? str.append("");? ? ? ? ? ? ? str.append("");? ? ? ? ? ? ? System.out.println(str.toString());? ? ? ? ? ? ? response.getWriter().write(str.toString());? ? ? ? ? }? else if(tl.code==200000){? ? ? ? ? OutputMessage outputMsg = new OutputMessage();? ? ? ? ? ? ? outputMsg.setFromUserName(servername);? ? ? ? ? ? ? outputMsg.setToUserName(custermname);? ? ? ? ? ? ? outputMsg.setCreateTime(returnTime);? ? ? ? ? ? ? outputMsg.setMsgType(msgType);? ? ? ? ? ? ? ImageMessage images = new ImageMessage();? ? ? ? ? ? ? images.setMediaId(inputMsg.getMediaId());? ? ? ? ? ? ? outputMsg.setImage(images);? ? ? ? ? ? ? System.out.println("xml轉換:/n" + xs.toXML(outputMsg));? ? ? ? ? ? ? response.getWriter().write(xs.toXML(outputMsg));? ? ? ? ? }? ? ? ? ? ? ? // 獲取并返回多圖片消息? ? ? ? ? /*if (msgType.equals(MsgType.Image.toString())) {? ? ? ? ? ? ? System.out.println("獲取多媒體信息");? ? ? ? ? ? ? System.out.println("多媒體文件id:" + inputMsg.getMediaId());? ? ? ? ? ? ? System.out.println("圖片鏈接:" + inputMsg.getPicUrl());? ? ? ? ? ? ? System.out.println("消息id,64位整型:" + inputMsg.getMsgId());? ? ? ? ? ? ? ? OutputMessage outputMsg = new OutputMessage();? ? ? ? ? ? ? outputMsg.setFromUserName(servername);? ? ? ? ? ? ? outputMsg.setToUserName(custermname);? ? ? ? ? ? ? outputMsg.setCreateTime(returnTime);? ? ? ? ? ? ? outputMsg.setMsgType(msgType);? ? ? ? ? ? ? ImageMessage images = new ImageMessage();? ? ? ? ? ? ? images.setMediaId(inputMsg.getMediaId());? ? ? ? ? ? ? outputMsg.setImage(images);? ? ? ? ? ? ? System.out.println("xml轉換:/n" + xs.toXML(outputMsg));? ? ? ? ? ? ? response.getWriter().write(xs.toXML(outputMsg));? ? ? ? ? ? }? */? ? }? }? ```

到此就能實現(xiàn)了,個人博客地址 www.haha174.top

最后編輯于
?著作權歸作者所有,轉載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖,帶你破解...
    沈念sama閱讀 230,578評論 6 544
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 99,701評論 3 429
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人,你說我怎么就攤上這事?!?“怎么了?”我有些...
    開封第一講書人閱讀 178,691評論 0 383
  • 文/不壞的土叔 我叫張陵,是天一觀的道長。 經(jīng)常有香客問我,道長,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 63,974評論 1 318
  • 正文 為了忘掉前任,我火速辦了婚禮,結果婚禮上,老公的妹妹穿的比我還像新娘。我一直安慰自己,他們只是感情好,可當我...
    茶點故事閱讀 72,694評論 6 413
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著,像睡著了一般。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 56,026評論 1 329
  • 那天,我揣著相機與錄音,去河邊找鬼。 笑死,一個胖子當著我的面吹牛,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播,決...
    沈念sama閱讀 44,015評論 3 450
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了?” 一聲冷哼從身側響起,我...
    開封第一講書人閱讀 43,193評論 0 290
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 49,719評論 1 336
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 41,442評論 3 360
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 43,668評論 1 374
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情,我是刑警寧澤,帶...
    沈念sama閱讀 39,151評論 5 365
  • 正文 年R本政府宣布,位于F島的核電站,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 44,846評論 3 351
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 35,255評論 0 28
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 36,592評論 1 295
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人。 一個月前我還...
    沈念sama閱讀 52,394評論 3 400
  • 正文 我出身青樓,卻偏偏與公主長得像,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當晚...
    茶點故事閱讀 48,635評論 2 380

推薦閱讀更多精彩內(nèi)容

  • 1、開啟公眾號開發(fā)者模式 公眾平臺的技術文檔目的為了簡明扼要的交代接口的使用,語句難免苦澀難懂,甚至對于不同的讀者...
    good7758閱讀 1,541評論 0 1
  • 【程序1】 題目:古典問題:有一對兔子,從出生后第3個月起每個月都生一對兔子,小兔子長到第三個月后每個月又生一對兔...
    葉總韓閱讀 5,152評論 0 41
  • Spring Cloud為開發(fā)人員提供了快速構建分布式系統(tǒng)中一些常見模式的工具(例如配置管理,服務發(fā)現(xiàn),斷路器,智...
    卡卡羅2017閱讀 134,836評論 18 139
  • 我1996年2月29日出生在一個小村子里,童年就是在那里度過的。村子里沒有江南水鄉(xiāng)的寧靜與秀麗,也沒有北方草原的遼...
    唐半仙閱讀 331評論 7 6
  • 夢中的夜晚, 沒有月亮, 也不見星星 ; 山不阻攔, 水不隔絕; 天地渾然一體; 有的只是朦朧的霧靄, 和相對而站...
    zbcao閱讀 211評論 0 4