当从应用程序外部调用URL时,我成功实现了深层链接(即myapp:// firstpage / 1)。
<html>
<body>
<table align=center>
<tr>
<td colspan=1>
<img src="...." border=0 height=auto width=100%></img>
</td>
<td colspan=1>
<img src="...." border=0 height=auto width=100%></img>
</td>
</tr>
</table>
</body>
<html>
当我收到服务器的通知时,我会得到路线评估/ 1。如何使用deepinking点击它后重新路由,以便我可以使用CREATE TABLE #Users
(
Id int,
[Name] varchar(255),
Height int,
[Weight] int
)
CREATE TABLE #ProfileView
(
Id int,
Sender int,
Receiver int,
[Block] varchar(5)
)
INSERT INTO #Users
(Id, [Name], Height, [Weight])
VALUES
(1, 'aaa', 1, 10),
(2, 'bbb', 4, 104),
(3, 'ccc', 1, 10),
(4, 'ddd', 56, 150),
(5, 'eee', 232, 180)
INSERT INTO #ProfileView
(Id, Sender, Receiver, [Block])
VALUES
(1, 1, 2, 'True'),
(2, 2, 3, 'False'),
(3, 4, 1, 'False')
DECLARE
@CallingUser int, --User performing the search
@Height int, --Height searched for
@Weight int --Weight searched for
SET @CallingUser = 2
SET @Height = 1
SET @Weight = 10
SELECT
*
FROM
#Users
LEFT OUTER JOIN #ProfileView
ON #Users.Id = #ProfileView.Id
AND #ProfileView.Receiver = @CallingUser
WHERE
#Users.Id <> @CallingUser
AND #Users.Height = @Height
AND #Users.[Weight] = @Weight
AND (#ProfileView.[Block] = 'False' OR #ProfileView.[Block] IS NULL)
DROP TABLE #Users
DROP TABLE #ProfileView
。
总是可以选择if或switch语句,但我试图避免它,因为我也想使用defaultHistory。
我愿意接受其他建议。