狀態(tài)機(jī)+Gateway 升級(jí)支付代理服務(wù)(三)

接上一篇內(nèi)容, 來實(shí)現(xiàn)一個(gè)簡(jiǎn)單的Payment Proxy + 有限狀態(tài)機(jī)的DEMO。建議先查看上一篇內(nèi)容再來看這篇文章坏逢。

狀態(tài)機(jī)設(shè)計(jì)

State定義

public enum PaymentOrderStates {

    CREATED(0,"訂單已創(chuàng)建"),

    WAIT_PAYMENT(1,"訂單待支付"),

    PAYMENT_SUCCESS(2,"支付成功"),

    PAYMENT_CANCELED(3,"支付取消"),

    PAYMENT_FAILED(4,"支付失敗"),

    WAIT_REFUND(5,"等待退款"),

    REFUND_SUCCESS(6,"退款成功"),

    REFUND_FAILED(7,"退款失敗"),

    FINISHED(8,"訂單完成"),

    EXCEPTION(9,"訂單異常"),

    CLOSED(10,"訂單關(guān)閉");


    private int code;

    private String value;

    PaymentOrderStates(int code, String value) {
        this.code = code;
        this.value = value;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}

Event定義

State 由事件觸發(fā),引起變化赘被。

public enum PaymentOrderEvents {
    //創(chuàng)建訂單
    CREATE_ORDER,
    //創(chuàng)建交易
    CREATE_TRANSACTION,
    //正在支付
    PAYING,
    //正在退款
    REFUNDING,
    //失敗
    FAIL,
    //確認(rèn)
    CONFIRM,
    //取消
    CANCEL
}

大家一定要記住,這個(gè)是事件的定義是整。

狀態(tài)機(jī)定義

代碼中我已經(jīng)詳細(xì)的標(biāo)注了不同事件對(duì)應(yīng)的不同狀態(tài)的變化。

@Configuration
public class StateMachineConfiguration {

    @Bean
    public StateMachine<PaymentOrderStates, PaymentOrderEvents, OrderContext> paymentOrderStateMachine(PaymentOrderStateMachineService orderService) {
        StateMachineBuilder<PaymentOrderStates, PaymentOrderEvents, OrderContext> builder = StateMachineBuilderFactory.create();

        //訂單創(chuàng)建
        builder.internalTransition()
                .within(PaymentOrderStates.CREATED)
                .on(PaymentOrderEvents.CREATE_ORDER)
                .perform(((from, to, event, ctx) -> orderService.doActionCreate(from,to,event,ctx)));
        //訂單創(chuàng)建 =》 待支付
        builder.externalTransition()
                .from(PaymentOrderStates.CREATED)
                .to(PaymentOrderStates.WAIT_PAYMENT)
                .on(PaymentOrderEvents.CREATE_TRANSACTION)
                .perform(((from, to, event, ctx) -> orderService.doActionUpdate(from,to,event,ctx)));
        //待支付 =》 支付成功
        builder.externalTransition()
                .from(PaymentOrderStates.WAIT_PAYMENT)
                .to(PaymentOrderStates.PAYMENT_SUCCESS)
                .on(PaymentOrderEvents.PAYING)
                .perform(((from, to, event, ctx) -> orderService.doActionUpdate(from,to,event,ctx)));
        //待支付 =》 支付失敗
        builder.externalTransition()
                .from(PaymentOrderStates.WAIT_PAYMENT)
                .to(PaymentOrderStates.PAYMENT_FAILED)
                .on(PaymentOrderEvents.FAIL)
                .perform(((from, to, event, ctx) -> orderService.doActionUpdate(from,to,event,ctx)));
        //待支付 =》 取消支付
        builder.externalTransition()
                .from(PaymentOrderStates.WAIT_PAYMENT)
                .to(PaymentOrderStates.PAYMENT_CANCELED)
                .on(PaymentOrderEvents.CANCEL)
                .perform(((from, to, event, ctx) -> orderService.doActionUpdate(from,to,event,ctx)));
        //支付成功 =》 訂單完成
        builder.externalTransition()
                .from(PaymentOrderStates.PAYMENT_SUCCESS)
                .to(PaymentOrderStates.FINISHED)
                .on(PaymentOrderEvents.CONFIRM)
                .perform(((from, to, event, ctx) -> orderService.doActionUpdate(from,to,event,ctx)));
        //訂單取消 =》 訂單關(guān)閉
        builder.externalTransition()
                .from(PaymentOrderStates.PAYMENT_CANCELED)
                .to(PaymentOrderStates.CLOSED)
                .on(PaymentOrderEvents.CONFIRM)
                .perform(((from, to, event, ctx) -> orderService.doActionUpdate(from,to,event,ctx)));
        //支付失敗 =》 訂單異常
        builder.externalTransition()
                .from(PaymentOrderStates.PAYMENT_FAILED)
                .to(PaymentOrderStates.EXCEPTION)
                .on(PaymentOrderEvents.CONFIRM)
                .perform(((from, to, event, ctx) -> orderService.doActionUpdate(from,to,event,ctx)));

        StateMachine<PaymentOrderStates, PaymentOrderEvents, OrderContext> paymentOrderStateMachine = builder.build("paymentOrderStateMachine");

        return paymentOrderStateMachine;
    }
}

狀態(tài)機(jī)上下文

這里為了省事民假,我直接繼承了訂單表的映射類浮入。

狀態(tài)上下文

public class OrderContext extends PaymentProxyOrder {
}

數(shù)據(jù)庫(kù)訂單表映射類

@TableName(value ="payment_proxy_order")
@Data
public class PaymentProxyOrder implements Serializable {
    /**
     * 自增主鍵ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 訂單號(hào)
     */
    private String payOrderNo;

