Android自定义拍照-身份证

页面activity

public class CameraActivity extends BaseActivity implements View.OnClickListener {

    private SurfaceView surfaceView;
    private IDCardScanBoxView idCardScanBoxView;
    private ImageView selectPhotoBtn;
    private ImageView takePhotoBtn;
    private ImageView flashBtn;

    private boolean isFlashlightOpen;

    private ScaleGestureDetector gestureDetector;

    public static void startActivityForResult(Activity activity, int requestCode) {
        Intent intent = new Intent(activity, CameraActivity.class);
        activity.startActivityForResult(intent, requestCode);
    }

    @Override
    protected int getLayoutResID() {
        return R.layout.activity_camera_layout;
    }

    @Override
    public void init() {
        super.init();

        surfaceView = (SurfaceView) findViewById(R.id.surfaceView);
        idCardScanBoxView = (IDCardScanBoxView) findViewById(R.id.idCardScanBoxView);

        selectPhotoBtn = (ImageView) findViewById(R.id.selectPhotoBtn);
        takePhotoBtn = (ImageView) findViewById(R.id.takePhotoBtn);
        flashBtn = (ImageView) findViewById(R.id.flashBtn);
        if (!SystemUtils.isCameraFlash(this)) {
            flashBtn.setVisibility(View.GONE);
        }
       // surfaceView.setOnClickListener(this);
        selectPhotoBtn.setOnClickListener(this);
        takePhotoBtn.setOnClickListener(this);
        flashBtn.setOnClickListener(this);

        initSurface();
    }

    private void initSurface(){
        SurfaceHolder surfaceHolder = surfaceView.getHolder();
        surfaceHolder.setFormat(PixelFormat.TRANSPARENT);
        surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
        surfaceHolder.addCallback(new SurfaceHolder.Callback() {
            @Override
            public void surfaceCreated(SurfaceHolder holder) {
                CameraHelper.getInstance().openCamera(holder, 0, idCardScanBoxView.getFrameWidth(), idCardScanBoxView.getFrameHeight(), surfaceView.getWidth(), surfaceView.getHeight());
            }

            @Override
            public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {

            }

            @Override
            public void surfaceDestroyed(SurfaceHolder holder) {
                CameraHelper.getInstance().releaseCamera();
            }
        });

        gestureDetector = new ScaleGestureDetector(this, new ScaleGestureDetector.OnScaleGestureListener() {
            float mScaleFactor;
            @Override
            public boolean onScale(ScaleGestureDetector detector) {
                if (detector.getCurrentSpan() > mScaleFactor){
                    CameraHelper.getInstance().zoomOut();
                } else {
                    CameraHelper.getInstance().zoomIn();
                }
                mScaleFactor = detector.getCurrentSpan();
                return false;
            }

            @Override
            public boolean onScaleBegin(ScaleGestureDetector detector) {
                mScaleFactor = detector.getCurrentSpan();
                return true;
            }

            @Override
            public void onScaleEnd(ScaleGestureDetector detector) {
                mScaleFactor = detector.getCurrentSpan();
            }
        });
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.surfaceView:
                CameraHelper.getInstance().autoFocus(null);
                break;
            case R.id.selectPhotoBtn:
                CameraHelper.getInstance().startPreview();
                break;
            case R.id.takePhotoBtn:
                CameraHelper.getInstance().takePhotoWithAutoFocus(new CameraHelper.OnCaptureCallback() {
                    @Override
                    public void onCapture(byte[] data, Bitmap bitmap) {
                        if (bitmap != null) {
                            selectPhotoBtn.setImageBitmap(bitmap);

                            CameraHelper.getInstance().closeFlashLight();
                            isFlashlightOpen = false;
                            flashBtn.setImageResource(R.drawable.icon_flash_off);
                        }
                    }
                });
                break;
            case R.id.flashBtn:
                if (isFlashlightOpen) {
                    CameraHelper.getInstance().closeFlashLight();
                    isFlashlightOpen = false;
                    flashBtn.setImageResource(R.drawable.icon_flash_off);
                } else {
                    CameraHelper.getInstance().openFlashLight();
                    isFlashlightOpen = true;
                    flashBtn.setImageResource(R.drawable.icon_flash_on);
                }
                break;
        }
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        int pointerCount = event.getPointerCount();
        if (gestureDetector != null && pointerCount > 1){
            gestureDetector.onTouchEvent(event);
        } else if (event.getAction() == MotionEvent.ACTION_DOWN){
            CameraHelper.getInstance().autoFocus(null);
        }

