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
73f801a4
Commit
73f801a4
authored
Sep 23, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
给客人通知
parent
3efceb0d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
2 deletions
+48
-2
MobileCodeTypeEnum.cs
Mall.Common/Enum/MobileCodeTypeEnum.cs
+6
-2
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+21
-0
UserCommonModule.cs
Mall.Module.User/UserCommonModule.cs
+21
-0
No files found.
Mall.Common/Enum/MobileCodeTypeEnum.cs
View file @
73f801a4
...
...
@@ -86,7 +86,11 @@ namespace Mall.Common.Enum
/// 导游通知
/// </summary>
[
EnumField
(
"SMS_201722097"
)]
GuideMsg
=
15
GuideMsg
=
15
,
/// <summary>
/// 司导客人通知
/// </summary>
[
EnumField
(
"SMS_203186595"
)]
SDClientMsg
=
16
}
}
Mall.Module.Product/OrderModule.cs
View file @
73f801a4
...
...
@@ -11384,6 +11384,27 @@ namespace Mall.Module.Product
};
SMSService
.
SendMsg
(
Telephone
,
PhoneMessage
,
EnumHelper
.
GetEnumName
(
mobileCodeType
));
}
#
region
给客人通知
try
{
if
(
ValidateHepler
.
IsMobileNumber
(
orderModel
.
Mobile
))
{
MobileCodeTypeEnum
mobileCodeType1
=
MobileCodeTypeEnum
.
SDClientMsg
;
//客人通知
object
PhoneMessage
=
new
{
orderModel
.
OrderNo
,
TripTime
=
item
.
TripSTime
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm"
)
+
" "
+
((
item
.
UseDay
??
0
)
==
Convert
.
ToDecimal
(
0.5
)
?
"半"
:
Convert
.
ToInt32
(
item
.
UseDay
??
0
).
ToString
())
+
"日"
,
guideModel
.
Name
,
Tel
=
Telephone
};
SMSService
.
SendMsg
(
orderModel
.
Mobile
,
PhoneMessage
,
EnumHelper
.
GetEnumName
(
mobileCodeType1
));
}
}
catch
(
Exception
)
{
}
#
endregion
}
}
}
...
...
Mall.Module.User/UserCommonModule.cs
View file @
73f801a4
...
...
@@ -526,6 +526,27 @@ namespace Mall.Module.User
};
SMSService
.
SendMsg
(
Telephone
,
PhoneMessage
,
EnumHelper
.
GetEnumName
(
mobileCodeType
));
}
#
region
给客人通知
try
{
if
(
ValidateHepler
.
IsMobileNumber
(
oldOrder
.
Mobile
))
{
MobileCodeTypeEnum
mobileCodeType1
=
MobileCodeTypeEnum
.
SDClientMsg
;
//客人通知
object
PhoneMessage
=
new
{
oldOrder
.
OrderNo
,
TripTime
=
item
.
TripSTime
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm"
)
+
" "
+
((
item
.
UseDay
??
0
)
==
Convert
.
ToDecimal
(
0.5
)
?
"半"
:
Convert
.
ToInt32
(
item
.
UseDay
??
0
).
ToString
())
+
"日"
,
guideModel
.
Name
,
Tel
=
Telephone
};
SMSService
.
SendMsg
(
oldOrder
.
Mobile
,
PhoneMessage
,
EnumHelper
.
GetEnumName
(
mobileCodeType1
));
}
}
catch
(
Exception
)
{
}
#
endregion
}
}
}
...
...
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