Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
mall.oytour.com
Commits
4d2f2b9e
Commit
4d2f2b9e
authored
Sep 22, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
b97fcc46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
4 deletions
+32
-4
BaseController.cs
Mall.WebApi/Controllers/BaseController.cs
+32
-4
No files found.
Mall.WebApi/Controllers/BaseController.cs
View file @
4d2f2b9e
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment