Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ashermed_old_push
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
backend
ashermed_old_push
Commits
6868fc54
Commit
6868fc54
authored
Feb 22, 2023
by
席世权
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增阿里模板短信推送
parent
1af5099b
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
10 deletions
+13
-10
SysPushDAL.cs
PushInfo.Act/DAL/MySql/SysPushDAL.cs
+1
-1
ProcessTaskBLL.cs
PushInfo.Core/BLL/ProcessTaskBLL.cs
+6
-6
SmsBLL.cs
PushInfo.Core/BLL/SmsBLL.cs
+2
-0
SendController.cs
PushPf.Api/Controllers/SendController.cs
+1
-0
PushConfigController.cs
...ound/Areas/BackGround/Controllers/PushConfigController.cs
+1
-1
PushPlatform.Background.csproj
PushPlatform.Background/PushPlatform.Background.csproj
+2
-2
No files found.
PushInfo.Act/DAL/MySql/SysPushDAL.cs
View file @
6868fc54
...
...
@@ -24,7 +24,7 @@ namespace PushInfo.Act.DAL.MySql
{
string
selectSql
=
@"select Id,Name_Des,Push_Target,Push_Style,Push_Title,Push_Body,Push_Type,Push_Cycle,Push_Month,Push_Which,Push_Action,Push_ActionType,Push_IosLink,Push_AndLink,Push_WebLink,Push_WechatLink,create_time
from sys_push
where Is_Deleted = 0 and PushSys_ProId = @projectId"
;
where Is_Deleted = 0 and PushSys_ProId = @projectId
order by Create_Time desc
"
;
string
totalSql
=
@"select count(*) from sys_push where Is_Deleted = 0 and PushSys_ProId = @projectId"
;
Dictionary
<
string
,
object
>
condition
=
new
Dictionary
<
string
,
object
>{
{
"@projectId"
,
projectId
}
};
return
PagedFetchAsync
<
Sys_Push
>(
selectSql
,
totalSql
,
condition
,
pageIndex
,
10
).
Result
;
...
...
PushInfo.Core/BLL/ProcessTaskBLL.cs
View file @
6868fc54
...
...
@@ -596,12 +596,12 @@ namespace PushInfo.Core.BLL
{
try
{
ConfirmSendTask
(
mapProPush
,
data
);
//
if (mapProPush.Push_Style.IndexOf(((int)PushStyle.APP).ToString()) > -1)
//
MqNameTwo = MqName;
//
else if (mapProPush.Push_Style.IndexOf(((int)PushStyle.极光App).ToString()) > -1)
//
MqNameTwo = MqNameUrora;
//
ActiveMQHelper.CreateMQProducer(MqNameTwo, MQMode.Queue, new DataCenterMessage { ObjectID = "", MsgData = mapProPush.ToJson(), MsgSecondData = data.ToJson() }, sendDate);
//
ConfirmSendTask(mapProPush, data);
if
(
mapProPush
.
Push_Style
.
IndexOf
(((
int
)
PushStyle
.
APP
).
ToString
())
>
-
1
)
MqNameTwo
=
MqName
;
else
if
(
mapProPush
.
Push_Style
.
IndexOf
(((
int
)
PushStyle
.
极光
App
).
ToString
())
>
-
1
)
MqNameTwo
=
MqNameUrora
;
ActiveMQHelper
.
CreateMQProducer
(
MqNameTwo
,
MQMode
.
Queue
,
new
DataCenterMessage
{
ObjectID
=
""
,
MsgData
=
mapProPush
.
ToJson
(),
MsgSecondData
=
data
.
ToJson
()
},
sendDate
);
}
catch
(
Exception
e
)
{
...
...
PushInfo.Core/BLL/SmsBLL.cs
View file @
6868fc54
...
...
@@ -82,6 +82,8 @@ namespace PushInfo.Core.BLL
{
using
(
PushPlatform
.
Common
.
NewSmsService
.
SmsServiceClient
sms
=
new
PushPlatform
.
Common
.
NewSmsService
.
SmsServiceClient
())
{
if
(
string
.
IsNullOrEmpty
(
param
.
TemplateParam
))
param
.
TemplateParam
=
param
.
PushBody
;
var
r
=
sms
.
AliSendCode
(
smsProjectId
,
param
.
SmsMessageSigna
,
param
.
TemplateCode
,
param
.
Mobile
,
(
param
.
TemplateParam
??
""
));
smsresult
=
r
;
if
(
r
==
"OK"
)
...
...
PushPf.Api/Controllers/SendController.cs
View file @
6868fc54
...
...
@@ -39,6 +39,7 @@ namespace PushPf.Api.Controllers
}
catch
(
Exception
ex
)
{
LogHelper
.
Debug
(
JsonHelper
.
ToJson
(
valModel
));
LogHelper
.
Error
(
ex
);
model
.
DetailedStatus
=
DetailedStatusCode
.
Fail
;
model
.
DetailedMessage
=
"异常,请联系管理员"
;
...
...
PushPlatform.Background/Areas/BackGround/Controllers/PushConfigController.cs
View file @
6868fc54
...
...
@@ -29,7 +29,7 @@ namespace PushPlatform.Background.Areas.BackGround.Controllers
PageListModel
<
PushConfigResult
>
pageList
=
bll
.
GetPushTempletList
(
page
,
user
.
CurrentProjectId
);
ViewData
[
"IS_ADMIN"
]
=
true
;
ViewData
[
"PAGE_LIST"
]
=
pageList
.
Data
;
ViewData
[
"PAGE_COUNT"
]
=
pageList
.
TotalPageCount
+
1
;
ViewData
[
"PAGE_COUNT"
]
=
pageList
.
TotalPageCount
;
ViewData
[
"CURRENT_PAGE"
]
=
pageList
.
CurrentPage
;
ViewData
[
"PROJ_ID"
]
=
""
;
...
...
PushPlatform.Background/PushPlatform.Background.csproj
View file @
6868fc54
...
...
@@ -17,7 +17,7 @@
<AssemblyName>
PushPlatform.Background
</AssemblyName>
<TargetFrameworkVersion>
v4.5
</TargetFrameworkVersion>
<MvcBuildViews>
false
</MvcBuildViews>
<UseIISExpress>
fals
e
</UseIISExpress>
<UseIISExpress>
tru
e
</UseIISExpress>
<IISExpressSSLPort
/>
<IISExpressAnonymousAuthentication
/>
<IISExpressWindowsAuthentication
/>
...
...
@@ -687,7 +687,7 @@
<AutoAssignPort>
True
</AutoAssignPort>
<DevelopmentServerPort>
19013
</DevelopmentServerPort>
<DevelopmentServerVPath>
/
</DevelopmentServerVPath>
<IISUrl>
http://localhost
/PushPlatform.Background
</IISUrl>
<IISUrl>
http://localhost
:19013/
</IISUrl>
<NTLMAuthentication>
False
</NTLMAuthentication>
<UseCustomServer>
False
</UseCustomServer>
<CustomServerUrl>
...
...
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