/// <summary> /// 查找产品 - 根据编号 /// </summary> /// <param name="no"></param> /// <returns></returns> public ProductApiModel GetProduct(int no) { ProductApiModel model = new ProductApiModel(); try { LoanMarketProduct marketProduct = product.GetProduct(no); log.Info("产品详情,二维码" + JsonConvert.SerializeObject(marketProduct)); model = new ProductApiModel() { ResponseStatus = "ok", No = marketProduct.No, Name = marketProduct.Name, Icon = marketProduct.Icon, Describe1 = marketProduct.Describe1, Describe2 = marketProduct.Describe2, Describe3 = marketProduct.Describe3, Describe4 = marketProduct.Describe4, Describe5 = marketProduct.Describe5, Url = marketProduct.Url, QrCodeUrl = QrCode.CreateQrCode(marketProduct.Url) }; } catch (Exception e) { log.Info("获取产品详情报异常,异常信息为:" + e.Message); } return(model); }
public string test() { QrCode.CreateQrCode(""); return(""); }