    /**
     * 支付狀態(tài) 與狀態(tài)機(jī)匹配
     */
    private Integer payStatus;

    /**
     * 金額
     */
    private String amount;

    /**
     * 幣種
     */
    private Integer currency;

    /**
     * 交易類型
     */
    private Integer transType;

    /**
     * 支付方法
     */
    private Integer payMethod;

    /**
     * 支付來源 APP 或者H5
     */
    private Integer paySource;

    /**
     * 交易業(yè)務(wù)號(hào)
     */
    private String transactionNo;

    /**
     * 業(yè)務(wù)號(hào) 用于業(yè)務(wù)之間的綁定
     */
    private String businessNo;

    /**
     * 第三方返回的number, 比如MPGS會(huì)返回一個(gè)字符串作為支付狀態(tài)校驗(yàn)
     */
    private String thirdPartyNo;

    /**
     * 傳給第三方的字符串 用業(yè)務(wù)mapping
     */
    private String thirdPartyCustomerNo;

    /**
     * 支付成功實(shí)踐
     */
    private Date payDate;

    /**
     * 業(yè)務(wù)刪除 Is delete Y:yes  N:no
     */
    private String isDeleted;

    /**
     * Creator
     */
    private String creator;

    /**
     * created time
     */
    private Date gmtCreated;

    /**
     * Modifier
     */
    private String modifier;

    /**
     * modified time
     */
    private Date gmtModified;

    /**
     * 備注
     */
    private String remark;

