新代理商
This commit is contained in:
1 parent
e37f15737c
commit
0773eaa9fd
34 files changed
+742
-76
No files matched your search
@@ -2037,6 +2037,8 @@ namespace KJD_Web.BLL.BXX
|
||||
var min_view_uv = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "min_view_uv"))?.ParseToNullableInt();
|
||||
if (min_view_uv > 0 && min_view_uv < 100)
|
||||
min_view_uv = 100;
|
||||
if (is学员数据)
|
||||
min_view_uv = null;
|
||||
|
||||
int page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt();
|
||||
int page_size = RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt(50);
|
||||
|
||||
@@ -1061,7 +1061,7 @@ namespace KJD_Web.BLL.WXXD
|
||||
sql = "INSERT INTO wxxd.order_pdd_buyer_order (wx_order_id,wx_sku_id,wx_send_type,TransitCreateTime,pre_allocated_order_no,buyerId,buyerName,order_sn,order_amount,order_time," +
|
||||
"outExpressCompanyCode,tracking_number,order_status_prompt,after_sales_status,order_detail,wx_order_send_type)";
|
||||
sql += "VALUES(@wx_order_id,@wx_sku_id,@wx_send_type,@TransitCreateTime,@pre_allocated_order_no,@buyerId,@buyerName,@pdd_order_sn,@order_amount,@order_time," +
|
||||
"@outExpressCompanyCode,@tracking_number,@order_status_prompt,@after_sales_status,@order_detail@wx_order_send_type);";
|
||||
"@outExpressCompanyCode,@tracking_number,@order_status_prompt,@after_sales_status,@order_detail,@wx_order_send_type);";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -42,6 +42,32 @@ namespace KJD_Web.BLL.WXXD
|
||||
return true;
|
||||
}
|
||||
|
||||
public static DateTime dtAuthorizationExpireTime = DateTime.Now;
|
||||
public static string e57Authorization = "";
|
||||
public string GetE57Authorization(string inputData)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
{
|
||||
if (!GetSign(inputData))
|
||||
return "{\"code\":999,\"msg\":\"校验失败\"}";
|
||||
|
||||
if (dtAuthorizationExpireTime <= DateTime.Now || string.IsNullOrEmpty(e57Authorization))
|
||||
{
|
||||
//{"msg":"username required","code":500}
|
||||
//{"msg":"操作成功","code":200,"token":"eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImIxYTU3OWI2LTM0NWUtNDQwOC05ZjFiLTk0ZTUyOTIxMzlmZCJ9.3qvRXiWeCo_cIOHs6gbCHqDrmfCrH6XDOrMY0BjuUOIu3yVsCwFGVO0hT0A5Wssh_VFPJLouyb1moTcODt0vow"}
|
||||
var url = "https://po.e57.cn/prod-api/api/sys-api/internal/createTokenForUser";
|
||||
var data = "{\"username\":\"admin\"}";
|
||||
var html = HttpUtils.e57PostResponse(url, data, "");
|
||||
e57Authorization = RegexUtils.GetStringJson(ref html, "token").ParseToString();
|
||||
dtAuthorizationExpireTime = DateTime.Now.AddHours(2);
|
||||
//dtAuthorizationExpireTime = DateTime.Now.AddMinutes(10);
|
||||
return html.Replace("token", "authorization");
|
||||
}
|
||||
return "{\"code\":200,\"authorization\":\"" + e57Authorization + "\"}";
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
}
|
||||
|
||||
public string CheckUserLogin(string inputData)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
|
||||
@@ -54,7 +54,18 @@ namespace KJD_Web
|
||||
return jsonText;
|
||||
}
|
||||
}
|
||||
//GetE57Authorization
|
||||
[WebMethod]
|
||||
public void get_e57_authorization()
|
||||
{
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = new WXUserManage().GetE57Authorization(jsontext);
|
||||
|
||||
Context.Response.Write(result);
|
||||
Context.Response.End();
|
||||
}
|
||||
[WebMethod]
|
||||
public void user_login()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user