File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 27
27
if config .ps_only_su :
28
28
usage += "\n 注意:仅SuperUser可以使用此指令"
29
29
30
- __version__ = "2.0.0.post3 "
30
+ __version__ = "2.0.0.post4 "
31
31
__plugin_meta__ = PluginMetadata (
32
32
name = "PicStatus" ,
33
33
description = "以图片形式显示当前设备的运行状态" ,
Original file line number Diff line number Diff line change @@ -46,12 +46,16 @@ async def gm():
46
46
proxies = config .proxy ,
47
47
timeout = config .ps_req_timeout ,
48
48
) as cli :
49
- url = (
50
- (await cli .get ("https://api.gumengya.com/Api/DmImg" ))
49
+ return (
50
+ (
51
+ await cli .get (
52
+ "https://api.gumengya.com/Api/DmImg" ,
53
+ params = {"format" : "image" },
54
+ )
55
+ )
51
56
.raise_for_status ()
52
- .json ()[ "data" ][ "url" ]
57
+ .content
53
58
)
54
- return (await cli .get (url )).raise_for_status ().content
55
59
56
60
57
61
@bg_provider
You can’t perform that action at this time.
0 commit comments