        return super.onTouchEvent(event);
    }

自定义身份证拍照的view


import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.View;

import com.intpay.market.R;
import com.intpay.market.utils.L;
import com.intpay.market.utils.Util;

public class IDCardScanBoxView extends View {

    private Context context;

    private int frameWidth;   //透明区域宽度
    private int frameHeight;  //透明区域高度
    private int frameTop;     //透明区域距顶部距离
    private int frameLeft;    //透明区域距左边距离

    private Paint paint;  //画笔
    private Bitmap bitmap;

    public IDCardScanBoxView(Context context, AttributeSet attrs) {
        super(context, attrs);
        this.context = context;
        paint = new Paint(Paint.ANTI_ALIAS_FLAG);

        bitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.bg_idcard_1);
        frameWidth = bitmap.getWidth();//Util.dp2px(context, 301);
        frameHeight = bitmap.getHeight(); //Util.dp2px(context, 192);
    }

    @Override
    protected void onDraw(Canvas canvas) {
        //获取屏幕的宽和高
        int width = canvas.getWidth();
        int height = canvas.getHeight();

        frameLeft = ((width - frameWidth) / 2);
        frameTop = Util.dp2px(context, 150);

        paint.setColor(context.getResources().getColor(R.color.transparent_half));
        //上阴影
        canvas.drawRect(0, 0, width, frameTop, paint);
        //下阴影
        canvas.drawRect(0, frameTop + frameHeight, width, height, paint);
        //左阴影
        canvas.drawRect(0, frameTop, frameLeft, frameTop + frameHeight, paint);
        //右阴影
        canvas.drawRect(frameLeft + frameWidth, frameTop, width, frameTop + frameHeight, paint);
        //中间透明拍照框
        canvas.drawBitmap(bitmap, frameLeft, frameTop, paint);

        L.v("高度宽度========>" + "height:" + height + ",width:" + width + ",frameTop:" + frameTop + ",frameLeft:" + frameLeft + ",frameHeight:" + frameHeight + ",frameWidth:" + frameWidth);
    }


    public int getFrameWidth() {
        return frameWidth;
    }

    public int getFrameHeight() {
        return frameHeight;
    }

相机管理类

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.graphics.PixelFormat;
import android.hardware.Camera;
import android.media.AudioManager;
import android.media.ToneGenerator;
import android.util.Log;
import android.view.SurfaceHolder;

import java.io.IOException;
import java.util.List;

/**
 * Created by danxiang.feng on 2018/11/27.
 */
public class CameraHelper {

    private final String TAG = "CameraManager=====>";

    private Camera camera;
    private ToneGenerator tone;
    private boolean isPreviewing;

    private SurfaceHolder surfaceHolder;
    private int format = PixelFormat.JPEG;  //图片格式
    private int picQuality = 100;  //照片质量

    private int frameWidth;    //扫描区 宽度 即拍照图片宽度
    private int frameHeight;   //扫描区 高度 即拍照图片高度
    private int surfaceWidth;  //显示区 宽度 即相机扫描的宽度
    private int surfaceHeight; //显示区 高度 即相机扫描的高度

    public static CameraHelper getInstance() {
        return Singleton.SINGLETON.getInstance();
    }

    public interface OnCaptureCallback {
        void onCapture(byte[] data, Bitmap bitmap);
    }

    private int cameraPosition = 1; //当前选用的摄像头,1后置 0前置

