diff --git a/uni_modules/uts-syntaxcase/utssdk/index.uts b/uni_modules/uts-syntaxcase/utssdk/index.uts index d84bac0718444c8b4ab33843e855bf5180ba97a5..26b5c9cfb6629ea45f099b8eb702971b1bedc1c6 100644 --- a/uni_modules/uts-syntaxcase/utssdk/index.uts +++ b/uni_modules/uts-syntaxcase/utssdk/index.uts @@ -52,11 +52,17 @@ export function testSyncWithCallback(opts : AsyncOptions) : SyntaxResult { async function testAwaitPromise(res : SyntaxResult) : Promise { - return await new Promise(function (resolve : (res : SyntaxResult) => void) { - setTimeout(() => { - resolve(res) - }, 2000) - }) + // #ifdef APP-ANDROID + return await new Promise(function (resolve : (res : SyntaxResult) => void) { + resolve(res) + setTimeout(() => { + resolve(res) + }, 2000) + }) + // #endif + // #ifndef APP-ANDROID + return res + // #endif } /** * 导出一个异步方法