File tree Expand file tree Collapse file tree
content/money/passive-income-protfolio Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,19 +45,18 @@ const fetch = require("node-fetch");
4545 console . log ( dataString ) ;
4646
4747 var options = {
48- url : 'https://app .webpushr.com/api /v1/notification/send/all' ,
48+ url : 'https://api .webpushr.com/v1/notification/send/all' ,
4949 method : 'POST' ,
5050 headers : headers ,
5151 body : dataString
5252 } ;
5353
5454 function callback ( error , response , body ) {
5555
56- if ( response . statusCode ! == 200 ) {
56+ if ( ! error && response . statusCode == 200 ) {
5757 console . log ( body ) ;
5858 } else {
59- console . log ( response ) ;
60- console . log ( body ) ;
59+ console . log ( error ) ;
6160 }
6261 }
6362
Original file line number Diff line number Diff line change 11---
22title : " 慢慢变富 # 组合月报(202105)"
33date : 2021-06-05
4- draft : true
4+ draft : false
55series : ["投资实证"]
66tags : ["投资组合", "指数定投", "ETF"]
77keywords : " 被动收入投资组合、指数定投、ETF定投"
You can’t perform that action at this time.
0 commit comments