    public void switchCamera() {
        int cameraCount = Camera.getNumberOfCameras();//得到摄像头的个数
        Camera.CameraInfo cameraInfo = new Camera.CameraInfo();
        for (int i = 0; i < cameraCount; i++) {
            Camera.getCameraInfo(i, cameraInfo);//得到每一个摄像头的信息
            if (cameraPosition == 1) {
                //现在是后置,变更为前置
                if (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) {//代表摄像头的方位,CAMERA_FACING_FRONT前置      CAMERA_FACING_BACK后置
                    //重新打开
                    resOpenCamera(i);
                    cameraPosition = 0;
                    break;
                }
            } else {
                //现在是前置, 变更为后置
                if (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_BACK) {//代表摄像头的方位,CAMERA_FACING_FRONT前置      CAMERA_FACING_BACK后置
                    resOpenCamera(i);
                    cameraPosition = 1;
                    break;
                }
            }
        }
    }

    /**
     * 启动相机
     */
    public void openCamera(SurfaceHolder holder, int format, int frameWidth, int frameHeight, int surfaceWidth, int surfaceHeight) {

        this.surfaceHolder = holder;
        this.format = format != 0 ? format : PixelFormat.JPEG;
        this.frameWidth = frameWidth;
        this.frameHeight = frameHeight;
        this.surfaceWidth = surfaceWidth;
        this.surfaceHeight = surfaceHeight;

        try {
            releaseCamera();

            camera = Camera.open();
            camera.setPreviewDisplay(holder);
            initParameters();
            startPreview();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public void resOpenCamera(int i) {
        try {
            releaseCamera();

            camera = Camera.open(i);
            camera.setPreviewDisplay(this.surfaceHolder);
            initParameters();
            startPreview();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    /**
     * 开始预览
     */
    public void startPreview() {
        if (camera != null && !isPreviewing) {
            camera.startPreview();
            camera.autoFocus(null);
            isPreviewing = true;
        }
    }

    /**
     * 停止预览
     */
    public void stopPreview() {
        if (camera != null && isPreviewing) {
            camera.stopPreview();
            isPreviewing = false;
        }
    }

    /**
     * 释放相机
     */
    public void releaseCamera() {
        if (camera != null) {
            if (isPreviewing) {
                stopPreview();
            }
            camera.setPreviewCallback(null);
            camera.release();
            camera = null;
            isPreviewing = false;
        }
    }

    /**
     * 聚焦
     */
    public void autoFocus(Camera.AutoFocusCallback autoFocusCallback) {
        if (camera != null && isPreviewing) {
            camera.autoFocus(autoFocusCallback);
        }
    }

    /**
     * 拍照
     */
    public void takePicture(final OnCaptureCallback callback) {
        if (camera != null && isPreviewing) {
            Camera.ShutterCallback shutterCallback = new Camera.ShutterCallback() {
                @Override
                public void onShutter() {
                    if (tone == null) {
                        tone = new ToneGenerator(AudioManager.STREAM_MUSIC, ToneGenerator.MAX_VOLUME);
                    }
                    tone.startTone(ToneGenerator.TONE_PROP_BEEP);
                }
            };
            Camera.PictureCallback pictureCallback = new Camera.PictureCallback() {
                @Override
                public void onPictureTaken(byte[] data, Camera camera) {
                    stopPreview();
                    Bitmap bitmap = dealwithResult(data);
                    if (callback != null) {
                        callback.onCapture(data, bitmap);
                    }
                }
            };

            camera.takePicture(shutterCallback, null, pictureCallback);
        }
    }

    /**
     * 聚焦并拍照
     */
    public void takePhotoWithAutoFocus(final OnCaptureCallback callback) {
        autoFocus(new Camera.AutoFocusCallback() {
            @Override
            public void onAutoFocus(boolean success, Camera camera) {
                takePicture(callback);
            }
        });
    }

    /**
     * 打开闪光灯
     */
    public void openFlashLight() {
        if (camera != null) {
            Camera.Parameters parameters = camera.getParameters();
            parameters.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH);
            camera.setParameters(parameters);
        }
    }

    /**
     * 关闭闪光灯
     */
    public void closeFlashLight() {
        if (camera != null) {
            Camera.Parameters parameters = camera.getParameters();
            parameters.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);
            camera.setParameters(parameters);
        }
    }

    /**
     * 相机放大
     */
    public void zoomOut() {
        if (camera != null) {
            Camera.Parameters parameters = camera.getParameters();
            if (!parameters.isZoomSupported()) return;

            int zoom = parameters.getZoom() + 1;
            if (zoom < parameters.getMaxZoom()) {
                parameters.setZoom(zoom);
                camera.setParameters(parameters);
            }
        }
    }

    /**
     * 相机缩小
     */
    public void zoomIn() {
        if (camera != null) {
            Camera.Parameters parameters = camera.getParameters();
            if (!parameters.isZoomSupported()) return;

            int zoom = parameters.getZoom() - 1;
            if (zoom >= 0) {
                parameters.setZoom(zoom);
                camera.setParameters(parameters);
            }
        }
    }

    /**
     * 初始化相机参数
     */
    private void initParameters() {
        try {
//            int orientation = LoanApplication.getInstance().getResources().getConfiguration().orientation;
//            if(orientation == Configuration.ORIENTATION_PORTRAIT){
//                camera.setDisplayOrientation(90);//竖屏
//            } else if (orientation == Configuration.ORIENTATION_LANDSCAPE){
//                camera.setDisplayOrientation(180);   //横屏
//            }
            camera.setDisplayOrientation(90);//竖屏
            Camera.Parameters parameters = camera.getParameters();
            //设置照片格式
            parameters.setPictureFormat(this.format);
            //照片质量
            parameters.set("jpeg-quality", this.picQuality);

            //自动对焦
            List<String> supportedFocusModes = parameters.getSupportedFocusModes();
            if (supportedFocusModes.contains(Camera.Parameters.FOCUS_MODE_AUTO)) {
                parameters.setFocusMode(Camera.Parameters.FOCUS_MODE_AUTO);
            }

//            if (frameWidth > 0 && frameHeight > 0) {
//                //获取支持系统的预览尺寸
//                List<Camera.Size> supportedPreviewSizes = parameters.getSupportedPreviewSizes();
//                //获取最佳预览尺寸
//                Camera.Size previewSize = getOptimalPreviewSize(supportedPreviewSizes, frameWidth, frameHeight);
//                try {
//                    parameters.setPreviewSize(previewSize.width, previewSize.height);
//                } catch (Exception e) {
//                    Log.e(TAG, "不支持的相机预览分辨率: " + previewSize.width + " × " + previewSize.height);
//                }
//            }

            if (surfaceWidth > 0 && surfaceHeight > 0) {
                //获取支持的照片尺寸
                List<Camera.Size> supportedPictureSizes = parameters.getSupportedPictureSizes();
                //获取照片最佳尺寸
                Camera.Size pictureSize = getPicutreSize(supportedPictureSizes, surfaceWidth, surfaceHeight);
                try {
                    parameters.setPictureSize(pictureSize.width, pictureSize.height);
                } catch (Exception e) {
                    Log.e(TAG, "不支持的照片尺寸: " + pictureSize.width + " × " + pictureSize.height);
                }
            }

            camera.setParameters(parameters);

        } catch (Exception e) {
            Log.e(TAG, "相机参数设置错误");
        }
    }

    /**
     * 获取最佳预览尺寸
     */
    private Camera.Size getOptimalPreviewSize(List<Camera.Size> sizes, int width, int height) {
        final double ASPECT_TOLERANCE = 0.05;
        double targetRatio = (double) width / height;
        if (sizes == null)
            return null;

        Camera.Size optimalSize = null;
        double minDiff = Double.MAX_VALUE;

        int targetHeight = height;

        // Try to find an size match aspect ratio and size
        for (Camera.Size size : sizes) {
            double r = size.width * 1.0 / size.height * 1.0;
            if (r != 4 / 3 || r != 3 / 4 || r != 16 / 9 || r != 9 / 16) {
                continue;
            }

            double ratio = (double) size.width / size.height;
            if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE)
                continue;
            if (Math.abs(size.height - targetHeight) < minDiff) {
                optimalSize = size;
                minDiff = Math.abs(size.height - targetHeight);
            }
        }

        // Cannot find the one match the aspect ratio, ignore the requirement
        if (optimalSize == null) {
            minDiff = Double.MAX_VALUE;
            for (Camera.Size size : sizes) {
                if (Math.abs(size.height - targetHeight) < minDiff) {
                    optimalSize = size;
                    minDiff = Math.abs(size.height - targetHeight);
                }
            }
        }
        return optimalSize;
    }

    /**
     * 设置照片尺寸为最接近屏幕尺寸
     *
     * @param list
     * @return
     */
    private Camera.Size getPicutreSize(List<Camera.Size> list, int screenWidth, int screenHeight) {
        Camera.Size pictureSize = null;

        int approach = Integer.MAX_VALUE;
        for (Camera.Size size : list) {
            int temp = Math.abs(size.width - screenWidth + size.height - screenHeight);
            System.out.println("approach: " + approach + ", temp: " + temp + ", size.width: " + size.width + ", size.height: " + size.height);
            if (approach > temp) {
                approach = temp;
                pictureSize = size;
            }
        }
        return pictureSize;

//      //降序
//      if(list.get(0).width>list.get(list.size()-1).width){
//          int len = list.size();
//          list = list.subList(0, len/2==0? len/2 : (len+1)/2);
//          this.pictureSize = list.get(list.size()-1);
//      }else{
//          int len = list.size();
//          list = list.subList(len/2==0? len/2 : (len-1)/2, len-1);
//          this.pictureSize = list.get(0);
//      }
    }

    private Bitmap dealwithResult(byte[] data) {
        if (data == null || data.length == 0) return null;
        Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length);
        if (bitmap == null || bitmap.getWidth() <= 0 || bitmap.getHeight() <= 0) {
            return null;
        }
        //竖屏旋转照片
        Matrix matrix = new Matrix();
        matrix.reset();
        matrix.setRotate(90);
        bitmap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, true);

