public bool UpdatePoi(UpdateStoreData updateStoreData) { WxJsonResult wxJsonResult = PoiApi.UpdatePoi(_accessToken, updateStoreData, 10000); if (wxJsonResult.errcode != ReturnCode.请求成功) { throw new Exception(wxJsonResult.errmsg); } if (wxJsonResult.errcode == (ReturnCode.获取access_token时AppSecret错误或者access_token无效 | ReturnCode.合法的凭证类型 | ReturnCode.合法的OpenID | ReturnCode.合法的按钮个数1 | ReturnCode.合法的按钮个数2 | ReturnCode.合法的按钮名字长度 | ReturnCode.合法的按钮KEY长度 | ReturnCode.access_token超时 | ReturnCode.refresh_token超时 | ReturnCode.oauth_code超时 | ReturnCode.客服帐号个数超过限制 | ReturnCode.无效头像文件类型invalid_file_type)) { throw new HimallException("暂时不允许修改"); } return(true); }
public bool UpdatePoi(UpdateStoreData updateStoreData) { var result = PoiApi.UpdatePoi(this._accessToken, updateStoreData); if (result.errcode != 0) { throw new Exception(result.errmsg); } else if ((int)result.errcode == 65107) { throw new HimallException("暂时不允许修改"); } return(true); }
public static WxJsonResult UpdateWXStore(UpdateStoreData updateStoreData) { return(PoiApi.UpdatePoi(WXStoreHelper.siteSettings.WeixinAppId, updateStoreData, 10000)); }