Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
24fb5863
Commit
24fb5863
authored
Apr 12, 2021
by
任晓松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
360钉钉机器人
parent
5f868ec5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
9 deletions
+6
-9
center-channel/app/base/service/impl/utilsSve/utils360Sve.js
+1
-1
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
+1
-1
center-channel/app/base/utils/dingClient.js
+3
-3
center-channel/app/config/settings.js
+1
-4
No files found.
center-channel/app/base/service/impl/utilsSve/utils360Sve.js
View file @
24fb5863
...
...
@@ -82,7 +82,7 @@ class utils360Sve extends AppServiceBase {
content
:
JSON
.
stringify
(
pushObj
),
//推送的参数信息
resultInfo
:
JSON
.
stringify
(
result
),
returnType
:
'1'
,
logLevel
:
'1'
,
logLevel
:
1
,
opTitle
:
"推送360信息返回成功"
});
}
else
{
...
...
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
View file @
24fb5863
...
...
@@ -1263,7 +1263,7 @@ class UtilsOrderService extends AppServiceBase {
};
this
.
utils360Sve
.
pushOrderStatus
(
pobj
);
//钉钉机器人
this
.
dingClient
.
gatewayPushByChannel
(
params
.
orderNo
,
pobj
.
appInfo
);
this
.
dingClient
.
gatewayPushByChannel
(
params
.
orderNo
,
"360云商机"
);
}
opOrderResult
.
data
=
null
;
return
opOrderResult
;
...
...
center-channel/app/base/utils/dingClient.js
View file @
24fb5863
...
...
@@ -22,10 +22,10 @@ class dingClient {
}
//渠道钉钉提醒
async
gatewayPushByChannel
(
orderNo
,
appInfo
)
{
let
gatewayUrl
=
setttings
.
dingRobot
Url
(
appInfo
.
uapp_id
);
async
gatewayPushByChannel
(
orderNo
,
appName
)
{
let
gatewayUrl
=
setttings
.
dingRobot
360
(
);
if
(
settings
.
env
!=
"dev"
&&
gatewayUrl
)
{
let
c
=
`注意提醒:
${
app
Info
.
app_n
ame
}
->有订单待处理,订单号
${
orderNo
}
,老板们加油,加油,加油 !!!`
let
c
=
`注意提醒:
${
app
N
ame
}
->有订单待处理,订单号
${
orderNo
}
,老板们加油,加油,加油 !!!`
let
t
=
new
Date
().
toLocaleString
()
this
.
execClient
.
execPost
({
"msgtype"
:
"text"
,
...
...
center-channel/app/config/settings.js
View file @
24fb5863
...
...
@@ -451,11 +451,8 @@ var settings = {
return
"http://139.196.159.202:8980/"
}
},
dingRobotUrl
:
function
(
uapp_id
)
{
if
(
uapp_id
==
50
){
//360云商机
dingRobot360
:
function
()
{
return
"https://oapi.dingtalk.com/robot/send?access_token=2947bdf6163288a5a5c654640e78ea718d21fcae6601efbb4edd53209abc1c45"
;
}
return
""
;
}
};
module
.
exports
=
settings
;
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