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

首先定義一個類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;? ? ? } }? ```最后將消息轉(zhuǎn)換給xml格式發(fā)送給用戶所以還需要一個xml轉(zhuǎn)換類代碼如下:```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? 轉(zhuǎn)換的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工具類轉(zhuǎn)化成InputMessage 對象取得消息數(shù)據(jù)再根據(jù)消息數(shù)據(jù)處理返回 結(jié)果即可,據(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流轉(zhuǎn)換為XStream對象? ? ? ? ? XStream xs = SerializeXmlUtil.createXstream();? ? ? ? ? xs.processAnnotations(InputMessage.class);? ? ? ? ? xs.processAnnotations(OutputMessage.class);? ? ? ? ? // 將指定節(jié)點下的xml節(jié)點數(shù)據(jù)映射為對象? ? ? ? ? xs.alias("xml", InputMessage.class);? ? ? ? ? // 將流轉(zhuǎn)換為字符串? ? ? ? ? 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)容轉(zhuǎn)換為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轉(zhuǎn)換:/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轉(zhuǎn)換:/n" + xs.toXML(outputMsg));? ? ? ? ? ? ? response.getWriter().write(xs.toXML(outputMsg));? ? ? ? ? ? }? */? ? }? }? ```

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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市俗扇,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌箕别,老刑警劉巖铜幽,帶你破解...
    沈念sama閱讀 222,252評論 6 516
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異串稀,居然都是意外死亡除抛,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 94,886評論 3 399
  • 文/潘曉璐 我一進店門母截,熙熙樓的掌柜王于貴愁眉苦臉地迎上來到忽,“玉大人,你說我怎么就攤上這事〈” “怎么了护蝶?”我有些...
    開封第一講書人閱讀 168,814評論 0 361
  • 文/不壞的土叔 我叫張陵,是天一觀的道長翩迈。 經(jīng)常有香客問我持灰,道長,這世上最難降的妖魔是什么负饲? 我笑而不...
    開封第一講書人閱讀 59,869評論 1 299
  • 正文 為了忘掉前任堤魁,我火速辦了婚禮,結(jié)果婚禮上返十,老公的妹妹穿的比我還像新娘妥泉。我一直安慰自己,他們只是感情好洞坑,可當我...
    茶點故事閱讀 68,888評論 6 398
  • 文/花漫 我一把揭開白布盲链。 她就那樣靜靜地躺著,像睡著了一般检诗。 火紅的嫁衣襯著肌膚如雪匈仗。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 52,475評論 1 312
  • 那天逢慌,我揣著相機與錄音悠轩,去河邊找鬼。 笑死攻泼,一個胖子當著我的面吹牛火架,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播忙菠,決...
    沈念sama閱讀 41,010評論 3 422
  • 文/蒼蘭香墨 我猛地睜開眼何鸡,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了牛欢?” 一聲冷哼從身側(cè)響起骡男,我...
    開封第一講書人閱讀 39,924評論 0 277
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎傍睹,沒想到半個月后隔盛,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 46,469評論 1 319
  • 正文 獨居荒郊野嶺守林人離奇死亡拾稳,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 38,552評論 3 342
  • 正文 我和宋清朗相戀三年吮炕,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片访得。...
    茶點故事閱讀 40,680評論 1 353
  • 序言:一個原本活蹦亂跳的男人離奇死亡龙亲,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情鳄炉,我是刑警寧澤杜耙,帶...
    沈念sama閱讀 36,362評論 5 351
  • 正文 年R本政府宣布,位于F島的核電站迎膜,受9級特大地震影響泥技,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜磕仅,卻給世界環(huán)境...
    茶點故事閱讀 42,037評論 3 335
  • 文/蒙蒙 一珊豹、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧榕订,春花似錦店茶、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,519評論 0 25
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至两嘴,卻和暖如春丛楚,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背憔辫。 一陣腳步聲響...
    開封第一講書人閱讀 33,621評論 1 274
  • 我被黑心中介騙來泰國打工趣些, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人贰您。 一個月前我還...
    沈念sama閱讀 49,099評論 3 378
  • 正文 我出身青樓坏平,卻偏偏與公主長得像,于是被迫代替她去往敵國和親锦亦。 傳聞我的和親對象是個殘疾皇子舶替,可洞房花燭夜當晚...
    茶點故事閱讀 45,691評論 2 361

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

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