From 121ac9ea19660c573e5c153528337df6b1e1fd4c Mon Sep 17 00:00:00 2001 From: SiHuan <49349784+Si-Huan@users.noreply.github.com> Date: Tue, 25 Aug 2020 22:54:48 +0800 Subject: [PATCH] Update qymusic.py --- worker/qymusic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worker/qymusic.py b/worker/qymusic.py index 3d59627..a616040 100644 --- a/worker/qymusic.py +++ b/worker/qymusic.py @@ -29,9 +29,9 @@ class Ans(StdAns): # print(resp) if resp['data']['song']['totalnum'] == 0: return '啊嘞嘞好像没有诶qaq' - mid = resp['data']['song']['list'][0]['mid'] - # id = resp['data']['song']['list'][0]['id'] - msg = f'[CQ:music,type=qq,id={mid}]' + # mid = resp['data']['song']['list'][0]['mid'] + id = resp['data']['song']['list'][0]['id'] + msg = f'[CQ:music,type=qq,id={id}]' # mname = resp['data']['song']['list'][0]['name'] # msg = '[CQ:share,url=https://y.qq.com/n/yqq/song/' + str(mid) + '.html,title=' + str(mname) + ']' except Exception as e: