public Jinher.AMP.App.Deploy.ApplicationDTO GetAppByIdInfo(System.Guid appId, ContextDTO contextDTO) { Jinher.AMP.App.Deploy.ApplicationDTO applicationDTO = null; try { Jinher.AMP.App.IBP.Facade.AppManagerFacade appManagerFacade = new App.IBP.Facade.AppManagerFacade(); appManagerFacade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); applicationDTO = appManagerFacade.GetAppById(appId); } catch (Exception ex) { LogHelper.Error(string.Format("APPSV.GetAppByIdInfo服务异常:获取应用信息异常。 appId:{0}", appId), ex); } return(applicationDTO); }
public string GenShortUrl(string longUrl) { try { Jinher.JAP.ShortUrl.ISV.Facade.ShortUrlManageFacade shortSV = new JAP.ShortUrl.ISV.Facade.ShortUrlManageFacade(); shortSV.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); var shortUrl = shortSV.GenShortUrl(longUrl); return(shortUrl); } catch (Exception ex) { string errorMsg = string.Format("ShortUrlSV.GenShortUrl异常,异常信息:{0}", ex); LogHelper.Error(errorMsg); } return(""); }
public string GetBehaviorRecordUrl() { string reT = string.Empty; try { Jinher.AMP.DSS.ISV.Facade.BehaviorRecordFacade facade = new DSS.ISV.Facade.BehaviorRecordFacade(); facade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); reT = facade.GetBehaviorRecordUrl(); } catch (Exception ex) { LogHelper.Error(string.Format("DSSSV.GetBehaviorRecordUrl服务异常:获取应用信息异常。 Exception:{0}", ex)); } return(reT); }
public ReturnInfoDTO <bool> PushSysMessageToUsers(List <string> userList, string message, string domain) { ReturnInfoDTO <bool> returnDTO = null; try { Jinher.AMP.SNS.IBP.Facade.MessageQueryFacade messAge = new SNS.IBP.Facade.MessageQueryFacade(); messAge.ContextDTO = AuthorizeHelper.InitAuthorizeInfo(); returnDTO = messAge.PushSysMessageToUsers(userList, message, domain); } catch (Exception ex) { LogHelper.Error(string.Format("SNSSV.PushSysMessageToUsers服务异常:获取应用信息异常。 userList:{0},message:{1},domain{2}", userList, message, domain), ex); } return(returnDTO); }
public ReturnInfoDTO <List <DistrictDTO> > GetAllDistrict(Guid appId) { ReturnInfoDTO <List <DistrictDTO> > reDTO = null; try { Jinher.AMP.SNS.ISV.Facade.AppDistrictQueryFacade facade = new SNS.ISV.Facade.AppDistrictQueryFacade(); facade.ContextDTO = AuthorizeHelper.InitAuthorizeInfo(); reDTO = facade.GetAllDistrict(appId); } catch (Exception ex) { LogHelper.Error(string.Format("SNSSV.GetAllDistrict服务异常:获取LBS管理设置的区域。 appId:{0}", appId), ex); } return(reDTO); }
public ReturnInfoDTO <Guid> GetShareUserId(string key) { ReturnInfoDTO <Guid> reDTO = null; try { Jinher.AMP.SNS.ISV.Facade.ShareFacade shareFacade = new SNS.ISV.Facade.ShareFacade(); shareFacade.ContextDTO = AuthorizeHelper.InitAuthorizeInfo(); reDTO = shareFacade.GetShareUserId(key); } catch (Exception ex) { LogHelper.Error(string.Format("SNSSV.GetShareUserId服务异常:获取应用信息异常。 key:{0}", key), ex); } return(reDTO); }
public ReturnInfoDTO <List <AppSceneUserApiDTO> > GetSceneUserInfo(Guid appId, Guid userId) { ReturnInfoDTO <List <AppSceneUserApiDTO> > appDTO = null; try { Jinher.AMP.SNS.ISV.Facade.AppSceneUserQueryFacade sceneUser = new SNS.ISV.Facade.AppSceneUserQueryFacade(); sceneUser.ContextDTO = AuthorizeHelper.InitAuthorizeInfo(); appDTO = sceneUser.GetSceneUserInfo(appId, userId); } catch (Exception ex) { LogHelper.Error(string.Format("SNSSV.GetSceneUserInfo服务异常:获取应用信息异常。 appId:{0},userId:{1}", appId, userId), ex); } return(appDTO); }
public List <Jinher.AMP.App.Deploy.ApplicationDTO> GetApplicationByOwnId(Guid ownerId) { List <Jinher.AMP.App.Deploy.ApplicationDTO> appsList = new List <App.Deploy.ApplicationDTO>(); try { Jinher.AMP.App.ISV.Facade.AppManagerFacade facade = new Jinher.AMP.App.ISV.Facade.AppManagerFacade(); facade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); appsList = facade.GetApplicationByOwnId(ownerId); } catch (Exception ex) { LogHelper.Error(string.Format("APPSV.GetApplicationByOwnId服务异常:根据应用主获取应用信息。 ownerId:{0}", ownerId), ex); } return(appsList); }
public AppIdNameIconDTO GetAppDetailByIdInfo(Guid appId, ContextDTO contextDTO) { AppIdNameIconDTO applicationDTO = null; try { AppManagerFacade appManagerFacade = new AppManagerFacade(); appManagerFacade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); applicationDTO = appManagerFacade.GetAppDetailById(appId); } catch (Exception ex) { LogHelper.Error(string.Format("APPSV.GetAppDetailByIdInfo服务异常:获取应用信息异常。 appId:{0}", appId), ex); } return(applicationDTO); }
public ResultDTO <List <Jinher.AMP.YJB.Deploy.PriceChangeDetailDTO> > GetAllChangeInfo(System.Collections.Generic.List <System.Guid> Appids, string StarTime, string EndTime) { try { Jinher.AMP.YJB.ISV.Facade.ChangePriceFacade Facade = new YJB.ISV.Facade.ChangePriceFacade(); Facade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); var result = Facade.GetAllChangeInfo(Appids, StarTime, EndTime); LogHelper.Info(string.Format("获取到定时改价商品条数:{0}", result.Data.Count)); return(result); } catch (Exception ex) { LogHelper.Error("YJBSV.GetAllChangeInfoExt获取定时改价商品信息", ex); return(new ResultDTO <List <Jinher.AMP.YJB.Deploy.PriceChangeDetailDTO> >()); } }
public List <Guid> GetOrgIdsByUserIdAndCode(Guid UserId, string Code) { List <Guid> getOrgIdsByUserIdAndCode = new List <Guid>(); try { Jinher.AMP.EBC.ISV.Facade.OrganizationQueryFacade orgDetail = new Jinher.AMP.EBC.ISV.Facade.OrganizationQueryFacade(); orgDetail.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); List <Guid> orgIdList = orgDetail.GetOrgIdsByUserIdAndCode(UserId, Code); } catch (Exception ex) { LogHelper.Error(string.Format("EBCSV.GetOrgIdsByUserIdAndCode服务异常:获取应用信息异常。 UserId:{0},Code{1}", UserId, Code), ex); } return(getOrgIdsByUserIdAndCode); }
public AppLevelDTO GetAppLevelInfo(string appId) { AppLevelDTO applicationDTO = null; try { Jinher.AMP.App.ISV.Facade.AppManagerFacade appManagerFacade = new App.ISV.Facade.AppManagerFacade(); appManagerFacade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); applicationDTO = appManagerFacade.GetAppLevelInfo(appId); } catch (Exception ex) { LogHelper.Error(string.Format("APPSV.GetAppLevelInfo服务异常:获取应用信息异常。 appId:{0}", appId), ex); } return(applicationDTO); }
public List <Guid> GetUserIdsByOrgIdAndCode(Guid OrgId, string Code) { List <Guid> userOrganizationDTO = null; try { OrganizationQueryFacade organizationQueryFacade = new OrganizationQueryFacade(); organizationQueryFacade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); userOrganizationDTO = organizationQueryFacade.GetUserIdsByOrgIdAndCode(OrgId, Code); } catch (Exception ex) { LogHelper.Error(string.Format("EBCSV.GetUserIdsByOrgIdAndCode服务异常:获取应用信息异常。 OrgId:{0},Code{1}", OrgId, Code), ex); } return(userOrganizationDTO); }
public List <AppIdNameIconDTO> GetAppListByIdsInfo(List <Guid> appIds) { List <AppIdNameIconDTO> applicationDTO = null; try { Jinher.AMP.App.ISV.Facade.AppManagerFacade appManagerFacade = new App.ISV.Facade.AppManagerFacade(); appManagerFacade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); applicationDTO = appManagerFacade.GetOldAppListByIds(appIds); } catch (Exception ex) { LogHelper.Error(string.Format("APPSV.GetAppListByIdsInfo服务异常:获取应用信息异常。 appIds:{0}", appIds), ex); } return(applicationDTO); }
public List <UserOrganizationDTO> GetOrgNameIconByIdList(List <Guid> orgIds) { List <Jinher.AMP.EBC.Deploy.CustomDTO.UserOrganizationDTO> userOrganizationDTO = null; try { OrganizationQueryFacade organizationQueryFacade = new OrganizationQueryFacade(); organizationQueryFacade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); userOrganizationDTO = organizationQueryFacade.GetOrgNameIconByIdList(orgIds); } catch (Exception ex) { LogHelper.Error(string.Format("EBCSV.GetOrgNameIconByIdList服务异常:获取应用信息异常。 orgIds:{0}", orgIds), ex); } return(userOrganizationDTO); }
public AppPackageDetailListDTO GetAppPackageDetailsWithHostTypeByAppId(System.Guid appId) { AppPackageDetailListDTO applicationDTO = null; try { Jinher.AMP.App.IBP.Facade.AppManagerFacade appManagerFacade = new App.IBP.Facade.AppManagerFacade(); appManagerFacade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); applicationDTO = appManagerFacade.GetAppPackageDetailsWithHostTypeByAppId(appId); } catch (Exception ex) { LogHelper.Error(string.Format("APPSV.GetAppOwnerInfo服务异常:获取应用信息异常。 appId:{0}", appId), ex); } return(applicationDTO); }
public List <string> UploadFileList(List <FileDTO> fileDTO) { List <string> result = null; try { Jinher.JAP.BaseApp.FileServer.ISV.Facade.FileFacade filefacade = new JAP.BaseApp.FileServer.ISV.Facade.FileFacade(); filefacade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); result = filefacade.UploadFileList(fileDTO); } catch (Exception ex) { LogHelper.Error(string.Format("BTPFileSV.UploadFileList服务异常:获取应用信息异常。 fileDTO:{0}", fileDTO), ex); } return(result); }
public List <ADInfo4ComponentCDTO> GetBiddingAD(BiddingAdCDTO dto) { List <ADInfo4ComponentCDTO> aDInfo = new List <ADInfo4ComponentCDTO>(); try { Jinher.AMP.ADM.ISV.Facade.AdComponentFacade adComponentFacade = new ADM.ISV.Facade.AdComponentFacade(); adComponentFacade.ContextDTO = AuthorizeHelper.InitAuthorizeInfo(); aDInfo = adComponentFacade.GetBiddingAD(dto); } catch (Exception ex) { LogHelper.Error(string.Format("ADMSV.GetBiddingAD服务异常。dto:{0}", dto), ex); } return(aDInfo); }
public bool GetHasFeatureByCode(Guid userId, Guid orgId, Guid appId, string featureCode) { bool result = false; try { Jinher.AMP.EBC.IBP.Facade.RoleFeatureFacade roleBP = new EBC.IBP.Facade.RoleFeatureFacade(); roleBP.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); result = roleBP.HasFeature(userId, orgId, appId.ToString(), featureCode); } catch (Exception ex) { LogHelper.Error(string.Format("通过职员Id、组织Id、应用Id、权限编码判断是否有权限HasFeature异常。userId:{0},orgId:{1},appId:{2},featureCode:{3}", userId, orgId, appId, featureCode), ex); } return(result); }
public CpsCostReturnCDTO EffectivePromote(CpsCostParamCDTO dto) { CpsCostReturnCDTO cpsDTO = new CpsCostReturnCDTO(); try { Jinher.AMP.ADM.ISV.Facade.ProductWallFacade productWallFacade = new ADM.ISV.Facade.ProductWallFacade(); productWallFacade.ContextDTO = AuthorizeHelper.InitAuthorizeInfo(); cpsDTO = productWallFacade.EffectivePromote(dto); } catch (Exception ex) { LogHelper.Error(string.Format("ADMSV.EffectivePromote服务异常。dto:{0}", dto), ex); } return(cpsDTO); }
// GET: /WeChat/Web/Authorize?app=metting //加载授权页面 public ActionResult Authorize(string return_url, string app) { if (app == "metting") { return_url = "http://baidu.com?subsystem=" + app; } if ((return_url.HasValue() && return_url.Contains("Authorize")) || !return_url.HasValue()) { throw new Exception("return_url为空"); //return_url = "/WeChat/BookTiketWeb/Main"; } //默认基本授权 return(Redirect(AuthorizeHelper.Authorize <qx.wechat.Configs.Setting.WxConfig.QxSoft>(return_url))); // return View(Authorize_M.Init(AuthorizeHelper.Authorize(return_url))); }
public List <Jinher.AMP.App.Deploy.NewCustomDTO.ApplicationDTO> GetNewAppByNameOrCategoryOrTemplate(string appName, Guid?categoryId, AppTemplateEnum?template, string usercode, int pagesize, int pagenum, out int count) { List <Jinher.AMP.App.Deploy.NewCustomDTO.ApplicationDTO> result = new List <ApplicationDTO>(); count = 0; try { Jinher.AMP.App.IBP.Facade.AppManagerFacade appManagerFacade = new App.IBP.Facade.AppManagerFacade(); appManagerFacade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); result = appManagerFacade.GetNewAppByNameOrCategoryOrTemplate(appName, categoryId, template, usercode, pagesize, pagenum, out count); } catch (Exception ex) { LogHelper.Error(string.Format("APPBP.GetNewAppByNameOrCategoryOrTemplate服务异常:根据应用名称和分类Id和应用模板查询应用异常。 appName :{0}, categoryId :{1} , template :{2}, usercode :{3}, pagesize :{4}, pagenum :{5}", appName, categoryId, template, usercode, pagesize, pagenum), ex); } return(result); }
public ReturnInfoDTO ConfirmPayFreeze(ConfirmPayDTO dto) { ReturnInfoDTO returnInfoDTO = null; try { GoldPayFacade goldPayFacade = new GoldPayFacade(); goldPayFacade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); goldPayFacade.ContextDTO.LoginOrg = Guid.Empty; returnInfoDTO = goldPayFacade.ConfirmPayFreeze(dto); } catch (Exception ex) { LogHelper.Error(string.Format("FSPSV.ConfirmPayFreeze服务异常:获取应用信息异常。 dto:{0}", dto), ex); } return(returnInfoDTO); }
public ReturnInfoDTO <Jinher.AMP.Finance.Deploy.PayTransactionDTO> GetPayTransaction(Guid orderId) { ReturnInfoDTO <AMP.Finance.Deploy.PayTransactionDTO> reT = new ReturnInfoDTO <AMP.Finance.Deploy.PayTransactionDTO>(); try { Jinher.AMP.Finance.ISV.Facade.PayFacade payFacade = new PayFacade(); payFacade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); payFacade.ContextDTO.LoginOrg = Guid.Empty; reT = payFacade.GetPayTransaction(orderId); } catch (Exception ex) { LogHelper.Error(string.Format("Finance.GetPayTransaction:获取应用信息异常。 arg:{0}", orderId), ex); } return(reT); }
public ReturnInfoDTO MultiPayeeTradeByPassword(MultiPayeeTradeByPasswordArg arg) { ReturnInfoDTO reT = new ReturnInfoDTO(); try { GoldDealerFacade goldDealerFacade = new GoldDealerFacade(); goldDealerFacade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); goldDealerFacade.ContextDTO.LoginOrg = Guid.Empty; reT = goldDealerFacade.MultiPayeeTradeByPassword(arg); } catch (Exception ex) { LogHelper.Error(string.Format("Finance.MultiPayeeTradeByPassword服务异常:获取应用信息异常。 arg:{0}", arg), ex); } return(reT); }
public ReturnInfoDTO <IList <CouponNewDTO> > GetUserCouponsByIds(ListCouponNewRequestDTO condition) { ReturnInfoDTO <IList <CouponNewDTO> > reDTO = new ReturnInfoDTO <IList <CouponNewDTO> >(); try { Jinher.AMP.Coupon.ISV.Facade.CouponFacade couponFacade = new Coupon.ISV.Facade.CouponFacade(); couponFacade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); couponFacade.ContextDTO.LoginOrg = Guid.Empty; reDTO = couponFacade.GetUserCouponsByIds(condition); } catch (Exception ex) { LogHelper.Error(string.Format("CouponSV.GetUserCouponsByIds服务异常:获取应用信息异常。 condition:{0}", condition), ex); } return(reDTO); }
public ReturnInfoDTO RefundCoupon(SpendCouponRequestDTO arg) { ReturnInfoDTO reDTO = new ReturnInfoDTO(); try { Jinher.AMP.Coupon.ISV.Facade.CouponFacade couponFacade = new Coupon.ISV.Facade.CouponFacade(); couponFacade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); couponFacade.ContextDTO.LoginOrg = Guid.Empty; reDTO = couponFacade.RefundCoupon(arg); } catch (Exception ex) { LogHelper.Error(string.Format("CouponSV.RefundCoupon服务异常:arg:{0}", arg), ex); } return(reDTO); }
public ReturnInfoDTO HasPassword(Guid?ownerId) { ReturnInfoDTO returnInfoDTO = null; try { GoldAccountFacade goldAccountFacade = new GoldAccountFacade(); goldAccountFacade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); goldAccountFacade.ContextDTO.LoginOrg = Guid.Empty; returnInfoDTO = goldAccountFacade.HasPassword(ownerId); } catch (Exception ex) { LogHelper.Error(string.Format("FSPSV.HasPassword服务异常:获取应用信息异常。 ownerId:{0}", ownerId), ex); } return(returnInfoDTO); }
public ReturnInfoDTO SpendStoreCoupon(Guid SpendParams) { ReturnInfoDTO reDTO = new ReturnInfoDTO(); try { Jinher.AMP.Coupon.ISV.Facade.CouponFacade couponFacade = new Coupon.ISV.Facade.CouponFacade(); couponFacade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); couponFacade.ContextDTO.LoginOrg = Guid.Empty; reDTO = couponFacade.SpendStoreCoupon(SpendParams); } catch (Exception ex) { LogHelper.Error(string.Format("CouponSV.SpendCoupon服务异常:获取应用信息异常。 SpendParams:{0}", SpendParams), ex); } return(reDTO); }
public ReturnInfoDTO <List <ChildTransactionStatusDTO> > PrePayBatch(PrePayBatchDTO dto) { ReturnInfoDTO <List <ChildTransactionStatusDTO> > result = new ReturnInfoDTO <List <ChildTransactionStatusDTO> >(); try { Jinher.AMP.FSP.ISV.Facade.GoldPayFacade facadeGoldPay = new FSP.ISV.Facade.GoldPayFacade(); facadeGoldPay.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); facadeGoldPay.ContextDTO.LoginOrg = Guid.Empty; result = facadeGoldPay.PrePayBatch(dto); } catch (Exception ex) { LogHelper.Error(string.Format("FSPSV.PrePayBatch批量支付预处理信息异常。异常信息:{0}", ex)); } return(result); }