Skip to content

Commit

Permalink
修改音乐人任务id
Browse files Browse the repository at this point in the history
  • Loading branch information
chen310 committed Apr 18, 2022
1 parent 0cbda4f commit 954db1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions config.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,13 @@
/* 音乐人任务,登录音乐人中心默认开启,其他按需开启 */
"musician_task": {
/* 登录音乐人中心 */
"749006": {
"800004": {
"taskName": "音乐人中心签到",
"module": "musicianSignin",
"enable": true
},
/* 发布3条动态 */
"740004": {
"801005": {
"taskName": "发布动态",
"module": "publishEvent",
"enable": false,
Expand Down Expand Up @@ -258,7 +258,7 @@
/* 发布后自动删除 */
"delete": true
},
"755001": {
"807006": {
"taskName": "回复粉丝私信",
"module": "sendPrivateMsg",
"enable": false,
Expand All @@ -274,7 +274,7 @@
"module": "watchCollegeLesson",
"enable": false
},
"740005": {
"797005": {
"taskName": "访问自己的云圈",
"module": "visitMyCircle",
"enable": false,
Expand All @@ -283,7 +283,7 @@
"circleId": ""
},
/* 发布Mlog:根据填写的歌曲ID,自动下载歌曲的专辑图,并上传 */
"744005": {
"811003": {
"taskName": "发布mlog",
"module": "publishMlog",
/* 是否开启任务 */
Expand Down
4 changes: 2 additions & 2 deletions updateconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def migrateTask(setting, template):

if 'musician_task' in setting:
musician_task = setting['musician_task']
kv = {'登录音乐人中心': '749006', '发布动态': '740004', '发布主创说': '755000', '回复粉丝评论': '732004', '回复粉丝私信': '755001',
'399000': '749006', '398000': '740004', '396002': '755000', '393001': '732004', '395002': '755001'}
kv = {'登录音乐人中心': '800004', '发布动态': '801005', '发布主创说': '755000', '回复粉丝评论': '732004', '回复粉丝私信': '807006',
'749006': '800004', '740004': '801005', '396002': '755000', '393001': '732004', '755001': '807006', '740005': '797005', '744005': '811003'}
for key in kv:
if key in musician_task and kv[key] in template['musician_task']:
musician_task[kv[key]] = updateConfig(musician_task[key], template['musician_task'][kv[key]])
Expand Down

0 comments on commit 954db1f

Please sign in to comment.