Exemplo n.º 1
0
 public void OnStoreMapSuccess(ResturantPlatformType platformType, StoreMapInfo mapinfo)
 {
     //门店映射成功,接收token
     using (Way.Lib.CLog log = new Way.Lib.CLog("成功映射门店"))
     {
         log.Log($"erpStoreId:{mapinfo.ErpStoreId} token:{mapinfo.Token} refresh_token:{mapinfo.Refresh_token} expires:{mapinfo.Expires}");
     }
 }
Exemplo n.º 2
0
        private static StoreMapInfo MappingStoreInfoModel(JToken posItem, DbContext dbContext)
        {
            var storeMapInfo = new StoreMapInfo
            {
                Id         = Guid.NewGuid(),
                Name       = posItem["name"].ToString(),
                Type       = posItem["type"].ToString(),
                TypeCode   = posItem["typecode"].ToString(),
                Address    = posItem["address"].ToString(),
                Locaiton   = posItem["location"].ToString(),
                Biz_Rating = posItem["biz_ext"]?["rating"]?.ToString(),
                Biz_Cost   = posItem["biz_ext"]?["cost"]?.ToString(),
                Province   = posItem["pname"].ToString(),
                City       = posItem["cityname"].ToString(),
                District   = posItem["adname"].ToString(),
                Photos     = posItem["photos"].ToString(),
                Tel        = posItem["tel"].ToString(),
                IdCode     = posItem["id"].ToString()
            };

            return(storeMapInfo);
        }
Exemplo n.º 3
0
 public void OnStoreMapSuccess(ResturantPlatformType platformType, StoreMapInfo mapinfo)
 {
 }
Exemplo n.º 4
0
 public void OnStoreMapSuccess(ResturantPlatformType platformType, StoreMapInfo mapinfo)
 {
     throw new NotImplementedException();
 }