    /**
     * 擴(kuò)展字段
     */
    private String extraInfo;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PaymentProxyOrder other = (PaymentProxyOrder) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPayOrderNo() == null ? other.getPayOrderNo() == null : this.getPayOrderNo().equals(other.getPayOrderNo()))
            && (this.getPayStatus() == null ? other.getPayStatus() == null : this.getPayStatus().equals(other.getPayStatus()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getCurrency() == null ? other.getCurrency() == null : this.getCurrency().equals(other.getCurrency()))
            && (this.getTransType() == null ? other.getTransType() == null : this.getTransType().equals(other.getTransType()))
            && (this.getPayMethod() == null ? other.getPayMethod() == null : this.getPayMethod().equals(other.getPayMethod()))
            && (this.getPaySource() == null ? other.getPaySource() == null : this.getPaySource().equals(other.getPaySource()))
            && (this.getTransactionNo() == null ? other.getTransactionNo() == null : this.getTransactionNo().equals(other.getTransactionNo()))
            && (this.getBusinessNo() == null ? other.getBusinessNo() == null : this.getBusinessNo().equals(other.getBusinessNo()))
            && (this.getThirdPartyNo() == null ? other.getThirdPartyNo() == null : this.getThirdPartyNo().equals(other.getThirdPartyNo()))
            && (this.getThirdPartyCustomerNo() == null ? other.getThirdPartyCustomerNo() == null : this.getThirdPartyCustomerNo().equals(other.getThirdPartyCustomerNo()))
            && (this.getPayDate() == null ? other.getPayDate() == null : this.getPayDate().equals(other.getPayDate()))
            && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()))
            && (this.getCreator() == null ? other.getCreator() == null : this.getCreator().equals(other.getCreator()))
            && (this.getGmtCreated() == null ? other.getGmtCreated() == null : this.getGmtCreated().equals(other.getGmtCreated()))
            && (this.getModifier() == null ? other.getModifier() == null : this.getModifier().equals(other.getModifier()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getExtraInfo() == null ? other.getExtraInfo() == null : this.getExtraInfo().equals(other.getExtraInfo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPayOrderNo() == null) ? 0 : getPayOrderNo().hashCode());
        result = prime * result + ((getPayStatus() == null) ? 0 : getPayStatus().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getCurrency() == null) ? 0 : getCurrency().hashCode());
        result = prime * result + ((getTransType() == null) ? 0 : getTransType().hashCode());
        result = prime * result + ((getPayMethod() == null) ? 0 : getPayMethod().hashCode());
        result = prime * result + ((getPaySource() == null) ? 0 : getPaySource().hashCode());
        result = prime * result + ((getTransactionNo() == null) ? 0 : getTransactionNo().hashCode());
        result = prime * result + ((getBusinessNo() == null) ? 0 : getBusinessNo().hashCode());
        result = prime * result + ((getThirdPartyNo() == null) ? 0 : getThirdPartyNo().hashCode());
        result = prime * result + ((getThirdPartyCustomerNo() == null) ? 0 : getThirdPartyCustomerNo().hashCode());
        result = prime * result + ((getPayDate() == null) ? 0 : getPayDate().hashCode());
        result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
        result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
        result = prime * result + ((getGmtCreated() == null) ? 0 : getGmtCreated().hashCode());
        result = prime * result + ((getModifier() == null) ? 0 : getModifier().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getExtraInfo() == null) ? 0 : getExtraInfo().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", payOrderNo=").append(payOrderNo);
        sb.append(", payStatus=").append(payStatus);
        sb.append(", amount=").append(amount);
        sb.append(", currency=").append(currency);
        sb.append(", transType=").append(transType);
        sb.append(", payMethod=").append(payMethod);
        sb.append(", paySource=").append(paySource);
        sb.append(", transactionNo=").append(transactionNo);
        sb.append(", businessNo=").append(businessNo);
        sb.append(", thirdPartyNo=").append(thirdPartyNo);
        sb.append(", thirdPartyCustomerNo=").append(thirdPartyCustomerNo);
        sb.append(", payDate=").append(payDate);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", creator=").append(creator);
        sb.append(", gmtCreated=").append(gmtCreated);
        sb.append(", modifier=").append(modifier);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", remark=").append(remark);
        sb.append(", extraInfo=").append(extraInfo);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}

狀態(tài)持久化層

@Service
public class PaymentOrderStateMachineService {
    //訂單表持久化層
    private final PaymentProxyOrderService proxyOrderService;
    //訂單本地緩存
    private final Cache<String, PaymentOrderStates> orderStateCache = CacheBuilder.newBuilder().expireAfterWrite(15, TimeUnit.MINUTES).build();

    public PaymentOrderStateMachineService(PaymentProxyOrderService proxyOrderService) {
        this.proxyOrderService = proxyOrderService;
    }
    //創(chuàng)建訂單
    public void doActionCreate(PaymentOrderStates from, PaymentOrderStates to, PaymentOrderEvents event, OrderContext ctx) {
            //當(dāng)訂單創(chuàng)建成功 將下一個(gè)狀態(tài)放入緩存
            if(proxyOrderService.save(ctx)) {
                orderStateCache.put(ctx.getPayOrderNo(),to);
            }
    }

    public void doActionUpdate(PaymentOrderStates from, PaymentOrderStates to, PaymentOrderEvents event, OrderContext ctx) {
        //如果 當(dāng)前訂單狀態(tài)與 狀態(tài)機(jī)from 狀態(tài)一致, 則更新初始化表. 證明訂單狀態(tài)改變并且持久化到數(shù)據(jù)庫(kù)中
        if(null != orderStateCache.getIfPresent(ctx.getPayOrderNo())
                && from == orderStateCache.getIfPresent(ctx.getPayOrderNo())) {
            proxyOrderService.updateById(ctx);
        }

    }
}

