Пример #1
0
        public bool AddPoi(CreateStoreData createStoreData)
        {
            WxJsonResult wxJsonResult = PoiApi.AddPoi(_accessToken, createStoreData, 10000);

            if (wxJsonResult.errcode != ReturnCode.请求成功)
            {
                throw new Exception(wxJsonResult.errmsg);
            }
            return(true);
        }
Пример #2
0
        public bool AddPoi(CreateStoreData createStoreData)
        {
            var result = PoiApi.AddPoi(this._accessToken, createStoreData);

            if (result.errcode != 0)
            {
                throw new Exception(result.errmsg);
            }
            return(true);
        }
Пример #3
0
 public static WxJsonResult CreateWXStore(CreateStoreData createStoreData)
 {
     return(PoiApi.AddPoi(WXStoreHelper.siteSettings.WeixinAppId, createStoreData, 10000));
 }