fix: 修复扫码回调在非等待状态下仍被处理的问题

This commit is contained in:
ccnetcore
2025-08-30 22:07:09 +08:00
parent 96a09d8980
commit 25c736dc0a

View File

@@ -108,6 +108,11 @@ public class FuwuhaoService : ApplicationService
return "success"; // 跳过直接返回成功
}
if (cache.SceneResult != SceneResultEnum.Wait)
{
return "success"; // 跳过直接返回成功
}
//根据操作类型,进行业务处理,返回处理结果,再写入缓存,10s过去相当于用户10s扫完app后轮询要在10秒内完成
var scenResult =
await _fuwuhaoManager.CallBackHandlerAsync(cache.SceneType, body.FromUserName, cache.UserId);