這里我先暫時(shí)不貼對(duì)應(yīng)的Mybatis Plus 對(duì)應(yīng)的代碼, 簡(jiǎn)單的將判斷邏輯寫在了注釋里羊异。 這里重要關(guān)注一下事秀, 由于我們可能會(huì)多次請(qǐng)求第三方接口查詢訂單狀態(tài)進(jìn)而改變我們自己維護(hù)的訂單狀態(tài),為了避免頻繁更新數(shù)據(jù)庫(kù)野舶, 我這里做了緩存處理易迹,暫時(shí)跳過訂單狀態(tài)重復(fù)更新的情況。

第三方支付狀態(tài)與狀態(tài)機(jī)匹配

由于我們需要根據(jù)第三方的支付狀態(tài)來改變我們自己的訂單狀態(tài)平道。因此需要一種思路去匹配睹欲。 這里我只暫時(shí)給出自己在項(xiàng)目中的實(shí)現(xiàn)思路。

假設(shè)請(qǐng)求第三方查詢支付狀態(tài)接口中 有個(gè)字段為Status 并且他們對(duì)應(yīng)的值解釋為:

Status 對(duì)應(yīng)狀態(tài)
1 正在支付
2 正在支付
3 支付成功
4 支付失敗
5 支付取消

那么我們可以根據(jù)第三方查詢接口來定義一個(gè)枚舉類一屋。 其中包括了第三方接口返回來的status值窘疮, 本地服務(wù)訂單的狀態(tài)和事件類別。這樣可以更快的返回來實(shí)現(xiàn)第三方與本地的訂單的狀態(tài)匹配陆淀。

public enum ThirdPartyPayStatusCodeEnum {

    CREATE(1,
            "Pending,transaction created",
            PaymentOrderStates.CREATED,
            PaymentOrderStates.WAIT_PAYMENT,
            PaymentOrderEvents.CREATE_TRANSACTION),

    PENDING_PAYMENT(2,
            "Pending,Waiting for user action",
            PaymentOrderStates.CREATED,
            PaymentOrderStates.WAIT_PAYMENT,
            PaymentOrderEvents.CREATE_TRANSACTION),

    SUCCESS(3,
            "Success, payment success",
            PaymentOrderStates.WAIT_PAYMENT,
            PaymentOrderStates.PAYMENT_SUCCESS,
            PaymentOrderEvents.PAYING),
    FAIL(4, "Fail, general payment fail",
            PaymentOrderStates.WAIT_PAYMENT,
            PaymentOrderStates.PAYMENT_FAILED,
            PaymentOrderEvents.FAIL),
    CANCEL(5, "Cancel, cancel before pay or the end gateway support cancel paid transaction directly",
            PaymentOrderStates.WAIT_PAYMENT,
            PaymentOrderStates.PAYMENT_CANCELED,
            PaymentOrderEvents.CANCEL);
    //第三方Status 值
    private int code;
    //對(duì)應(yīng)含義
    private String meaning;
    //對(duì)應(yīng)狀態(tài)機(jī)的From 狀態(tài)
    private PaymentOrderStates fromOrderStates;
    //對(duì)應(yīng)狀態(tài)機(jī)要改變的狀態(tài)
    private PaymentOrderStates toOrderStates;
    //該狀態(tài)機(jī)需要改變的事件
    private PaymentOrderEvents orderEvents;


    ThirdPartyPayStatusCodeEnum(int code,
                                String meaning,
                                PaymentOrderStates fromOrderStates,
                                PaymentOrderStates toOrderStates,
                                PaymentOrderEvents orderEvents) {
        this.code = code;
        this.meaning = meaning;
        this.fromOrderStates = fromOrderStates;
        this.toOrderStates = toOrderStates;
        this.orderEvents = orderEvents;
    }

    public int getCode() {
        return code;
    }

    public String getMeaning() {
        return meaning;
    }

    public PaymentOrderStates getFromOrderStates() {
        return fromOrderStates;
    }

    public PaymentOrderStates getToOrderStates() {
        return toOrderStates;
    }

    public PaymentOrderEvents getOrderEvents() {
        return orderEvents;
    }

