File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed
Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 5959```
6060> 推荐使用` docker-compose ` 所以这里只介绍` docker-compose ` 使用方式
6161
62+ - ` Docker ` 安装
63+ 国内一键安装 ` sudo curl -sSL https://get.daocloud.io/docker | sh `
64+ 国外一键安装 ` sudo curl -sSL get.docker.com | sh `
65+
6266- ` docker-compose ` 安装(群晖nas docker自带安装了docker-compose)
6367```
6468sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
@@ -73,9 +77,6 @@ pip install docker-compose
7377
7478通过` docker-compose version ` 查看` docker-compose ` 版本,确认是否安装成功。
7579
76- - ` Docker ` 安装
77- 国内一键安装 ` sudo curl -sSL https://get.daocloud.io/docker | sh `
78- 国外一键安装 ` sudo curl -sSL get.docker.com | sh `
7980
8081### 如果需要使用 docker 多个账户独立并发执行定时任务,[ 参考这里] ( https://github.com/iouAkira/scripts/blob/patch-1/docker/docker%E5%A4%9A%E8%B4%A6%E6%88%B7%E4%BD%BF%E7%94%A8%E7%8B%AC%E7%AB%8B%E5%AE%B9%E5%99%A8%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E.md#%E4%BD%BF%E7%94%A8%E6%AD%A4%E6%96%B9%E5%BC%8F%E8%AF%B7%E5%85%88%E7%90%86%E8%A7%A3%E5%AD%A6%E4%BC%9A%E4%BD%BF%E7%94%A8docker%E5%8A%9E%E6%B3%95%E4%B8%80%E7%9A%84%E4%BD%BF%E7%94%A8%E6%96%B9%E5%BC%8F )
8182
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ async function jdFruit() {
127127 $ . logErr ( e ) ;
128128 const errMsg = `京东账号${ $ . index } ${ $ . nickName || $ . UserName } \n任务执行异常,请检查执行日志 ‼️‼️` ;
129129 if ( $ . isNode ( ) ) await notify . sendNotify ( `${ $ . name } ` , errMsg ) ;
130- $ . msg ( $ . name , '' , `京东账号 ${ $ . index } ${ $ . nickName || $ . UserName } \n ${ errMsg } ` )
130+ $ . msg ( $ . name , '' , `${ errMsg } ` )
131131 }
132132 await showMsg ( ) ;
133133}
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ async function jdPet() {
143143 $ . logErr ( e )
144144 const errMsg = `京东账号${ $ . index } ${ $ . nickName || $ . UserName } \n任务执行异常,请检查执行日志 ‼️‼️` ;
145145 if ( $ . isNode ( ) ) await notify . sendNotify ( `${ $ . name } ` , errMsg ) ;
146- $ . msg ( $ . name , '' , `京东账号 ${ $ . index } ${ $ . nickName || $ . UserName } \n ${ errMsg } ` )
146+ $ . msg ( $ . name , '' , `${ errMsg } ` )
147147 }
148148}
149149// 收取所有好感度
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ async function jdPlantBean() {
9090 console . log ( `获取任务及基本信息` )
9191 await plantBeanIndex ( ) ;
9292 // console.log(plantBeanIndexResult.data.taskList);
93- if ( $ . plantBeanIndexResult && $ . plantBeanIndexResult . code === '0' ) {
93+ if ( $ . plantBeanIndexResult && $ . plantBeanIndexResult . code === '0' && $ . plantBeanIndexResult . data ) {
9494 const shareUrl = $ . plantBeanIndexResult . data . jwordShareInfo . shareUrl
9595 $ . myPlantUuid = getParam ( shareUrl , 'plantUuid' )
9696 console . log ( `\n【京东账号${ $ . index } (${ $ . UserName } )的${ $ . name } 好友互助码】${ $ . myPlantUuid } \n` ) ;
@@ -118,7 +118,7 @@ async function jdPlantBean() {
118118 $ . logErr ( e ) ;
119119 const errMsg = `京东账号${ $ . index } ${ $ . nickName || $ . UserName } \n任务执行异常,请检查执行日志 ‼️‼️` ;
120120 if ( $ . isNode ( ) ) await notify . sendNotify ( `${ $ . name } ` , errMsg ) ;
121- $ . msg ( $ . name , '' , `京东账号 ${ $ . index } ${ $ . nickName || $ . UserName } \n ${ errMsg } ` )
121+ $ . msg ( $ . name , '' , `${ errMsg } ` )
122122 }
123123}
124124async function doGetReward ( ) {
You can’t perform that action at this time.
0 commit comments