        if (frameWidth == 0 || frameHeight == 0) {
            return bitmap;
        }
        int x = (bitmap.getWidth() - frameWidth) / 2;
        int y = (bitmap.getHeight() - frameHeight) / 2;
        return Bitmap.createBitmap(bitmap, x, y, frameWidth, frameHeight);
    }

    private enum Singleton {
        SINGLETON;

        private CameraHelper manager;

        Singleton() {
            manager = new CameraHelper();
        }

        public CameraHelper getInstance() {
            return manager;
        }
    }
}

布局

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <SurfaceView
        android:id="@+id/surfaceView"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

    <com.intpay.market.views.IDCardScanBoxView
        android:id="@+id/idCardScanBoxView"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="176dp"
        android:layout_alignParentBottom="true"
        android:background="@color/transparent">

        <ImageView
            android:id="@+id/selectPhotoBtn"
            android:layout_width="45dp"
            android:layout_height="45dp"
            android:layout_marginLeft="50dp"
            android:layout_centerVertical="true"
            android:background="@drawable/bg_white_frame"
            android:src="@drawable/logo_qq"
            android:scaleType="centerCrop" />

        <ImageView
            android:id="@+id/takePhotoBtn"
            android:layout_width="75dp"
            android:layout_height="85dp"
            android:layout_centerInParent="true"
            android:src="@drawable/icon_paishe" />

        <ImageView
            android:id="@+id/flashBtn"
            android:layout_width="45dp"
            android:layout_height="45dp"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:layout_marginRight="50dp"
            android:src="@drawable/icon_flash_off"
            android:scaleType="centerCrop" />
    </RelativeLayout>

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