feat: web_img
This commit is contained in:
@@ -170,6 +170,7 @@ async def img(
|
||||
requestid: Union[str, None] = Header(default=None),
|
||||
uid: Union[str, None] = Header(default=None),
|
||||
):
|
||||
# print("console :,", "appid", appid, "bid", bid, "requestid", requestid, "uid", uid)
|
||||
print('query',query)
|
||||
print('query[query]',query["query"])
|
||||
|
||||
@@ -195,7 +196,8 @@ async def img(
|
||||
# 以时间戳命名
|
||||
now =str(time.time())
|
||||
save_encoded_image(res.json()['images'][0], f'img/{now}.png')
|
||||
response=f'http://aiimg.yidooplanet.com/{now}.png'
|
||||
# 网络图片
|
||||
response=f'#web_img https://aiimg.yidooplanet.com/{now}.png'
|
||||
print('response',response)
|
||||
# return responseimg
|
||||
|
||||
|
||||
Reference in New Issue
Block a user