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
ae2fc86b
Commit
ae2fc86b
authored
Apr 02, 2022
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
into sdzq-ld
parents
e7cef4c8
f6fd9a26
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletion
+25
-1
JsonHelper.cs
Mall.Common/Plugin/JsonHelper.cs
+23
-0
EducationController.cs
Mall.WebApi/Controllers/Education/EducationController.cs
+1
-1
Startup.cs
Mall.WebApi/Startup.cs
+1
-0
No files found.
Mall.Common/Plugin/JsonHelper.cs
View file @
ae2fc86b
...
...
@@ -232,5 +232,28 @@ namespace Mall.Common.Plugin
);
return
JsonConvert
.
DeserializeObject
(
json
);
}
/// <summary>
/// 判断字符串是不是JSON格式
/// </summary>
/// <param name="json"></param>
/// <returns></returns>
public
static
bool
IsJson
(
string
json
)
{
bool
flag
=
false
;
if
(!
string
.
IsNullOrEmpty
(
json
))
{
try
{
_
=
(
JObject
)
JsonConvert
.
DeserializeObject
(
json
);
flag
=
true
;
}
catch
{
flag
=
false
;
}
}
return
flag
;
}
}
}
Mall.WebApi/Controllers/Education/EducationController.cs
View file @
ae2fc86b
...
...
@@ -2892,7 +2892,7 @@ namespace Mall.WebApi.Controllers.Education
public
ApiResult
UpdateActivityIncome
()
{
//int OrderId, decimal Money, int ActivityId
JObject
jObj
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
JObject
jObj
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
()
.
Replace
(
@"\r\n"
,
""
)
);
int
OrderId
=
jObj
.
GetInt
(
"OrderId"
,
0
);
decimal
Money
=
jObj
.
GetDecimal
(
"Money"
);
decimal
PlatformTax
=
jObj
.
GetDecimal
(
"PlatformTax"
);
...
...
Mall.WebApi/Startup.cs
View file @
ae2fc86b
...
...
@@ -57,6 +57,7 @@ namespace Mall.WebApi
{
"http://localhost:8081"
,
"http://127.0.0.1:8081"
,
"http://127.0.0.1:8085"
,
"http://localhost:8181"
,
"http://localhost:8080"
,
"http://127.0.0.1:8080"
,
...
...
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