예제 #1
0
        //寺庙信息
        public void GetTempleInfobyWebService()
        {
            m_pTempInfoData.body = null;

            string ssTempleInfo = getInfoFromInterFace("TempleInfo_Interface", "Interface_Param", "Interface_id");

            if (ssTempleInfo.Length > 0)
            {
                m_pTempInfoData = JsonConvert.DeserializeObject <TempleInfo>(ssTempleInfo);

                if (m_pTempInfoData.body.data != null)
                {
                    if (m_pTempInfoData.body.data.info != null)
                    {
                        m_pTempInfoData.body.data.info = NoHTML(m_pTempInfoData.body.data.info);
                    }

                    if (m_pTempInfoData.body.data.detail != null)
                    {
                        string strTemp;
                        NoHTMLBig(m_pTempInfoData.body.data.detail, out strTemp);
                        m_pTempInfoData.body.data.detail = null;
                        m_pTempInfoData.body.data.detail = strTemp;
                    }

                    if (m_pTempInfoData.body.data.url != null && m_pTempInfoData.body.data.url.Length > 0)
                    {
                        m_pTempInfoData.body.data.url = getFullpathPicLink(m_pTempInfoData.body.data.url);
                    }
                }
            }
        }
예제 #2
0
        //寺庙信息
        public void GetTempleInfobyWebService()
        {
            m_pTempInfoData.body = null;

            string ssTempleInfo = getInfoFromInterFace("TempleInfo_Interface", "Interface_Param", "Interface_id");

            if (ssTempleInfo.Length > 0)
            {
                m_pTempInfoData = JsonConvert.DeserializeObject <TempleInfo>(ssTempleInfo);

                if (m_pTempInfoData.body.data != null)
                {
                    if (m_pTempInfoData.body.data.info != null)
                    {
                        m_pTempInfoData.body.data.info = NoHTML(m_pTempInfoData.body.data.info);
                        //m_pTempInfoData.body.data.info = @"其实,“金木水火土”五大元素都能做成砚台。" +
                        //                @"若想摆出完整的乾坤八卦宇宙混元大矩阵" +
                        //                @"一个元素都不能少:明代铜砚,古人称青铜器为“吉金" +
                        //                @"这里的“金”指金属铜,所以铜砚可以代表“金”元素我可真能扯" + @"清代木砚,真是木头做的,可能用作礼品砚," +
                        //                            @"图片摘自《器蕴才华:文房清供陈列》," +
                        //                            @"清代漆砂砚,外表很像石砚,其实以木胎为心," +
                        //                            @"把天然漆和金刚砂混合涂在表面,远比石砚轻巧,乃旅行佳品";
                    }

                    if (m_pTempInfoData.body.data.detail != null)
                    {
                        m_pTempInfoData.body.data.detail = NoHTML(m_pTempInfoData.body.data.detail);
                        m_pTempInfoData.body.data.detail = "  " + m_pTempInfoData.body.data.detail;
                    }

                    if (m_pTempInfoData.body.data.url != null && m_pTempInfoData.body.data.url.Length > 0)
                    {
                        m_pTempInfoData.body.data.url = getFullpathPicLink(m_pTempInfoData.body.data.url);
                    }

                    if (m_pTempInfoData.body.data != null &&
                        m_pTempInfoData.body.data.wcqr != null &&
                        m_pTempInfoData.body.data.wcqr.Length > 0)
                    {
                        m_pTempInfoData.body.data.wcqr = getFullpathPicLink(m_pTempInfoData.body.data.wcqr);
                    }
                }
            }
        }