mirror of
https://github.com/star-inc/star_yuuki_bot.git
synced 2024-11-10 09:12:44 +08:00
Update for WA
This commit is contained in:
parent
9112d55d92
commit
76532eeae3
1 changed files with 3 additions and 1 deletions
|
@ -134,6 +134,7 @@ class Yuuki_WebAdmin:
|
|||
"name": Yuuki_Handle.profile.displayName,
|
||||
"status": Yuuki_Handle.profile.statusMessage,
|
||||
"picture": f"{Yuuki_Handle.LINE_Media_server}/{Yuuki_Handle.profile.pictureStatus}"
|
||||
if Yuuki_Handle.profile.pictureStatus is not None else None,
|
||||
}
|
||||
if request.method == "PUT" and "name" in request.values and "status" in request.values:
|
||||
Yuuki_Handle.profile.displayName = request.values["name"]
|
||||
|
@ -204,7 +205,8 @@ class Yuuki_WebAdmin:
|
|||
"id": profile.mid,
|
||||
"name": profile.displayName,
|
||||
"status": profile.statusMessage,
|
||||
"picture": f"{Yuuki_Handle.LINE_Media_server}/{profile.pictureStatus}",
|
||||
"picture": f"{Yuuki_Handle.LINE_Media_server}/{profile.pictureStatus}"
|
||||
if profile.pictureStatus is not None else None,
|
||||
}
|
||||
|
||||
return [
|
||||
|
|
Loading…
Reference in a new issue