master
pan 4 years ago
parent e2dfa02c46
commit d64363e720
  1. 6
      routes/index.js

@ -23,7 +23,9 @@ function error(message){
function dingding(message){ function dingding(message){
info(message) info(message)
fetch(`https://oapi.dingtalk.com/robot/send?access_token=${access_token}`,{ const url=`https://oapi.dingtalk.com/robot/send?access_token=${access_token}`
info(url)
fetch(url,{
method:'POST', method:'POST',
headers:{ headers:{
'Content-Type':'application/json' 'Content-Type':'application/json'
@ -34,7 +36,7 @@ function dingding(message){
content:message content:message
} }
} }
}).then(res=>res.json()).then(res=>info(`钉钉推送结果:${res}`)).catch(err=>error(err)) }).then(res=>res.json()).then(res=>info(`钉钉推送结果:${JSON.stringify(res ,null, 2)}`)).catch(err=>error(err))
} }
//记录开始部署的时间 //记录开始部署的时间
const startDeploy={} const startDeploy={}

Loading…
Cancel
Save