update:请求加密&防篡改

This commit is contained in:
2021-02-25 10:39:30 +08:00
parent 9834c7a988
commit 7fe75e8c7c
11 changed files with 145 additions and 27 deletions

View File

@@ -26,7 +26,7 @@ namespace QRCodeService.Application.Queries
connection.Open();
var link = await connection.QueryAsync<Link>(
@"SELECT ShortCode,FullUrl FROM Link WHERE ShortCode = @shortCode",new {shortCode });
return link.Single();
return link.SingleOrDefault();
}
}
}