/* CosCloud VedioCosCloud; * * private EmCostumePhoto UploadPhotoToCos(PhotoData para, string customerID) * { * InteractResult<CosCloudSignature> Signatureresult = GlobalCache.ServerProxy.GetCosCloudSignature(); * if (Signatureresult.ExeResult == ExeResult.Success) * { * CosCloudSignature cosCloudSignature = Signatureresult.Data; * * VedioCosCloud = new CosCloud(cosCloudSignature.AppID, cosCloudSignature.Signature, 120); * * * para.Name = JGNet.Core.ImageHelper.GetNewJpgName(customerID); * // CosCloud cos = new CosCloud(cosLoginInfo.AppID, cosLoginInfo.SecretId, cosLoginInfo.SecretKey); * Dictionary<string, string> uploadParasDic = new Dictionary<string, string>(); * uploadParasDic.Add(CosParameters.PARA_BIZ_ATTR, ""); * uploadParasDic.Add(CosParameters.PARA_INSERT_ONLY, "0"); * string result = VedioCosCloud.UploadFile2(cosCloudSignature.BucketName, string.Format("/{0}/{1}", customerID, para.Name), * para.Name, para.Datas, uploadParasDic); * // JObject jObject = (JObject)JsonConvert.DeserializeObject(result); * ResultJson ResultJ = (ResultJson)JavaScriptConvert.DeserializeObject(result, typeof(ResultJson)); * if (ResultJ.code.ToString() == "0") * { * Data dInfo = ResultJ.data; * string source_url = dInfo.source_url.ToString(); * EmCostumePhoto CurCostmePhotoVideo = new EmCostumePhoto(); * * CurCostmePhotoVideo.LinkAddress = dInfo.source_url; * CurCostmePhotoVideo.IsVideo = false; * CurCostmePhotoVideo.PhotoName = para.Name; * CurCostmePhotoVideo.CostumeID = para.EmCostumePhoto.CostumeID; * CurCostmePhotoVideo.DisplayIndex = para.EmCostumePhoto.DisplayIndex; * * return CurCostmePhotoVideo; * //para.LinkAddress = source_url; * //??? this.dbManager.DBEmPosterImageService.Insert(para.EmPosterImage); * } * else * { * throw new Exception(string.Format("上传【{0}】图片发生错误-【{1}】", para.Name, result)); * } * } * return new EmCostumePhoto(); * }*/ private void DoNotify() { try { //图片保存成功,通知商户网站地址,账套信息,款号 String response = CommonGlobalUtil.BusinessWebCostumePhotoChangeNotify(item.ID); } catch (Exception ex) { ShowError(ex); } }
private void DoNotify() { //图片保存成功,通知商户网站地址,账套信息,款号 String response = CommonGlobalUtil.BusinessWebCostumePhotoChangeNotify(item.ID); }