第四天.崩溃日志采集

嘿,今天的你过的还好吗

这项目完事了.总有你不知道为啥就崩溃的情况.那你崩溃了你得知道情况吧.给测试看.给你自己看.你是不是得知道因为啥崩溃了.所以就需要崩溃采集.思路是.你崩溃了采集一下log就ok了
那么思路有了.
需要一个文件读写的权限.如果没有的话就没有存储呗.那就得把这个报错显示出来,权限然后需要服务.当知道崩溃了需要知道你什么时候崩溃了.第三个就是崩溃了把最近的崩溃日志记录下来.如此结束

image.png

用了两个Server来保证能抓到崩溃

package com.example.kotlinbasemodel.logutil;


import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Binder;
import android.os.Build;
import android.os.IBinder;
import android.os.RemoteException;

import androidx.core.app.NotificationCompat;

import com.blankj.utilcode.util.AppUtils;
import com.example.kotlinbasemodel.R;


public class Service1 extends Service {
    private final static int NOTIFY_ID = 101;
    Notification notification;
    NotificationManager manager;

    @Override
    public void onCreate() {
        super.onCreate();
//        LogUtil.leoricLog("Service1 onCreate");
//        saveRuntimeLog("Service1 onCreate");
//        showForegroundNotification(this,LAUNCHER_NAME);

//        startService(new Intent(Service1.this,Service2.class));
//        bindService(new Intent(Service1.this,Service2.class),connection, Context.BIND_ABOVE_CLIENT);
//

    }

    @Override
    public IBinder onBind(Intent intent) {
//        saveRuntimeLog("Service1 onBind");
        return new Binder();
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
//        LogUtil.leoricLog("Service1 onStartCommand");
//        saveRuntimeLog("Service1 onStartCommand");
//        showNotification();
//        startForeground(NOTIFY_ID, notification);

//        MyApplication.startSocketService(this);
//        return super.onStartCommand(intent, flags, startId);
        return Service.START_NOT_STICKY;
    }

    private final ServiceConnection connection = new ServiceConnection() {
        @Override
        public void onServiceDisconnected(ComponentName name) {
//            saveRuntimeLog("Service1与Service2断连");
            startService(new Intent(Service1.this, Service2.class));
            bindService(new Intent(Service1.this, Service2.class), connection, Context.BIND_ABOVE_CLIENT);
        }

        @Override
        public void onServiceConnected(ComponentName name, IBinder service) {
//            saveRuntimeLog("Service1与Service2连接");
            try {
                service.linkToDeath(mDeathRecipient, 0);
            } catch (RemoteException e) {
                e.printStackTrace();
            }
        }
    };

    private IBinder.DeathRecipient mDeathRecipient = new IBinder.DeathRecipient() {

        @Override
        public void binderDied() {
//            saveRuntimeLog("Service1 binderDied");
        }
    };

    @Override
    public void onDestroy() {
        super.onDestroy();
//        LogUtil.leoricLog("Service1 onDestroy");
//        saveRuntimeLog("Service1 onDestroy");
    }

    private void showNotification() {
        manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
        String packageName = AppUtils.getAppPackageName();
        String className = "com.zwl.moduletest.activity.TestBaseActivity";
        ComponentName component = new ComponentName(packageName, className);
        Intent explicitIntent = new Intent();
        explicitIntent.setComponent(component);
//                    startActivity(explicitIntent);
//        Intent hangIntent = new Intent(this, MainActivity.class);

        PendingIntent hangPendingIntent = null;
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            hangPendingIntent = PendingIntent.getActivity(this, 1002, explicitIntent, PendingIntent.FLAG_UPDATE_CURRENT|PendingIntent.FLAG_IMMUTABLE);
        }else {
            hangPendingIntent = PendingIntent.getActivity(this, 1002, explicitIntent, PendingIntent.FLAG_UPDATE_CURRENT);
        }

        String CHANNEL_ID = "your_custom_id";//应用频道Id唯一值, 长度若太长可能会被截断,
        String CHANNEL_NAME = "your_custom_name";//最长40个字符,太长会被截断
        notification = new NotificationCompat.Builder(this, CHANNEL_ID)
                .setContentTitle("appService1通知Title")
                .setContentText("appService1通知Content")
                .setSmallIcon(R.mipmap.ic_launcher)
                .setContentIntent(hangPendingIntent)
                .setAutoCancel(true)
                .build();

