Commit 4d2f2b9e authored by 黄奎's avatar 黄奎

页面修改

parent b97fcc46
......@@ -12,6 +12,7 @@ using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Web;
using Mall.Common.Enum;
namespace Mall.WebApi.Controllers
{
......@@ -33,11 +34,37 @@ namespace Mall.WebApi.Controllers
{
#region 读取post参数
var requestMsg = Request.HttpContext.Items[GlobalKey.UserPostInfo];
var requestParm = new RequestParm();
if (requestMsg != null)
if (requestMsg != null && !string.IsNullOrEmpty(requestMsg.ToString()))
{
requestParm = JsonConvert.DeserializeObject<RequestParm>(requestMsg.ToString());
JObject jobj = JObject.Parse(requestMsg.ToString());
requestParm = new RequestParm()
{
TenantId = jobj.GetInt("TenantId"),
MallBaseId = jobj.GetInt("MallBaseId"),
IsOpenSchool = jobj.GetInt("IsOpenSchool"),
cmd = jobj.GetStringValue("cmd"),
uid = jobj.GetStringValue("uid"),
timestamp = jobj.GetStringValue("timestamp"),
sign = jobj.GetStringValue("sign"),
token = jobj.GetStringValue("token"),
version = jobj.GetStringValue("version"),
languageId = jobj.GetInt("languageId"),
languageType = (LanguageTypeEnum)jobj.GetInt("languageType"),
EmpId = jobj.GetInt("EmpId"),
MiniAppId = jobj.GetStringValue("MiniAppId"),
OpenId = jobj.GetStringValue("OpenId"),
UserId = jobj.GetInt("UserId"),
ERPEmpId = jobj.GetInt("ERPEmpId"),
ERPBranchId = jobj.GetInt("ERPBranchId"),
ERPGroupId = jobj.GetInt("ERPGroupId"),
SmallShopsId = jobj.GetInt("SmallShopsId"),
EduStudentId = jobj.GetInt("EduStudentId"),
open_school = jobj.GetInt("open_school"),
erptoken = jobj.GetStringValue("erptoken"),
};
var newMsg = jobj.GetStringValue("msg") as object;
requestParm.msg = newMsg;
}
if (Request.HttpContext.Items[GlobalKey.TokenUserInfo] != null)
{
......@@ -72,7 +99,8 @@ namespace Mall.WebApi.Controllers
/// </summary>
public AppletUserInfo AppletUserInfo
{
get {
get
{
var parm = this.RequestParm;
AppletUserInfo userInfo = UserReidsCache.GetAppletUserLoginInfo(parm.uid);
return userInfo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment