From 4a1690ddaed3156066148fd5558fc1fffa5dc5dc Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 28 Apr 2026 21:18:13 +0800 Subject: [PATCH] bugfix --- wwwroot/upload_asset/index.dspy | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 wwwroot/upload_asset/index.dspy diff --git a/wwwroot/upload_asset/index.dspy b/wwwroot/upload_asset/index.dspy new file mode 100644 index 0000000..1e1ee77 --- /dev/null +++ b/wwwroot/upload_asset/index.dspy @@ -0,0 +1,15 @@ +upappid = 'wetokenai' +apiname = 'uplaod_asset' +uapi = UpAppApi(request) +userid = await get_userid() +try: + d = await uapi.call(uappid, apiname, userid, params=params_kw) + if isinstance(b, bytes): + b = b.decode('utf-8') + d = json.loads(b) + return d +except Exception as e: + return { + 'status': 'FAILED', + 'error': f'{e}' + }