    /**
     * @author Neal
     * @description 根據(jù)第三方 status code返回枚舉
     * @date 2023/11/15
     * @param code:  
     * @return ThirdPartyPayStatusCodeEnum        
     */
    public static ThirdPartyPayStatusCodeEnum getOrderStatus(int code) {
        for (ThirdPartyPayStatusCodeEnum value : ThirdPartyPayStatusCodeEnum.values()) {
            if(value.code == code) {
                return value;
            }
        }
        return null;
    }
}

小結(jié)

今天簡(jiǎn)單闡述了訂單狀態(tài)機(jī)的demo 代碼考余。 由于代碼比較多, 可能比較亂轧苫,但是只要縷清思路楚堤,很好理解∫呗現(xiàn)在我們自己的訂單狀態(tài)機(jī)已經(jīng)初步成型,下一步就是基于Spring Cloud Gateway來實(shí)現(xiàn)第三方的支付對(duì)接和擴(kuò)展身冬。

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末衅胀,一起剝皮案震驚了整個(gè)濱河市,隨后出現(xiàn)的幾起案子酥筝,更是在濱河造成了極大的恐慌滚躯,老刑警劉巖,帶你破解...
    沈念sama閱讀 206,013評(píng)論 6 481
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件嘿歌,死亡現(xiàn)場(chǎng)離奇詭異掸掏,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī)宙帝,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 88,205評(píng)論 2 382
  • 文/潘曉璐 我一進(jìn)店門丧凤,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人步脓,你說我怎么就攤上這事愿待。” “怎么了靴患?”我有些...
    開封第一講書人閱讀 152,370評(píng)論 0 342
  • 文/不壞的土叔 我叫張陵仍侥,是天一觀的道長(zhǎng)。 經(jīng)常有香客問我鸳君,道長(zhǎng)农渊,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 55,168評(píng)論 1 278
  • 正文 為了忘掉前任相嵌,我火速辦了婚禮腿时,結(jié)果婚禮上况脆,老公的妹妹穿的比我還像新娘饭宾。我一直安慰自己,他們只是感情好格了,可當(dāng)我...
    茶點(diǎn)故事閱讀 64,153評(píng)論 5 371
  • 文/花漫 我一把揭開白布看铆。 她就那樣靜靜地躺著,像睡著了一般盛末。 火紅的嫁衣襯著肌膚如雪弹惦。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 48,954評(píng)論 1 283
  • 那天悄但,我揣著相機(jī)與錄音棠隐,去河邊找鬼。 笑死檐嚣,一個(gè)胖子當(dāng)著我的面吹牛助泽,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播,決...
    沈念sama閱讀 38,271評(píng)論 3 399
  • 文/蒼蘭香墨 我猛地睜開眼嗡贺,長(zhǎng)吁一口氣:“原來是場(chǎng)噩夢(mèng)啊……” “哼隐解!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起诫睬,我...
    開封第一講書人閱讀 36,916評(píng)論 0 259
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤煞茫,失蹤者是張志新(化名)和其女友劉穎,沒想到半個(gè)月后摄凡,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體续徽,經(jīng)...
    沈念sama閱讀 43,382評(píng)論 1 300
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 35,877評(píng)論 2 323
  • 正文 我和宋清朗相戀三年亲澡,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了炸宵。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 37,989評(píng)論 1 333
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡谷扣,死狀恐怖土全,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情会涎,我是刑警寧澤裹匙,帶...
    沈念sama閱讀 33,624評(píng)論 4 322
  • 正文 年R本政府宣布,位于F島的核電站末秃,受9級(jí)特大地震影響概页,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜练慕,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 39,209評(píng)論 3 307
  • 文/蒙蒙 一惰匙、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧铃将,春花似錦项鬼、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,199評(píng)論 0 19
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)。三九已至悯仙,卻和暖如春龄毡,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背锡垄。 一陣腳步聲響...
    開封第一講書人閱讀 31,418評(píng)論 1 260
  • 我被黑心中介騙來泰國(guó)打工沦零, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人货岭。 一個(gè)月前我還...
    沈念sama閱讀 45,401評(píng)論 2 352
  • 正文 我出身青樓路操,卻偏偏與公主長(zhǎng)得像序攘,于是被迫代替她去往敵國(guó)和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子寻拂,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 42,700評(píng)論 2 345

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