示例#1
0
        /// <summary>
        /// 抓取消息推送消息
        /// </summary>
        /// <returns></returns>
        public ActionResult FetchJDMessage(int?paymentCompanyId, string type)
        {
            JDMessageOut json = null;

            if (paymentCompanyId > 0)
            {
                json = _jdService.FetchJDMessage(paymentCompanyId.Value, type);
            }
            else
            {
                json = _jdService.FetchJDMessage(type);
            }

            return(Content(JsonConvert.SerializeObject(json)));
        }