|
@@ -2,12 +2,4 @@ SET url = 'https://shandan.one/normalize?hash=' || sqlpage.url_encode($hash);
|
|
SET api_results = sqlpage.fetch($url);
|
|
SET api_results = sqlpage.fetch($url);
|
|
SET hash = $api_results->>'o';
|
|
SET hash = $api_results->>'o';
|
|
SET link = COALESCE('https://shandan.one/'||$tool||'/'||$hash, NULL);
|
|
SET link = COALESCE('https://shandan.one/'||$tool||'/'||$hash, NULL);
|
|
-SELECT 'dynamic' AS component, sqlpage.run_sql('sqlpage/Link.sql') AS properties;
|
|
|
|
-SELECT 'dynamic' AS component, sqlpage.run_sql('sqlpage/QR.sql') AS properties;
|
|
|
|
-
|
|
|
|
-SET content = NULL;
|
|
|
|
-SET inner = CASE $hash IS NULL
|
|
|
|
- WHEN TRUE THEN $tool||'/form.sql'
|
|
|
|
- ELSE 'sqlpage/validate.sql'
|
|
|
|
-END;
|
|
|
|
-SELECT 'dynamic' AS component, sqlpage.run_sql($inner) AS properties;
|
|
|
|
|
|
+SELECT 'dynamic' AS component, sqlpage.run_sql('sqlpage/Link.sql') AS properties;
|