From 8f38cad96a145ca16e9ff35a0892eaf46ab2d7fa Mon Sep 17 00:00:00 2001 From: eric Date: Sun, 6 Aug 2023 21:03:33 +0800 Subject: [PATCH] feat: web_img --- callback.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/callback.py b/callback.py index 0035518..6a46efb 100644 --- a/callback.py +++ b/callback.py @@ -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