emblemscanner: use camera-5.1

This commit is contained in:
Fam Zheng 2025-09-13 10:21:02 +01:00
parent 2df1973773
commit 78a48c6cb0
3 changed files with 3 additions and 3 deletions

View File

@ -127,7 +127,7 @@ Page({
// Set up web-view URL if needed
if (should_use_webview) {
emblem_camera_url = "https://themblem.com/camera-5.0/?" + make_query(rule.zoom, this.data.return_page, this.data.real_ip, this.data.tenant_id);
emblem_camera_url = "https://themblem.com/camera-5.1/?" + make_query(rule.zoom, this.data.return_page, this.data.real_ip, this.data.tenant_id);
this.addDebugMessage(`Using web-view camera: ${emblem_camera_url}`);
} else {
if (this.data.force_camera && rule.web_view) {

View File

@ -1,3 +1,3 @@
{
"navigationBarTitleText": "QR Scanner"
"navigationBarTitleText": "AI验真"
}

View File

@ -87,7 +87,7 @@ function make_query(zoom, return_page, real_ip, tenant_id) {
ret += "&tenant=" + (tenant_id || "");
ret += "&tk=" + Date.now();
if (return_page) {
ret += "&return_page=" + encodeURIComponent(return_page);
ret += "&wx_redirect_to=" + encodeURIComponent(return_page);
}
console.log("Web-view query:", ret);
return ret;