Hidistro.UI.Web/Admin/Shop/DeleteCustomerService.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Web;
using ControlPanel.Settings;
using Hidistro.Core;
using Hidistro.Core.Entities;
using Hidistro.Entities.Settings;
using Hishop.MeiQia.Api.Api;
using Hishop.MeiQia.Api.Util;
namespace Hidistro.UI.Web.Admin.Shop
{
public class DeleteCustomerService : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
int result = 0;
int.TryParse(context.Request["id"].ToString(), out result);
if (result > 0)
{
CustomerServiceInfo customer = CustomerServiceHelper.GetCustomer(result);
CustomerServiceSettings masterSettings = CustomerServiceManager.GetMasterSettings(false);
string tokenValue = TokenApi.GetTokenValue(masterSettings.AppId, masterSettings.AppSecret);
if (!string.IsNullOrEmpty(tokenValue))
{
string str2 = CustomerApi.DeleteCustomer(tokenValue, customer.unit, customer.userver);
if (!string.IsNullOrWhiteSpace(str2))
{
string jsonValue = Hishop.MeiQia.Api.Util.Common.GetJsonValue(str2, "errcode");
string str4 = Hishop.MeiQia.Api.Util.Common.GetJsonValue(str2, "errmsg");
if (jsonValue == "0")
{
if (CustomerServiceHelper.DeletCustomer(result))
{
context.Response.Write("{\"type\":\"success\",\"data\":\"\"}");
}
else
{
context.Response.Write("{\"type\":\"error\",\"data\":\"删除客服失败!\"}");
}
}
else
{
context.Response.Write("{\"type\":\"error\",\"data\":\"" + str4 + "\"}");
}
}
else
{
context.Response.Write("{\"type\":\"error\",\"data\":\"删除客服失败!\"}");
}
}
else
{
context.Response.Write("{\"type\":\"error\",\"data\":\"获取access_token失败!\"}");
}
}
}
public bool IsReusable
{
后面还有 8 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
