Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TakeStock
Overview
Overview
Details
Activity
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
pengjinyang
TakeStock
Commits
59866969
Commit
59866969
authored
Jun 22, 2019
by
pengjinyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回滚库存获取响应数据bug修复。
parent
bf96b9c8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
TakeStockService.cs
Service/TakeStock/TakeStockService.cs
+2
-2
No files found.
Service/TakeStock/TakeStockService.cs
View file @
59866969
...
@@ -139,7 +139,7 @@ namespace Service.TakeStock
...
@@ -139,7 +139,7 @@ namespace Service.TakeStock
{
{
var
responseContent
=
await
response
.
Content
.
ReadAsStringAsync
();
var
responseContent
=
await
response
.
Content
.
ReadAsStringAsync
();
var
jobj
=
JObject
.
Parse
(
responseContent
)[
"data"
];
var
jobj
=
JObject
.
Parse
(
responseContent
)[
"data"
];
isSuccess
=
jobj
[
"
R
esult"
].
ToObject
<
bool
>();
isSuccess
=
jobj
[
"
r
esult"
].
ToObject
<
bool
>();
TakeStockOrderLog
log
=
new
TakeStockOrderLog
();
TakeStockOrderLog
log
=
new
TakeStockOrderLog
();
log
.
OrderId
=
id
;
log
.
OrderId
=
id
;
if
(
isSuccess
)
if
(
isSuccess
)
...
@@ -149,7 +149,7 @@ namespace Service.TakeStock
...
@@ -149,7 +149,7 @@ namespace Service.TakeStock
log
.
State
=
TakeStockEnum
.
TSOrderState
.
释放库存
;
log
.
State
=
TakeStockEnum
.
TSOrderState
.
释放库存
;
log
.
Content
=
$"已释放占用库存。"
;
log
.
Content
=
$"已释放占用库存。"
;
var
cancelCodes
=
jobj
[
"
CancelCodes"
].
ToObject
<
string
>();
var
cancelCodes
=
jobj
[
"
cancelCodes"
].
ToObject
<
List
<
string
>
>();
if
(
cancelCodes
?.
Count
()
>
0
)
if
(
cancelCodes
?.
Count
()
>
0
)
log
.
Content
+=
"取消了配货的订单:"
+
string
.
Join
(
';'
,
cancelCodes
);
log
.
Content
+=
"取消了配货的订单:"
+
string
.
Join
(
';'
,
cancelCodes
);
}
}
...
...
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