        //Android 8.0 以上需包添加渠道
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            NotificationChannel notificationChannel = new NotificationChannel(CHANNEL_ID,
                    CHANNEL_NAME, NotificationManager.IMPORTANCE_HIGH);
            manager.createNotificationChannel(notificationChannel);
        }

        manager.notify(NOTIFY_ID, notification);
    }
}

package com.example.kotlinbasemodel.logutil;

//package com.example.kotlinbasemodel.logutil;

import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Binder;
import android.os.Build;
import android.os.IBinder;
import android.os.RemoteException;

import androidx.core.app.NotificationCompat;

import com.blankj.utilcode.util.AppUtils;
import com.example.kotlinbasemodel.R;
import com.example.kotlinbasemodel.logutil.Service1;

//import me.weishu.leoric.LogUtil;

public class Service2 extends Service{
    private final static int NOTIFY_ID = 100;
    Notification notification;
    NotificationManager manager;

    @Override
    public void onCreate() {
        super.onCreate();
//        LogUtil.leoricLog("appService2 onCreate");
//        saveRuntimeLog("appService2 onCreate");
//        showForegroundNotification(this,LAUNCHER_NAME);

//        startService(new Intent(Service2.this,Service1.class));
//        bindService(new Intent(Service2.this,Service1.class),connection, Context.BIND_ABOVE_CLIENT);

//        MyApplication.startSocketService(this);
    }

    @Override
    public IBinder onBind(Intent intent) {
//        saveRuntimeLog("Service2 onBind");
        //此处不返回不会调用onServiceConnected
        return new Binder();
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
//        LogUtil.leoricLog("Service2 onStartCommand");
//        saveRuntimeLog("Service2 onStartCommand");
//        showNotification();
//        startForeground(NOTIFY_ID,notification);
        return Service.START_NOT_STICKY;
//        return super.onStartCommand(intent, flags, startId);
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
//        LogUtil.leoricLog("Service2 onDestroy");
//        saveRuntimeLog("Service2 onDestroy");
    }

    private final ServiceConnection connection = new ServiceConnection() {
        @Override
        public void onServiceDisconnected(ComponentName name) {
//            saveRuntimeLog("Service2与Service1断连");
            startService(new Intent(Service2.this, Service1.class));
            bindService(new Intent(Service2.this,Service1.class),connection, Context.BIND_ABOVE_CLIENT);
        }
        @Override
        public void onServiceConnected(ComponentName name, IBinder service) {
//            saveRuntimeLog("Service2与Service1连接");
            try {
                service.linkToDeath(mDeathRecipient,0);
            } catch (RemoteException e) {
                e.printStackTrace();
            }
        }
    };

    private IBinder.DeathRecipient mDeathRecipient = new IBinder.DeathRecipient() {

        @Override
        public void binderDied() {
//            saveRuntimeLog("Service2 binderDied");
        }
    };

    private void showNotification() {
        manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);

        String className = "com.zwl.moduletest.activity.TestBaseActivity";
        String packageName = AppUtils.getAppPackageName();
        ComponentName component = new ComponentName(packageName, className);
        Intent explicitIntent =new Intent();
        explicitIntent.setComponent(component);
//        Intent hangIntent = new Intent(this, MainActivity.class);

        PendingIntent hangPendingIntent = null;
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            hangPendingIntent = PendingIntent.getActivity(this, 1001, explicitIntent, PendingIntent.FLAG_UPDATE_CURRENT|PendingIntent.FLAG_IMMUTABLE);
        }else {
            hangPendingIntent = PendingIntent.getActivity(this, 1001, explicitIntent, PendingIntent.FLAG_UPDATE_CURRENT);
        }

        String CHANNEL_ID = "your_custom_id";//应用频道Id唯一值, 长度若太长可能会被截断,
        String CHANNEL_NAME = "your_custom_name";//最长40个字符,太长会被截断
        notification = new NotificationCompat.Builder(this, CHANNEL_ID)
                .setContentTitle("appService2通知Title")
                .setContentText("appService2通知Content")
                .setSmallIcon(R.mipmap.ic_launcher)
                .setContentIntent(hangPendingIntent)
                .setAutoCancel(true)
                .build();

        //Android 8.0 以上需包添加渠道
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            NotificationChannel notificationChannel = new NotificationChannel(CHANNEL_ID,
                    CHANNEL_NAME, NotificationManager.IMPORTANCE_HIGH);
            manager.createNotificationChannel(notificationChannel);
        }

        manager.notify(NOTIFY_ID, notification);
    }
}

