Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
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
黄奎
Education
Commits
bc9c22d7
Commit
bc9c22d7
authored
Aug 30, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推送调整
parent
4b230b4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
19 deletions
+4
-19
VisitorReserveModule.cs
Edu.Module.Duty/VisitorReserveModule.cs
+3
-19
ScheduleCourseRepository.cs
Edu.Repository/Scroll/ScheduleCourseRepository.cs
+1
-0
No files found.
Edu.Module.Duty/VisitorReserveModule.cs
View file @
bc9c22d7
...
...
@@ -30,6 +30,7 @@ using Edu.Model.Entity.Reserve;
using
Edu.Model.Public
;
using
Edu.Module.User
;
using
Senparc.Weixin.MP.AdvancedAPIs
;
using
Edu.Model.ViewModel.Sell
;
namespace
Edu.Module.Duty
{
...
...
@@ -313,31 +314,14 @@ namespace Edu.Module.Duty
if
(
queryNotifyManager
!=
null
&&
queryNotifyManager
.
Count
>
0
)
{
queryNotifyManager
.
ForEach
(
x
=>
{
var
path
=
$"/h5page/TrialClass?Id=
{
model
.
Id
}
"
;
//这个地址是欠费的通知地址,后续有H5需要改
path
=
HttpUtility
.
UrlEncode
(
path
);
string
newUrl
=
$"
{
Config
.
ErpUrl
}
/login?loginId=
{
x
.
Id
}
&target=
{
path
}
"
;
Common
.
Plugin
.
LogHelper
.
WriteInfo
(
"试听推送::"
+
newUrl
);
string
markdownContent
=
$"<font color='info'>学员试听课通知</font>\n>**概要信息** \n>学员名称:<font color='warning'>
{
guestModel
.
StuName
}
(
{
guestModel
.
StuRealMobile
}
)</font>\n>预约时间:<font color='warning'>
{
Common
.
ConvertHelper
.
FormatDate
(
model
.
ReservationDate
)}
</font>\n>试听需求:<font color='warning'>
{
Common
.
Plugin
.
StringHelper
.
FilterHtml
(
model
.
Demand
)}
次课)</font>\n>请 点 击:[查看详情](
{
newUrl
}
)"
;
Common
.
Message
.
PushMessageModel
modelWork
=
new
Common
.
Message
.
PushMessageModel
()
{
CategoryId
=
PushMessageCategoryEnum
.
ReserveClass
,
Content
=
markdownContent
,
CoverImg
=
""
,
CreateByName
=
"系统"
,
JumpUrl
=
""
,
WorkMsgType
=
"markdown"
,
SendTime
=
DateTime
.
Now
,
SendType
=
0
,
Title
=
"学员试听课通知"
,
Platform
=
5
,
ReceiveId
=
x
.
WorkUserId
??
""
};
List
<
Common
.
Message
.
PushMessageModel
>
pushList
=
new
List
<
Common
.
Message
.
PushMessageModel
>()
{
modelWork
};
new
Common
.
Message
.
MessageHelper
().
SendMessage
(
pushList
);
LogHelper
.
WriteInfo
(
"学员试听课通知:"
+
JsonHelper
.
Serialize
(
pushList
))
;
var
content
=
$"<font color='info'>学员试听课通知</font>\n>**概要信息** \n>学员名称:<font color='warning'>
{
guestModel
.
StuName
}
(
{
guestModel
.
StuRealMobile
}
)</font>\n>预约时间:<font color='warning'>
{
Common
.
ConvertHelper
.
FormatDate
(
model
.
ReservationDate
)}
</font>\n>试听需求:<font color='warning'>
{
Common
.
Plugin
.
StringHelper
.
FilterHtml
(
model
.
Demand
)}
</font>\n>请 点 击:[查看详情](
{
newUrl
}
)"
;
PushWorkChatHelper
.
PushToWorkChat
(
content
,
x
.
WorkUserId
,
"学员试听课通知"
);
});
}
#
endregion
...
...
Edu.Repository/Scroll/ScheduleCourseRepository.cs
View file @
bc9c22d7
...
...
@@ -43,6 +43,7 @@ WHERE 1=1 AND B.OrderState=1 AND A.GuestState in(1,5) AND B.OrderType=1 AND E.Cl
{
builder
.
AppendFormat
(
" AND cs.CourseRate IN({0}) "
,
(
int
)
query
.
QCourseRate
);
}
builder
.
AppendFormat
(
" ORDER BY A.OrderId DESC "
);
var
list
=
Get
<
SchedulePlanResult
>(
builder
.
ToString
()).
ToList
();
...
...
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