From ea0cbd6b92446664e5220a6df84105f3ba5aeec7 Mon Sep 17 00:00:00 2001 From: wule Date: Mon, 16 Nov 2026 19:52:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=8F=90=E5=AE=A1=E9=99=90?= =?UTF-8?q?=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- KJD_WebService/BLL/BXX/BXXProductManage.cs | 22 +++++++++++++++++++ .../Controllers/WX/WXProductController.cs | 8 +++++++ 2 files changed, 30 insertions(+) diff --git a/KJD_WebService/BLL/BXX/BXXProductManage.cs b/KJD_WebService/BLL/BXX/BXXProductManage.cs index 2ecd75d..ce2a5ec 100644 --- a/KJD_WebService/BLL/BXX/BXXProductManage.cs +++ b/KJD_WebService/BLL/BXX/BXXProductManage.cs @@ -3357,6 +3357,28 @@ namespace KJD_Web.BLL.BXX return "{\"code\":19999,\"msg\":\"输入为空\"}"; } + /// + /// 获取提审限额 + /// + /// + /// + public string WxApiGetAuditQuota(string inputData) + { + if (!string.IsNullOrEmpty(inputData)) + { + var time = RegexUtils.GetStringQuery(ref inputData, "time").ParseToInt(); + string time1 = RegexUtils.GetStringQuery(ref inputData, "code"); + if (time1 != EncrypUtil.Encryption(time)) + return "{\"code\":50000,\"msg\":\"校验失败\"}"; + + string post_data = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "post_data")); + string token = RegexUtils.GetStringQuery(ref inputData, "token"); + + return HttpUtils.WxApiPostResponse("https://api.weixin.qq.com/channels/ec/product/getauditquota?access_token= " + token, post_data, ""); + } + return "{\"code\":19999,\"msg\":\"输入为空\"}"; + } + public string WxApiUploadImage(string inputData) { if (!string.IsNullOrEmpty(inputData)) diff --git a/KJD_WebService/Controllers/WX/WXProductController.cs b/KJD_WebService/Controllers/WX/WXProductController.cs index 72f466a..82064a2 100644 --- a/KJD_WebService/Controllers/WX/WXProductController.cs +++ b/KJD_WebService/Controllers/WX/WXProductController.cs @@ -403,6 +403,14 @@ namespace KJD_Web.Controllers.WX return JsonString(result); } + public IHttpActionResult wx_api_get_audit_quota() + { + string jsontext = GetRequestJsonString(); + var result = new BXXProductManage().WxApiGetAuditQuota(jsontext); + + return JsonString(result); + } + public IHttpActionResult wx_api_category_classify() { string jsontext = GetRequestJsonString();