然后去抓包.收集错误日志.显示出来


package com.example.kotlinbasemodel.logutil

import android.app.Activity
import android.app.Application
import android.app.Application.ActivityLifecycleCallbacks
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import com.example.kotlinbasemodel.logutil.AppTool.Companion.getAppName
import com.example.kotlinbasemodel.logutil.AppTool.Companion.getDeviceModelName
import com.example.kotlinbasemodel.logutil.AppTool.Companion.getPackageName
import com.example.kotlinbasemodel.logutil.AppTool.Companion.getVersionName
import com.example.kotlinbasemodel.logutil.AppTool.Companion.killCurrentProcess
import java.io.PrintWriter
import java.io.StringWriter
import java.lang.ref.WeakReference
import java.text.DateFormat
import java.text.SimpleDateFormat
import java.util.*
import java.util.zip.ZipFile

class Anomalous {
    companion object {
        private const val INTENT_ACTION_RESTART_ACTIVITY = "RESTART";

        private const val EXTRA_STACK_TRACE =
            "EXTRA_STACK_TRACE"
        private const val EXTRA_ACTIVITY_LOG =
            "EXTRA_ACTIVITY_LOG"
        private const val MAX_STACK_TRACE_SIZE = 131071 //128 KB - 1
        private const val MIN_SHOW_CRASH_INTERVAL = 3000

        private const val MAX_ACTIVITIES_IN_LOG = 50
        private const val INTENT_ACTION_ERROR_ACTIVITY = "com.zwl.anomalous.ERROR"

        //Shared preferences
        private const val SHARED_PREFERENCES_FILE = "TCrashTool"
        private const val SHARED_PREFERENCES_FIELD_TIMESTAMP = "last_crash_timestamp"
        private val activityLog =
            LimitArrayDeque<String>(
                MAX_ACTIVITIES_IN_LOG
            )
        private var lastActivityCreated = WeakReference<Activity?>(null)

        @JvmStatic
        fun install(context: Context) {
            val oldHandler = Thread.getDefaultUncaughtExceptionHandler()
            Thread.setDefaultUncaughtExceptionHandler { t, e ->
                if (oldHandler != null && !oldHandler.javaClass.name.startsWith(javaClass.name)) {
//                if (!hasCrashedInTheLastSeconds(context.applicationContext)) {
//                    setLastCrashTimestamp(
//                        context.applicationContext,
//                        Date().time
//                    )
                    var errorActivityClass = guessErrorActivityClass(context.applicationContext)

                    val intent = Intent(context.applicationContext, errorActivityClass)
                    val sw = StringWriter()
                    val pw = PrintWriter(sw)
                    e.printStackTrace(pw)
                    var stackTraceString = sw.toString()

                    //Reduce data to 128KB so we don't get a TransactionTooLargeException when sending the intent.
                    //The limit is 1MB on Android but some devices seem to have it lower.
                    //See: http://developer.android.com/reference/android/os/TransactionTooLargeException.html
                    //And: http://stackoverflow.com/questions/11451393/what-to-do-on-transactiontoolargeexception#comment46697371_12809171
                    if (stackTraceString.length > MAX_STACK_TRACE_SIZE) {
                        val disclaimer = " [stack trace too large]"
                        stackTraceString = stackTraceString.substring(
                            0,
                            MAX_STACK_TRACE_SIZE - disclaimer.length
                        ) + disclaimer
                    }
                    intent.putExtra(
                        EXTRA_STACK_TRACE,
                        stackTraceString
                    )
                    val activityLogStringBuilder = StringBuilder()
                    while (!activityLog.isEmpty()) {
                        activityLogStringBuilder.append(activityLog.poll())
                    }
                    intent.putExtra(
                        EXTRA_ACTIVITY_LOG,
                        activityLogStringBuilder.toString()
                    )

                    getAllErrorDetailsFromIntent(
                        context.applicationContext,
                        intent
                    )?.let {
                    }

                    intent.flags =
                        Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
                    context.startActivity(intent)

                    val lastActivity: Activity? = lastActivityCreated.get()
                    if (lastActivity != null) {
                        //We finish the activity, this solves a bug which causes infinite recursion.
                        //See: https://github.com/ACRA/acra/issues/42
                        lastActivity.finish()
                        lastActivityCreated.clear()
                    }
                    //com.android.internal.os.RuntimeInit$UncaughtHandler
                    if (!oldHandler.javaClass.name.startsWith("com.android.internal.os.RuntimeInit")) {
                        oldHandler.uncaughtException(t, e)
                    } else {
//                        e.printStackTrace()
                        killCurrentProcess()
                    }
//                } else {
//                    oldHandler.uncaughtException(t, e)
//                }
                } else {
                    oldHandler?.uncaughtException(t, e)
                }
            }
            (context.applicationContext as Application).registerActivityLifecycleCallbacks(
                object : ActivityLifecycleCallbacks {
                    val dateFormat: DateFormat =
                        SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.CHINA)
                    var currentlyStartedActivities = 0
                    override fun onActivityCreated(
                        activity: Activity,
                        savedInstanceState: Bundle?
                    ) {
                        if (activity.javaClass != getErrorActivityClassWithIntentFilter(context.applicationContext)) {
                            // Copied from ACRA:
                            // Ignore activityClass because we want the last
                            // application Activity that was started so that we can
                            // explicitly kill it off.
                            lastActivityCreated = WeakReference(activity)
                        }
                        activityLog.add(
                            """${dateFormat.format(Date())}: ${activity.javaClass.simpleName} created
"""
                        )
                    }

                    override fun onActivityStarted(activity: Activity) {
                        currentlyStartedActivities++
                    }

                    override fun onActivityResumed(activity: Activity) {
                        activityLog.add(
                            """${dateFormat.format(Date())}: ${activity.javaClass.simpleName} resumed
"""
                        )
                    }

                    override fun onActivityPaused(activity: Activity) {
                        activityLog.add(
                            """${dateFormat.format(Date())}: ${activity.javaClass.simpleName} paused
"""
                        )
                    }

                    override fun onActivityStopped(activity: Activity) {
                        //Do nothing
                        currentlyStartedActivities--
                    }

                    override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle) {
                        //Do nothing
                    }

                    override fun onActivityDestroyed(activity: Activity) {
                        activityLog.add(
                            """${dateFormat.format(Date())}: ${activity.javaClass.simpleName} destroyed
"""
                        )
                    }
                })
        }

        private fun hasCrashedInTheLastSeconds(context: Context): Boolean {
            val lastTimestamp: Long = getLastCrashTimestamp(context)
            val currentTimestamp = Date().time
            return lastTimestamp <= currentTimestamp && currentTimestamp - lastTimestamp < MIN_SHOW_CRASH_INTERVAL
        }

        private fun getLastCrashTimestamp(context: Context): Long {
            return context.getSharedPreferences(
                SHARED_PREFERENCES_FILE,
                Context.MODE_PRIVATE
            ).getLong(SHARED_PREFERENCES_FIELD_TIMESTAMP, -1)
        }

        private fun setLastCrashTimestamp(context: Context, timestamp: Long) {
            context.getSharedPreferences(SHARED_PREFERENCES_FILE, Context.MODE_PRIVATE)
                .edit()
                .putLong(SHARED_PREFERENCES_FIELD_TIMESTAMP, timestamp)
                .commit()
        }

        private fun guessErrorActivityClass(context: Context): Class<out Activity?> {
            var resolvedActivityClass: Class<out Activity?>?

            //If action is defined, use that
            resolvedActivityClass = getErrorActivityClassWithIntentFilter(context)

            //Else, get the default error activity
            if (resolvedActivityClass == null) {
                resolvedActivityClass = AnomalousActivity::class.java
            }
            return resolvedActivityClass
        }

        private fun getErrorActivityClassWithIntentFilter(context: Context): Class<out Activity?>? {
            val searchedIntent =
                Intent().setAction(INTENT_ACTION_ERROR_ACTIVITY)
                    .setPackage(context.packageName)
            val resolveInfos = context.packageManager.queryIntentActivities(
                searchedIntent,
                PackageManager.GET_RESOLVED_FILTER
            )
            if (resolveInfos.size > 0) {
                val resolveInfo = resolveInfos[0]
                try {
                    return Class.forName(resolveInfo.activityInfo.name) as Class<out Activity?>
                } catch (e: ClassNotFoundException) {
                    e.printStackTrace()
                }
            }
            return null
        }

        fun guessRestartActivityClass(context: Context): Class<out Activity?>? {
            var resolvedActivityClass: Class<out Activity?>?

            //If action is defined, use that
            resolvedActivityClass = getRestartActivityClassWithIntentFilter(context)

            //Else, get the default launcher activity
            if (resolvedActivityClass == null) {
                resolvedActivityClass = getLauncherActivity(context)
            }
            return resolvedActivityClass
        }

        private fun getRestartActivityClassWithIntentFilter(context: Context): Class<out Activity?>? {
            val searchedIntent =
                Intent().setAction(INTENT_ACTION_RESTART_ACTIVITY)
                    .setPackage(context.packageName)
            val resolveInfos = context.packageManager.queryIntentActivities(
                searchedIntent,
                PackageManager.GET_RESOLVED_FILTER
            )
            if (resolveInfos.size > 0) {
                val resolveInfo = resolveInfos[0]
                try {
                    return Class.forName(resolveInfo.activityInfo.name) as Class<out Activity?>
                } catch (e: ClassNotFoundException) {
                    e.printStackTrace()
                }
            }
            return null
        }

        @JvmStatic
         fun getLauncherActivity(context: Context): Class<out Activity?>? {
            val intent = context.packageManager.getLaunchIntentForPackage(context.packageName)
            if (intent != null && intent.component != null) {
                try {
                    return Class.forName(intent.component!!.className) as Class<out Activity?>
                } catch (e: ClassNotFoundException) {
                    e.printStackTrace()
                }
            }
            return null
        }

        fun getAllErrorDetailsFromIntent(context: Context, intent: Intent): String? {
            //I don't think that this needs localization because it's a development string...
            val currentDate = Date()
            val dateFormat: DateFormat = SimpleDateFormat("yyyy年MM月dd日 HH点mm分ss秒", Locale.CHINA)

            //Get build date
            val buildDateAsString: String? = getBuildDateAsString(context, dateFormat)

            //Get app version
            val versionName: String? = getVersionName(context)
            val appName: String? = getAppName(context)
            val packageName: String? = getPackageName(context)
            var errorDetails = ""
            errorDetails += "Build App Name : $appName \n"
            errorDetails += "Build version : $versionName \n"
            errorDetails += "Build Package Name : $packageName \n"
            if (buildDateAsString != null) {
                errorDetails += "Build date : $buildDateAsString \n"
            }
            errorDetails += """Current date : ${dateFormat.format(currentDate)} 
"""
            //Added a space between line feeds to fix #18.
            //Ideally, we should not use this method at all... It is only formatted this way because of coupling with the default error activity.
            //We should move it to a method that returns a bean, and let anyone format it as they wish.
            errorDetails += """Device : ${getDeviceModelName()} 
"""
            errorDetails += """OS version : Android ${Build.VERSION.RELEASE} (SDK ${Build.VERSION.SDK_INT}) 
 
"""
            errorDetails += "Stack trace :  \n"
            errorDetails += getStackTraceFromIntent(intent)
            val activityLog: String? = getActivityLogFromIntent(intent)
            if (activityLog != null) {
                errorDetails += "\nUser actions : \n"
                errorDetails += activityLog
            }
            return errorDetails
        }

        private fun getBuildDateAsString(context: Context, dateFormat: DateFormat): String? {
            var buildDate: Long
            try {
                val ai = context.packageManager.getApplicationInfo(context.packageName, 0)
                val zf = ZipFile(ai.sourceDir)

                //If this failed, try with the old zip method
                val ze = zf.getEntry("classes.dex")
                buildDate = ze.time
                zf.close()
            } catch (e: Exception) {
                buildDate = 0
            }
            return if (buildDate > 312764400000L) {
                dateFormat.format(Date(buildDate))
            } else {
                null
            }
        }


        fun getStackTraceFromIntent(intent: Intent): String? {
            return intent.getStringExtra(EXTRA_STACK_TRACE)
        }

        fun getActivityLogFromIntent(intent: Intent): String? {
            return intent.getStringExtra(EXTRA_ACTIVITY_LOG)
        }
    }
}

至此架构基本完事.剩下的就是看项目需求了

没更新或者频繁更新的时候都是在认真生活

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 196,442评论 5 462
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 82,604评论 2 373
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 143,576评论 0 325
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 52,652评论 1 267
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 61,495评论 5 358
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 46,370评论 1 274
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 36,792评论 3 387
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 35,435评论 0 255
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 39,735评论 1 294
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 34,777评论 2 314
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 36,553评论 1 326
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 32,399评论 3 315
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 37,806评论 3 300
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,038评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,330评论 1 253
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 41,766评论 2 342
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 40,964评论 2 337

推荐阅读更多精彩内容