public JsonResult DisplayBuyerInfo([FromBody] BuyerModel buyerModel)
        {
            Buyer    buyer    = service2.SearchByID(buyerModel.BuyerId);
            JsonData jsondata = new JsonData();

            if (buyer != null)
            {
                jsondata["buyerNickname"] = buyer.Nickname;
                jsondata["buyerPhone"]    = buyer.Phone;
                jsondata["buyerGender"]   = buyer.Gender;
                jsondata["buyerBirth"]    = buyer.DateBirth.ToString();
                jsondata["buyerUrl"]      = buyer.Url;
            }
            return(Json(jsondata.ToJson()));//这玩意是个string
        }
        public IActionResult GetBuyerPic()    //返回买家头像
        {
            JsonData jsondata = new JsonData();
            Buyer    buyer    = buyerService.SearchByID(Request.Cookies["buyerID"]);

            if (buyer != null)
            {
                buyer.Url       = "../.." + buyer.Url;;
                jsondata["url"] = buyer.Url;
            }
            else
            {
                jsondata["url"] = "FAILED";
            }
            return(Json(jsondata.ToJson()));
        }