예제 #1
0
        public async Task <ActionResult> GetProd(string prodNo)
        {
            var shop = await Task.FromResult(Bak365Service.GetProdInfo(prodNo));

            if (shop == null)
            {
                return(Json(new AjaxResult()
                {
                    state = "err", msg = "找不到此商品"
                }));
            }

            return(Json(new AjaxResult()
            {
                state = "ok", data = shop
            }));
        }