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
a937a406
Commit
a937a406
authored
Jun 23, 2020
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
parents
abca7b79
ce69a476
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
22 deletions
+22
-22
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+15
-15
UserCommonModule.cs
Mall.Module.User/UserCommonModule.cs
+5
-5
OrderController.cs
Mall.WebApi/Controllers/Product/OrderController.cs
+2
-2
No files found.
Mall.Module.Product/OrderModule.cs
View file @
a937a406
...
...
@@ -5359,16 +5359,16 @@ namespace Mall.Module.Product
string
goodsName
=
dlist
.
FirstOrDefault
().
GoodsName
;
if
(
dlist
.
Count
>
1
)
{
if
(
goodsName
.
Length
>
12
)
if
(
goodsName
.
Length
>
6
)
{
goodsName
=
goodsName
.
Substring
(
0
,
12
)
+
".."
;
goodsName
=
goodsName
.
Substring
(
0
,
6
)
;
}
goodsName
+=
"等"
+
dlist
.
Count
+
"件
商品
"
;
goodsName
+=
"等"
+
dlist
.
Count
+
"件"
;
}
else
{
if
(
goodsName
.
Length
>
1
8
)
if
(
goodsName
.
Length
>
1
0
)
{
goodsName
=
goodsName
.
Substring
(
0
,
1
8
)
+
".."
;
goodsName
=
goodsName
.
Substring
(
0
,
1
0
)
;
}
}
if
(
demodel
.
Type
==
1
)
...
...
@@ -5591,17 +5591,17 @@ namespace Mall.Module.Product
string
goodsName
=
detailList
.
FirstOrDefault
().
GoodsName
;
if
(
detailList
.
Count
>
1
)
{
if
(
goodsName
.
Length
>
12
)
if
(
goodsName
.
Length
>
6
)
{
goodsName
=
goodsName
.
Substring
(
0
,
12
)
+
".."
;
goodsName
=
goodsName
.
Substring
(
0
,
6
)
;
}
goodsName
+=
"等"
+
detailList
.
Count
+
"件
商品
"
;
goodsName
+=
"等"
+
detailList
.
Count
+
"件"
;
}
else
{
if
(
goodsName
.
Length
>
1
8
)
if
(
goodsName
.
Length
>
1
0
)
{
goodsName
=
goodsName
.
Substring
(
0
,
1
8
)
+
".."
;
goodsName
=
goodsName
.
Substring
(
0
,
1
0
)
;
}
}
new
MiniProgramMsgModule
().
SendOrderCancelMsg
(
tenantId
,
mallBaseId
,
umodel
.
OpenId
,
omodel
.
OrderNo
,
"订单已取消"
,
(
omodel
.
Income
??
0
).
ToString
(),
goodsName
);
...
...
@@ -5812,17 +5812,17 @@ namespace Mall.Module.Product
string
goodsName
=
detailList
.
FirstOrDefault
().
GoodsName
;
if
(
detailList
.
Count
>
1
)
{
if
(
goodsName
.
Length
>
12
)
if
(
goodsName
.
Length
>
6
)
{
goodsName
=
goodsName
.
Substring
(
0
,
12
)
+
".."
;
goodsName
=
goodsName
.
Substring
(
0
,
6
)
;
}
goodsName
+=
"等"
+
detailList
.
Count
+
"件
商品
"
;
goodsName
+=
"等"
+
detailList
.
Count
+
"件"
;
}
else
{
if
(
goodsName
.
Length
>
1
8
)
if
(
goodsName
.
Length
>
1
0
)
{
goodsName
=
goodsName
.
Substring
(
0
,
1
8
)
+
".."
;
goodsName
=
goodsName
.
Substring
(
0
,
1
0
)
;
}
}
new
MiniProgramMsgModule
().
SendOrderCancelMsg
(
tenantId
,
mallBaseId
,
umodel
.
OpenId
,
omodel
.
OrderNo
,
"订单已取消"
,
(
omodel
.
Income
??
0
).
ToString
(),
goodsName
);
...
...
Mall.Module.User/UserCommonModule.cs
View file @
a937a406
...
...
@@ -329,17 +329,17 @@ namespace Mall.Module.User
string
goodsName
=
orderGoodsList
.
FirstOrDefault
().
GoodsName
;
if
(
orderGoodsList
.
Count
>
1
)
{
if
(
goodsName
.
Length
>
12
)
if
(
goodsName
.
Length
>
6
)
{
goodsName
=
goodsName
.
Substring
(
0
,
12
)
+
".."
;
goodsName
=
goodsName
.
Substring
(
0
,
6
)
;
}
goodsName
+=
"等"
+
orderGoodsList
.
Count
+
"件
商品
"
;
goodsName
+=
"等"
+
orderGoodsList
.
Count
+
"件"
;
}
else
{
if
(
goodsName
.
Length
>
1
8
)
if
(
goodsName
.
Length
>
1
0
)
{
goodsName
=
goodsName
.
Substring
(
0
,
1
8
)
+
".."
;
goodsName
=
goodsName
.
Substring
(
0
,
1
0
)
;
}
}
appletWeChatModule
.
SendOrderSucceedMsg
(
oldOrder
.
TenantId
,
oldOrder
.
MallBaseId
,
umodel
.
OpenId
,
oldOrder
.
OrderNo
,
oldOrder
.
CreateDate
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
),
(
oldOrder
.
Income
??
0
).
ToString
(),
goodsName
);
...
...
Mall.WebApi/Controllers/Product/OrderController.cs
View file @
a937a406
...
...
@@ -1649,9 +1649,9 @@ namespace Mall.WebApi.Controllers.MallBase
var
detailModel
=
orderModule
.
GetOrderDetailInfo
(
ReModel
.
OrderDetialId
??
0
);
string
goodsName
=
detailModel
?.
GoodsName
??
""
;
if
(
goodsName
.
Length
>
1
8
)
if
(
goodsName
.
Length
>
1
0
)
{
goodsName
=
goodsName
.
Substring
(
0
,
1
8
)
+
".."
;
goodsName
=
goodsName
.
Substring
(
0
,
1
0
)
;
}
var
umodel
=
orderModule
.
GetMemberUserInfo
(
orderModel
.
UserId
??
0
);
if
(
goodsName
!=
""
&&
umodel
!=
null
)
...
...
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