67 lines
2.2 KiB
C#
67 lines
2.2 KiB
C#
using Core.Web.WebHelper;
|
|
using Core.Web.WebHelper.UserRight;
|
|
using CRM.Core.BLL.Base;
|
|
using CRM.Core.BLL.EventBus.Events;
|
|
using CRM.Core.BLL.Res;
|
|
using CRM.Core.BLL.Soft;
|
|
using CRM.Core.BLL.Util;
|
|
using CRM.Core.BLL.Wx;
|
|
using CRM.Core.Common.EventBus;
|
|
using CRM.Core.Common.Layui;
|
|
using CRM.Core.Common.WebHelper;
|
|
using CRM.Core.DTO;
|
|
using CRM.Core.DTO.Ord;
|
|
using CRM.Core.Model.Entity;
|
|
using CRM.Core.Model.Enum;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
using WX.CRM.Common;
|
|
using CRM.Core.BLL.Level2;
|
|
using CRM.Core.BLL;
|
|
using CRM.Core.BLL.FB;
|
|
using CRM.Core.Model.EntityFB;
|
|
using CRM.Core.Model;
|
|
using System.Data;
|
|
using System.Configuration;
|
|
using Core.Web.App_Start;
|
|
using CRM.Core.BLL.Application.Order;
|
|
using Newtonsoft.Json;
|
|
using WX.CRM.WebHelper;
|
|
using Core.Web.Models;
|
|
|
|
namespace Core.Web.Controllers
|
|
{
|
|
public class MoGo2UrlController : BaseController
|
|
{
|
|
private SecurityHelper sHelper = new SecurityHelper();
|
|
private CACHE_BL cache_BL = new CACHE_BL();
|
|
|
|
[AuthorizeRedirect(RightsConfig.CONST_合规订单列表, ToolBarConfig.CONST_NotButton, true)]
|
|
[HttpGet]
|
|
public ActionResult Index()
|
|
{
|
|
string clientid = cache_BL.GetValue_Parameter(Parameter.Sys_OrderClientIdKey);
|
|
if (string.IsNullOrWhiteSpace(clientid))
|
|
{
|
|
clientid = "UPWEBSITE";
|
|
}
|
|
var moGo2Url = new MoGo2Url
|
|
{
|
|
eid = Eid,
|
|
url = "/admin/systems/exchangesystem/list.aspx",
|
|
time = DateTime.Now
|
|
};
|
|
string content = sHelper.encyptData(clientid, Utility.ConvertToJSON(moGo2Url));
|
|
string sign = sHelper.signData(clientid, content);
|
|
string url = cache_BL.GetValue_Parameter(Parameter.CMSLiuYanConfig);
|
|
ViewBag.Url = $"{url}?clientid={clientid}&content={HttpUtility.UrlEncode(content)}&sign={HttpUtility.UrlEncode(sign)}";
|
|
//ViewBag.Url = $"http://admin.test.dn8188.com:188/tools/go2url.html?clientid={clientid}&content={HttpUtility.UrlEncode(content)}&sign={HttpUtility.UrlEncode(sign)}";
|
|
return View();
|
|
}
|
|
}
|
|
} |