WxaApi.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. using Senparc.CO2NET.Extensions;
  2. using Senparc.NeuChar;
  3. using Senparc.Weixin.CommonAPIs;
  4. using Senparc.Weixin.Entities;
  5. using Senparc.Weixin.MP.AdvancedAPIs.Wxa.MerchantJson;
  6. using Senparc.Weixin.MP.CommonAPIs;
  7. using System.Threading.Tasks;
  8. namespace Senparc.Weixin.MP.AdvancedAPIs
  9. {
  10. /// <summary>
  11. /// 门店小程序接口
  12. /// </summary>
  13. public static class WxaApi
  14. {
  15. //门店小程序是公众平台向商户提供的对其线下门店相关功能的管理能力。
  16. //门店小程序可设置到公众号介绍页、自定义菜单和图文消息中,通过附近关联导入出现在“附近的小程序”,也可应用在卡券、广告、WIFI等业务使用。
  17. //门店小程序接口是为商户提供批量新增、查询、修改、删除门店等主要功能,包括创建小程序商家账号,方便商户快速高效进行门店管理和操作。
  18. //备注:原门店管理权限可通过升级为门店小程序使用相关权限
  19. //门店小程序权限开放给所有非个人公众号;拥有旧门店管理权限的公众号可通过升级获取门店小程序权限。
  20. //曾授权第三方旧门店管理权限集的公众号,门店小程序权限集默认授权原第三方。
  21. #region 同步方法
  22. /// <summary>
  23. /// 拉取门店小程序类目
  24. /// </summary>
  25. /// <param name="accessTokenOrAppId">AccessToken或AppId(推荐使用AppId,需要先注册)</param>
  26. /// <param name="timeOut">请求超时时长</param>
  27. /// <returns>小程序类目</returns>
  28. [ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "WxaApi.GetMerchantCategoryResult", true)]
  29. public static GetMerchantCategoryResult GetMerchantCategoryResult(string accessTokenOrAppId, int timeOut = Config.TIME_OUT)
  30. {
  31. return ApiHandlerWapper.TryCommonApi(accessToken =>
  32. {
  33. var url = string.Format(Config.ApiMpHost + "/wxa/get_merchant_category?access_token={0}", accessToken.AsUrlData());
  34. return CommonJsonSend.Send<GetMerchantCategoryResult>(null, url, null, CommonJsonSendType.GET, timeOut);
  35. }, accessTokenOrAppId);
  36. }
  37. /// <summary>
  38. /// 创建门店小程序
  39. /// <para>创建门店小程序提交后需要公众号管理员确认通过后才可进行审核。如果主管理员24小时超时未确认,才能再次提交。</para>
  40. /// </summary>
  41. /// <param name="accessTokenOrAppId">AccessToken或AppId(推荐使用AppId,需要先注册)</param>
  42. /// <param name="data">申请数据</param>
  43. /// <param name="timeOut">请求超时时长</param>
  44. /// <returns></returns>
  45. [ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "WxaApi.ApplyMerchant", true)]
  46. public static WxJsonResult ApplyMerchant(string accessTokenOrAppId, ApplyMerchantData data, int timeOut = Config.TIME_OUT)
  47. {
  48. return ApiHandlerWapper.TryCommonApi(accessToken =>
  49. {
  50. var url = string.Format(Config.ApiMpHost + "/wxa/apply_merchant?access_token={0}", accessToken.AsUrlData());
  51. return CommonJsonSend.Send<WxJsonResult>(null, url, data, CommonJsonSendType.POST, timeOut);
  52. }, accessTokenOrAppId);
  53. }
  54. /// <summary>
  55. /// 查询门店小程序审核结果
  56. /// </summary>
  57. /// <param name="accessTokenOrAppId">AccessToken或AppId(推荐使用AppId,需要先注册)</param>
  58. /// <param name="timeOut">请求超时时长</param>
  59. /// <returns></returns>
  60. [ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "WxaApi.GetMerchantAuditInfo", true)]
  61. public static GetMerchantAuditInfoJson GetMerchantAuditInfo(string accessTokenOrAppId, int timeOut = Config.TIME_OUT)
  62. {
  63. return ApiHandlerWapper.TryCommonApi(accessToken =>
  64. {
  65. var url = string.Format(Config.ApiMpHost + "/wxa/get_merchant_audit_info?access_token={0}", accessToken.AsUrlData());
  66. return CommonJsonSend.Send<GetMerchantAuditInfoJson>(null, url, null, CommonJsonSendType.GET, timeOut);
  67. }, accessTokenOrAppId);
  68. }
  69. /// <summary>
  70. /// 修改门店小程序信息
  71. /// </summary>
  72. /// <param name="accessTokenOrAppId">AccessToken或AppId(推荐使用AppId,需要先注册)</param>
  73. /// <param name="headimg_mediaid">头像 --- 临时素材mediaid 用MediaApi.UploadTemporaryMedia接口得到的</param>
  74. /// <param name="intro">门店小程序的介绍,如果不想改,参数传空值</param>
  75. /// <param name="timeOut">请求超时时长</param>
  76. /// <returns></returns>
  77. [ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "WxaApi.ModifyMerchant", true)]
  78. public static WxJsonResult ModifyMerchant(string accessTokenOrAppId, string headimg_mediaid, string intro, int timeOut = Config.TIME_OUT)
  79. {
  80. return ApiHandlerWapper.TryCommonApi(accessToken =>
  81. {
  82. var url = string.Format(Config.ApiMpHost + "/wxa/modify_merchant?access_token={0}", accessToken.AsUrlData());
  83. return CommonJsonSend.Send<WxJsonResult>(null, url, new { headimg_mediaid, intro }, CommonJsonSendType.POST, timeOut);
  84. }, accessTokenOrAppId);
  85. }
  86. /// <summary>
  87. /// 在腾讯地图中搜索门店
  88. /// </summary>
  89. /// <param name="accessTokenOrAppId">AccessToken或AppId(推荐使用AppId,需要先注册)</param>
  90. /// <param name="districtid">对应 拉取省市区信息接口 中的id字段</param>
  91. /// <param name="keyword">搜索的关键词</param>
  92. /// <param name="timeOut">请求超时时长</param>
  93. /// <returns></returns>
  94. [ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "WxaApi.SearchMapPoi", true)]
  95. public static SearchMapPoiJson SearchMapPoi(string accessTokenOrAppId, int districtid, string keyword, int timeOut = Config.TIME_OUT)
  96. {
  97. return ApiHandlerWapper.TryCommonApi(accessToken =>
  98. {
  99. var url = string.Format(Config.ApiMpHost + "/wxa/search_map_poi?access_token={0}", accessToken.AsUrlData());
  100. return CommonJsonSend.Send<SearchMapPoiJson>(null, url, new { districtid, keyword }, CommonJsonSendType.GET, timeOut);
  101. }, accessTokenOrAppId);
  102. }
  103. /// <summary>
  104. /// 添加门店
  105. /// </summary>
  106. /// <param name="accessTokenOrAppId">AccessToken或AppId(推荐使用AppId,需要先注册)</param>
  107. /// <param name="data">门店数据</param>
  108. /// <param name="timeOut">请求超时时长</param>
  109. /// <returns></returns>
  110. [ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "WxaApi.Addstore", true)]
  111. public static AddStoreJsonResult Addstore(string accessTokenOrAppId, AddStoreJsonData data, int timeOut = Config.TIME_OUT)
  112. {
  113. return ApiHandlerWapper.TryCommonApi(accessToken =>
  114. {
  115. var url = string.Format(Config.ApiMpHost + "/wxa/add_store?access_token={0}", accessToken.AsUrlData());
  116. return CommonJsonSend.Send<AddStoreJsonResult>(null, url, data, CommonJsonSendType.POST, timeOut);
  117. }, accessTokenOrAppId);
  118. }
  119. /// <summary>
  120. /// 更新门店信息
  121. /// </summary>
  122. /// <param name="accessTokenOrAppId">AccessToken或AppId(推荐使用AppId,需要先注册)</param>
  123. /// <param name="data">门店数据</param>
  124. /// <param name="timeOut">请求超时时长</param>
  125. /// <returns></returns>
  126. [ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "WxaApi.UpdateStore", true)]
  127. public static UpdateStoreJsonResult UpdateStore(string accessTokenOrAppId, UpdateStoreData data, int timeOut = Config.TIME_OUT)
  128. {
  129. return ApiHandlerWapper.TryCommonApi(accessToken =>
  130. {
  131. var url = string.Format(Config.ApiMpHost + "/wxa/update_store?access_token={0}", accessToken.AsUrlData());
  132. return CommonJsonSend.Send<UpdateStoreJsonResult>(null, url, data, CommonJsonSendType.POST, timeOut);
  133. }, accessTokenOrAppId);
  134. }
  135. /// <summary>
  136. /// 获取单个门店信息
  137. /// </summary>
  138. /// <param name="accessTokenOrAppId">AccessToken或AppId(推荐使用AppId,需要先注册)</param>
  139. /// <param name="poi_id">为门店小程序添加门店,审核成功后返回的门店id</param>
  140. /// <param name="timeOut">请求超时时长</param>
  141. /// <returns></returns>
  142. [ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "WxaApi.GetStoreInfo", true)]
  143. public static StoreJsonResult GetStoreInfo(string accessTokenOrAppId, string poi_id, int timeOut = Config.TIME_OUT)
  144. {
  145. return ApiHandlerWapper.TryCommonApi(accessToken =>
  146. {
  147. var url = string.Format(Config.ApiMpHost + "/wxa/get_store_info?access_token={0}", accessToken.AsUrlData());
  148. return CommonJsonSend.Send<StoreJsonResult>(null, url, new { poi_id }, CommonJsonSendType.POST, timeOut);
  149. }, accessTokenOrAppId);
  150. }
  151. /// <summary>
  152. /// 获取门店信息列表
  153. /// <para>假如某个门店小程序有10个门店,那么offset最大是9。limit参数最大不能超过50,并且如果传入的limit参数是0,那么按默认值20处理。</para>
  154. /// </summary>
  155. /// <param name="accessTokenOrAppId">AccessToken或AppId(推荐使用AppId,需要先注册)</param>
  156. /// <param name="limit">获取门店个数</param>
  157. /// <param name="offset">获取门店列表的初始偏移位置,从0开始计数</param>
  158. /// <param name="timeOut">请求超时时长</param>
  159. /// <returns></returns>
  160. [ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "WxaApi.GetStoreInfo", true)]
  161. public static StoreListJsonResult GetStoreInfo(string accessTokenOrAppId, int offset, int limit, int timeOut = Config.TIME_OUT)
  162. {
  163. return ApiHandlerWapper.TryCommonApi(accessToken =>
  164. {
  165. var url = string.Format(Config.ApiMpHost + "/wxa/get_store_info?access_token={0}", accessToken.AsUrlData());
  166. return CommonJsonSend.Send<StoreListJsonResult>(null, url, new { offset, limit }, CommonJsonSendType.POST, timeOut);
  167. }, accessTokenOrAppId);
  168. }
  169. /// <summary>
  170. /// 删除门店
  171. /// </summary>
  172. /// <param name="accessTokenOrAppId">AccessToken或AppId(推荐使用AppId,需要先注册)</param>
  173. /// <param name="poi_id">为门店小程序添加门店,审核成功后返回的门店id</param>
  174. /// <param name="timeOut">请求超时时长</param>
  175. /// <returns></returns>
  176. [ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "WxaApi.DeleteStore", true)]
  177. public static WxJsonResult DeleteStore(string accessTokenOrAppId, string poi_id, int timeOut = Config.TIME_OUT)
  178. {
  179. return ApiHandlerWapper.TryCommonApi(accessToken =>
  180. {
  181. var url = string.Format(Config.ApiMpHost + "/wxa/del_store?access_token={0}", accessToken.AsUrlData());
  182. return CommonJsonSend.Send<StoreJsonResult>(null, url, new { poi_id }, CommonJsonSendType.POST, timeOut);
  183. }, accessTokenOrAppId);
  184. }
  185. #endregion
  186. #if !NET35 && !NET40
  187. #region 异步方法
  188. /// <summary>
  189. /// 拉取门店小程序类目
  190. /// </summary>
  191. /// <param name="accessTokenOrAppId">AccessToken或AppId(推荐使用AppId,需要先注册)</param>
  192. /// <param name="timeOut">请求超时时长</param>
  193. /// <returns>小程序类目</returns>
  194. [ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "WxaApi.GetMerchantCategoryResult", true)]
  195. public static async Task<GetMerchantCategoryResult> GetMerchantCategoryResultAsync(string accessTokenOrAppId, int timeOut = Config.TIME_OUT)
  196. {
  197. return await ApiHandlerWapper.TryCommonApiAsync(async accessToken =>
  198. {
  199. var url = string.Format(Config.ApiMpHost + "/wxa/get_merchant_category?access_token={0}", accessToken.AsUrlData());
  200. return await CommonJsonSend.SendAsync<GetMerchantCategoryResult>(null, url, null, CommonJsonSendType.GET, timeOut);
  201. }, accessTokenOrAppId);
  202. }
  203. /// <summary>
  204. /// 创建门店小程序
  205. /// <para>创建门店小程序提交后需要公众号管理员确认通过后才可进行审核。如果主管理员24小时超时未确认,才能再次提交。</para>
  206. /// </summary>
  207. /// <param name="accessTokenOrAppId">AccessToken或AppId(推荐使用AppId,需要先注册)</param>
  208. /// <param name="data">申请数据</param>
  209. /// <param name="timeOut">请求超时时长</param>
  210. /// <returns></returns>
  211. [ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "WxaApi.ApplyMerchant", true)]
  212. public static async Task<WxJsonResult> ApplyMerchantGetMerchantCategoryResultAsync(string accessTokenOrAppId, ApplyMerchantData data, int timeOut = Config.TIME_OUT)
  213. {
  214. return await ApiHandlerWapper.TryCommonApiAsync(async accessToken =>
  215. {
  216. var url = string.Format(Config.ApiMpHost + "/wxa/apply_merchant?access_token={0}", accessToken.AsUrlData());
  217. return await CommonJsonSend.SendAsync<WxJsonResult>(null, url, data, CommonJsonSendType.POST, timeOut);
  218. }, accessTokenOrAppId);
  219. }
  220. /// <summary>
  221. /// 查询门店小程序审核结果
  222. /// </summary>
  223. /// <param name="accessTokenOrAppId">AccessToken或AppId(推荐使用AppId,需要先注册)</param>
  224. /// <param name="timeOut">请求超时时长</param>
  225. /// <returns></returns>
  226. [ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "WxaApi.GetMerchantAuditInfo", true)]
  227. public static async Task<GetMerchantAuditInfoJson> GetMerchantAuditInfoAsync(string accessTokenOrAppId, int timeOut = Config.TIME_OUT)
  228. {
  229. return await ApiHandlerWapper.TryCommonApiAsync(async accessToken =>
  230. {
  231. var url = string.Format(Config.ApiMpHost + "/wxa/get_merchant_audit_info?access_token={0}", accessToken.AsUrlData());
  232. return await CommonJsonSend.SendAsync<GetMerchantAuditInfoJson>(null, url, null, CommonJsonSendType.GET, timeOut);
  233. }, accessTokenOrAppId);
  234. }
  235. /// <summary>
  236. /// 修改门店小程序信息
  237. /// </summary>
  238. /// <param name="accessTokenOrAppId">AccessToken或AppId(推荐使用AppId,需要先注册)</param>
  239. /// <param name="headimg_mediaid">头像 --- 临时素材mediaid 用MediaApi.UploadTemporaryMedia接口得到的</param>
  240. /// <param name="intro">门店小程序的介绍,如果不想改,参数传空值</param>
  241. /// <param name="timeOut">请求超时时长</param>
  242. /// <returns></returns>
  243. [ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "WxaApi.ModifyMerchant", true)]
  244. public static async Task<WxJsonResult> ModifyMerchantAsync(string accessTokenOrAppId, string headimg_mediaid, string intro, int timeOut = Config.TIME_OUT)
  245. {
  246. return await ApiHandlerWapper.TryCommonApiAsync(async accessToken =>
  247. {
  248. var url = string.Format(Config.ApiMpHost + "/wxa/modify_merchant?access_token={0}", accessToken.AsUrlData());
  249. return await CommonJsonSend.SendAsync<WxJsonResult>(null, url, new { headimg_mediaid, intro }, CommonJsonSendType.POST, timeOut);
  250. }, accessTokenOrAppId);
  251. }
  252. /// <summary>
  253. /// 在腾讯地图中搜索门店
  254. /// </summary>
  255. /// <param name="accessTokenOrAppId">AccessToken或AppId(推荐使用AppId,需要先注册)</param>
  256. /// <param name="districtid">对应 拉取省市区信息接口 中的id字段</param>
  257. /// <param name="keyword">搜索的关键词</param>
  258. /// <param name="timeOut">请求超时时长</param>
  259. /// <returns></returns>
  260. [ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "WxaApi.SearchMapPoi", true)]
  261. public static async Task<SearchMapPoiJson> SearchMapPoiAsync(string accessTokenOrAppId, int districtid, string keyword, int timeOut = Config.TIME_OUT)
  262. {
  263. return await ApiHandlerWapper.TryCommonApiAsync(async accessToken =>
  264. {
  265. var url = string.Format(Config.ApiMpHost + "/wxa/search_map_poi?access_token={0}", accessToken.AsUrlData());
  266. return await CommonJsonSend.SendAsync<SearchMapPoiJson>(null, url, new { districtid, keyword }, CommonJsonSendType.GET, timeOut);
  267. }, accessTokenOrAppId);
  268. }
  269. /// <summary>
  270. /// 添加门店
  271. /// </summary>
  272. /// <param name="accessTokenOrAppId">AccessToken或AppId(推荐使用AppId,需要先注册)</param>
  273. /// <param name="data">门店数据</param>
  274. /// <param name="timeOut">请求超时时长</param>
  275. /// <returns></returns>
  276. [ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "WxaApi.Addstore", true)]
  277. public static async Task<AddStoreJsonResult> AddstoreAsync(string accessTokenOrAppId, AddStoreJsonData data, int timeOut = Config.TIME_OUT)
  278. {
  279. return await ApiHandlerWapper.TryCommonApiAsync(async accessToken =>
  280. {
  281. var url = string.Format(Config.ApiMpHost + "/wxa/add_store?access_token={0}", accessToken.AsUrlData());
  282. return await CommonJsonSend.SendAsync<AddStoreJsonResult>(null, url, data, CommonJsonSendType.POST, timeOut);
  283. }, accessTokenOrAppId);
  284. }
  285. /// <summary>
  286. /// 更新门店信息
  287. /// </summary>
  288. /// <param name="accessTokenOrAppId">AccessToken或AppId(推荐使用AppId,需要先注册)</param>
  289. /// <param name="data">门店数据</param>
  290. /// <param name="timeOut">请求超时时长</param>
  291. /// <returns></returns>
  292. [ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "WxaApi.UpdateStore", true)]
  293. public static async Task<UpdateStoreJsonResult> UpdateStoreAsync(string accessTokenOrAppId, UpdateStoreData data, int timeOut = Config.TIME_OUT)
  294. {
  295. return await ApiHandlerWapper.TryCommonApiAsync(async accessToken =>
  296. {
  297. var url = string.Format(Config.ApiMpHost + "/wxa/update_store?access_token={0}", accessToken.AsUrlData());
  298. return await CommonJsonSend.SendAsync<UpdateStoreJsonResult>(null, url, data, CommonJsonSendType.POST, timeOut);
  299. }, accessTokenOrAppId);
  300. }
  301. /// <summary>
  302. /// 获取单个门店信息
  303. /// </summary>
  304. /// <param name="accessTokenOrAppId">AccessToken或AppId(推荐使用AppId,需要先注册)</param>
  305. /// <param name="poi_id">为门店小程序添加门店,审核成功后返回的门店id</param>
  306. /// <param name="timeOut">请求超时时长</param>
  307. /// <returns></returns>
  308. [ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "WxaApi.GetStoreInfo", true)]
  309. public static async Task<StoreJsonResult> GetStoreInfoAsync(string accessTokenOrAppId, string poi_id, int timeOut = Config.TIME_OUT)
  310. {
  311. return await ApiHandlerWapper.TryCommonApiAsync(async accessToken =>
  312. {
  313. var url = string.Format(Config.ApiMpHost + "/wxa/get_store_info?access_token={0}", accessToken.AsUrlData());
  314. return await CommonJsonSend.SendAsync<StoreJsonResult>(null, url, new { poi_id }, CommonJsonSendType.POST, timeOut);
  315. }, accessTokenOrAppId);
  316. }
  317. /// <summary>
  318. /// 获取门店信息列表
  319. /// <para>假如某个门店小程序有10个门店,那么offset最大是9。limit参数最大不能超过50,并且如果传入的limit参数是0,那么按默认值20处理。</para>
  320. /// </summary>
  321. /// <param name="accessTokenOrAppId">AccessToken或AppId(推荐使用AppId,需要先注册)</param>
  322. /// <param name="limit">获取门店个数</param>
  323. /// <param name="offset">获取门店列表的初始偏移位置,从0开始计数</param>
  324. /// <param name="timeOut">请求超时时长</param>
  325. /// <returns></returns>
  326. [ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "WxaApi.GetStoreInfo", true)]
  327. public static async Task<StoreListJsonResult> GetStoreInfoAsync(string accessTokenOrAppId, int offset, int limit, int timeOut = Config.TIME_OUT)
  328. {
  329. return await ApiHandlerWapper.TryCommonApiAsync(async accessToken =>
  330. {
  331. var url = string.Format(Config.ApiMpHost + "/wxa/get_store_info?access_token={0}", accessToken.AsUrlData());
  332. return await CommonJsonSend.SendAsync<StoreListJsonResult>(null, url, new { offset, limit }, CommonJsonSendType.POST, timeOut);
  333. }, accessTokenOrAppId);
  334. }
  335. /// <summary>
  336. /// 删除门店
  337. /// </summary>
  338. /// <param name="accessTokenOrAppId">AccessToken或AppId(推荐使用AppId,需要先注册)</param>
  339. /// <param name="poi_id">为门店小程序添加门店,审核成功后返回的门店id</param>
  340. /// <param name="timeOut">请求超时时长</param>
  341. /// <returns></returns>
  342. [ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "WxaApi.DeleteStore", true)]
  343. public static async Task<WxJsonResult> DeleteStoreAsync(string accessTokenOrAppId, string poi_id, int timeOut = Config.TIME_OUT)
  344. {
  345. return await ApiHandlerWapper.TryCommonApiAsync(async accessToken =>
  346. {
  347. var url = string.Format(Config.ApiMpHost + "/wxa/del_store?access_token={0}", accessToken.AsUrlData());
  348. return await CommonJsonSend.SendAsync<StoreJsonResult>(null, url, new { poi_id }, CommonJsonSendType.POST, timeOut);
  349. }, accessTokenOrAppId);
  350. }
  351. #endregion
  352. #endif
  353. }
  354. }