Method and system for acquiring user-defined parameters by app based on weighting algorithm

By adopting a weighted algorithm-based method in the app, combining anonymous identifier technology and cloud service transit processing, the problem of obtaining user information without infringing on user privacy is solved, and efficient and secure user information acquisition and personalized service provision are achieved.

CN119939668AInactive Publication Date: 2025-05-06海看网络科技(山东)股份有限公司
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202510413394.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-03
Publication Date
2025-05-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

On the premise of not infringing on user privacy, how to efficiently and securely obtain relevant information after users scan the app through QR code has become a technical problem that needs to be solved urgently.

Method used

The weighting algorithm is used to generate a QR code through the server. After the user scans the QR code, the server collects and processes the user's mobile phone information and network information, and uses the weighting algorithm to accurately analyze the data to identify relatively accurate user needs.

Benefits of technology

It realizes the improvement of the user experience and business efficiency of the application while respecting user privacy, provides new ideas for personalized services, and can identify relatively accurate user needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119939668A_ABST
    Figure CN119939668A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a system for acquiring user-defined parameters by an app based on a weighting algorithm, and mainly relates to the technical field of information security and acquisition. Comprising the following steps that: a server side assembles app information into a URL (Uniform Resource Locator) and generates a two-dimensional code; s2, when a user scans the two-dimensional code generated in the step S1, the server side collects mobile phone information and network information of the user; the server stores the collected user mobile phone information and network information in a cache database; after the user completes two-dimensional code scanning and opens the corresponding app, the app obtains mobile phone information and network information of the user; after receiving the mobile phone information and the network information of the user transmitted by the app, the server returns two-dimensional code information corresponding to the app; and the app completes page skipping according to the information in the obtained two-dimensional code. The method has the beneficial effects that the user experience and the service efficiency of the application are improved on the premise of respecting the privacy of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security and acquisition technology, and in particular to a method and system for an app to acquire custom parameters based on a weighted algorithm. Background Art

[0002] With the popularity of smart phones, mobile applications (apps) have become an indispensable part of people's daily lives. In order to protect user privacy and data security, major application platforms have implemented strict monitoring policies, prohibiting applications from collecting sensitive information such as device unique identifiers (such as MAC addresses) without the user's explicit consent.

[0003] Although this measure has effectively improved the level of user privacy protection, it has also brought new challenges to application developers, especially those applications that rely on unique device identifiers to conduct user behavior analysis, anti-cheating verification or personalized services, which have to find alternatives.

[0004] In this context, how to efficiently and securely obtain relevant information after users enter the app by scanning the QR code without violating user privacy has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The purpose of the present invention is to provide a method and system for an app to obtain custom parameters based on a weighted algorithm, which improves the user experience and business efficiency of the application while respecting user privacy.

[0006] In order to achieve the above object, the present invention is implemented through the following technical solutions: In one aspect, the present invention provides a method for obtaining custom parameters of an app based on a weighted algorithm, comprising the following steps: S1: The server assembles the app information into the URL and generates a QR code, which is used to obtain the correspondence between the user and the app information when the user scans the code; S2: When the user scans the QR code generated in step S1, the server collects the user's mobile phone information and network information; S3: The server saves the collected user mobile phone information and network information into a cache database, and processes the user mobile phone information and network information; S4: When the user completes the QR code scanning and opens the corresponding app, the app obtains the user's mobile phone information and network information, and sends the obtained user's mobile phone information and network information to the server; S5: After receiving the user's mobile phone information and network information transmitted by the app, the server returns the QR code information corresponding to the app; S6: The app completes the page jump based on the information in the obtained QR code.

[0007] Preferably, the step S2 is specifically: When the user scans the QR code, the information in the QR code is obtained and the page for guiding the download of the app is jumped to. The information in the QR code includes but is not limited to the store ID. The page for guiding obtains the user's mobile phone information and network information, and sends the user's mobile phone information and network information to the server through the server interface. The user's mobile phone information and network information are including but not limited to: mobile phone model, mobile phone version number, IP address, and timestamp.

[0008] Preferably, the step S3 comprises the following steps: S31: Obtaining the user's mobile phone information and network information; S32: Performing an overall hash algorithm on the obtained user's mobile phone information and network information; S33: Form each piece of data in the obtained user's mobile phone information and network information into a field and value of a redis hash structure, and save the entire hash structure into a redis cache database; S34: The time for saving data in redis is set to 24 hours. If the user uses the app within 24 hours, the QR code data is returned, otherwise the data in the cache database is deleted.

[0009] Preferably, the step S32 further includes: obtaining a unique hash value, and using the value as a key of a hash structure of redis.

[0010] Preferably, the step S5 comprises: S51: The server obtains the user's mobile phone information and network information; S52: Circularly cache all hash structures in the database, and obtain the user's mobile phone information and network information in the hash structure; S53: Set a minimum score threshold. If the score after the weighted algorithm is greater than the minimum threshold, obtain the QR code information in the hash structure according to the highest score, and return the QR code information to the app.

[0011] Preferably, step S52 also includes: finding the information corresponding to each piece of information according to the user mobile phone information and network information transmitted by the app and the user mobile phone information and network information stored in redis, and performing a weighted algorithm with the user mobile phone information and network information sent by the app.

[0012] Preferably, the weighted algorithm is specifically:

[0013] in, is the total score, is the weighting factor, is the weighted matching degree, The data that needs to be weighted.

[0014] Preferably, the step S52 further comprises: looping through all hashes, recording the highest score of the weighted sum calculated each time, until the loop ends, to obtain the highest score.

[0015] On the other hand, a system is provided for the method of obtaining custom parameters based on the above-mentioned weighted algorithm-based app, including: The QR code generation module is used to: the server assembles the app information into the URL and generates a QR code, which is used to obtain the corresponding relationship between the user and the app information when the user scans the code; The server-side data collection module is used to: when the user scans the generated QR code, the server collects the user's mobile phone information and network information; at the same time, after the server receives the user's mobile phone information and network information transmitted by the app, it returns the QR code information corresponding to the app; The server-side data processing module is used to: the server-side saves the collected user mobile phone information and network information into the cache database, and performs data processing on the user mobile phone information and network information; The app-side data collection module is used to: when the user completes the QR code scanning and opens the corresponding app, the app obtains the user's mobile phone information and network information, and sends the obtained user's mobile phone information and network information to the server; The app-side achievement display module is used to: the app completes the page jump based on the information in the obtained QR code.

[0016] Compared with the prior art, the beneficial effects of the present invention are: 1. The present invention combines anonymous identifier technology, cloud service transit processing and weighted algorithm, providing a new idea for the application platform to provide personalized services while protecting user privacy.

[0017] 2. The present invention does not directly obtain user sensitive information, but uses a weighted algorithm to accurately analyze available data and can identify relatively accurate user needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a flow chart of the method of the present invention; Figure 2 It is a schematic diagram of the system structure of the present invention. DETAILED DESCRIPTION

[0019] The present invention will be further described below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms fall within the scope limited by the application equally.

[0020] In the present invention, terms such as "upper", "lower", "left", "right", "front", "back", "vertical", "horizontal", "side", "bottom", etc. indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings. They are relational words determined only for the convenience of describing the structural relationships of the various parts or elements of the present invention, and do not specifically refer to any part or element in the present invention and should not be understood as limitations on the present invention.

[0021] Example: like Figure 1 As shown, this embodiment provides a method for an app to obtain custom parameters based on a weighted algorithm, comprising the following steps: S1: The server assembles the app information into the URL and generates a QR code. The QR code is used to obtain the correspondence between the user and the app information when the user scans the code; S2: When the user scans the QR code generated in step S1, the server collects the user's mobile phone information and network information; S3: The server saves the collected user mobile phone information and network information into a cache database, and processes the user mobile phone information and network information; S4: When the user completes the QR code scanning and opens the corresponding app, the app obtains the user's mobile phone information and network information, and sends the obtained user's mobile phone information and network information to the server; S5: After receiving the user's mobile phone information and network information transmitted by the app, the server returns the QR code information corresponding to the app; S6: The app completes the page jump based on the information in the obtained QR code.

[0022] In this embodiment, the (A) app and the first store page and the second store page in the (A) app are taken as examples for explanation.

[0023] Among them, in step S1, specifically: the server assembles the important information in the (A) app into the URL. In this embodiment, this important information is the store ID of different store pages in the (A) app, and generates a QR code for obtaining the correspondence between the user and the important information when the user scans the code.

[0024] In step S2, when the user scans the QR code generated in step S1, the user's mobile phone starts to obtain the information in the QR code, which is the store ID of different store pages in the (A) app, etc. At the same time, it jumps to the download guide page of the (A) app. The guide page obtains the user's non-sensitive mobile phone information and network information, such as mobile phone model, mobile phone version number, IP address, timestamp, etc., and transmits the data to the server through the server interface.

[0025] In step S3, first, obtain the mobile phone information and network information, including the mobile phone model, mobile phone version number, IP address, etc., QR code information, such as shopId, etc.; Then, based on the obtained mobile phone information and network information, hash the information to obtain a unique hash value, and use this value as the key of the redis hash structure; Each piece of data in the mobile phone information, network information, and QR code information is converted into a field and value in the redis hash structure, such as version:12.3, where version is the field and 12.3 is the value. The entire hash structure is saved in the redis cache database, including the key information in the QR code, which is also saved in the form of field / value; Since the information is time-sensitive, the time for saving data in redis is set to 24 hours. If the user uses the (A) app within 24 hours, the QR code data can be returned, otherwise the data in the cache database will be deleted. In the specific implementation process, the timeliness can be set according to the business form. This embodiment takes the 24 hours of the (A) app as an example for explanation.

[0026] In step S4, when the user scans the QR code, the page guides the user to download or open the (A) app. When the user opens the (A) app, the (A) app obtains the user's mobile phone information and network information, such as mobile phone model, mobile phone version number, IP address, timestamp, etc., and transmits the information to the server through the server interface.

[0027] In step S5, it includes: First, obtain the mobile phone information and network information, including the model, version, IP address, QR code information, such as shopId, etc. Then, loop through all the hash structures in the cache database, obtain the mobile phone information and network information in the hash structure, and perform a weighted algorithm with the mobile phone information and network information transmitted by the app. The algorithm is as follows:

[0028] in, is the total score, is the weighting factor, is the weighted matching degree, For data that needs to be weighted, the score of each weighted factor is different. For example, the score of the IP address is set to 50 by default, and the scores of other factors add up to 50. Calculate each data item and calculate the weighted sum. Since all hash structures are looped, the highest score of the weighted sum calculated each time is recorded until the loop ends and the highest score is obtained; If the score is greater than 60 points, the QR code information in the hash structure is obtained based on the highest score, and the QR code information is returned to the (A) app; The scores of the weighted factors can be set with different weights according to different businesses.

[0029] Step S6 is specifically: obtaining key information in the QR code, and the (A) app can complete subsequent business processes based on the key information in the QR code, that is, realize page jumps to different stores in the (A) app according to different user needs.

[0030] like Figure 2 As shown, this embodiment also provides a system for obtaining custom parameters based on the above-mentioned method of the app based on the weighted algorithm, including: The QR code generation module is used to: the server assembles the app information into the URL and generates a QR code, which is used to obtain the corresponding relationship between the user and the app information when the user scans the code; The server-side data collection module is used to: when the user scans the generated QR code, the server collects the user's mobile phone information and network information; at the same time, after the server receives the user's mobile phone information and network information transmitted by the app, it returns the QR code information corresponding to the app; The server-side data processing module is used to: the server-side saves the collected user mobile phone information and network information into the cache database, and performs data processing on the user mobile phone information and network information; The app-side data collection module is used to: when the user completes the QR code scanning and opens the corresponding app, the app obtains the user's mobile phone information and network information, and sends the obtained user's mobile phone information and network information to the server; The app-side achievement display module is used to: the app completes the page jump based on the information in the obtained QR code.

[0031] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the described embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A method for obtaining custom parameters of an app based on a weighted algorithm, characterized in that: The following steps are involved: S1: The server assembles the app information into the URL and generates a QR code, which is used to obtain the correspondence between the user and the app information when the user scans the code; S2: When the user scans the QR code generated in step S1, the server collects the user's mobile phone information and network information; S3: The server saves the collected user mobile phone information and network information into a cache database, and processes the user mobile phone information and network information; S4: When the user completes the QR code scanning and opens the corresponding app, the app obtains the user's mobile phone information and network information, and sends the obtained user's mobile phone information and network information to the server; S5: After receiving the user's mobile phone information and network information transmitted by the app, the server returns the QR code information corresponding to the app; S6: The app completes the page jump based on the information in the obtained QR code.

2. According to claim 1, a method for obtaining custom parameters of an app based on a weighted algorithm is characterized in that: The step S2 is specifically: When the user scans the QR code, the information in the QR code is obtained and the page for guiding the download of the app is jumped to. The information in the QR code includes but is not limited to the store ID. The page for guiding obtains the user's mobile phone information and network information, and sends the user's mobile phone information and network information to the server through the server interface. The user's mobile phone information and network information are including but not limited to: mobile phone model, mobile phone version number, IP address, and timestamp.

3. The method for obtaining custom parameters of an app based on a weighted algorithm according to claim 1, characterized in that: The step S3 comprises the following steps: S31: Obtaining the user's mobile phone information and network information; S32: Performing an overall hash algorithm on the obtained user's mobile phone information and network information; S33: Form each piece of data in the obtained user's mobile phone information and network information into a field and value of a redis hash structure, and save the entire hash structure into a redis cache database; S34: The time for saving data in redis is set to 24 hours. If the user uses the app within 24 hours, the QR code data is returned, otherwise the data in the cache database is deleted.

4. The method for obtaining custom parameters of an app based on a weighted algorithm according to claim 3, characterized in that: The step S32 also includes: obtaining a unique hash value, and using the value as a key of the hash structure of redis.

5. The method for obtaining custom parameters of an app based on a weighted algorithm according to claim 1, characterized in that: The step S5 comprises: S51: The server obtains the user's mobile phone information and network information; S52: Circularly cache all hash structures in the database, and obtain the user's mobile phone information and network information in the hash structure; S53: Set a minimum score threshold. If the score after the weighted algorithm is greater than the minimum threshold, obtain the QR code information in the hash structure according to the highest score, and return the QR code information to the app.

6. The method for obtaining custom parameters of an app based on a weighted algorithm according to claim 4, characterized in that: The step S52 also includes: finding the information corresponding to each piece of information according to the user mobile phone information and network information transmitted by the app and the user mobile phone information and network information stored in redis, and performing a weighted algorithm with the user mobile phone information and network information sent by the app.

7. The method for obtaining custom parameters of an app based on a weighted algorithm according to claim 6, characterized in that: The weighted algorithm is specifically: in, is the total score, is the weighting factor, is the weighted matching degree, The data that needs to be weighted.

8. The method for obtaining custom parameters of an app based on a weighted algorithm according to claim 5, characterized in that: The step S52 also includes: looping through all hashes, recording the highest score of the weighted sum calculated each time, until the loop ends, and obtaining the highest score.

9. A system based on the method for obtaining custom parameters of an app based on a weighted algorithm as claimed in claim 1, characterized in that: include: The QR code generation module is used to: the server assembles the app information into the URL and generates a QR code, which is used to obtain the corresponding relationship between the user and the app information when the user scans the code; The server-side data collection module is used to: when the user scans the generated QR code, the server collects the user's mobile phone information and network information; at the same time, after the server receives the user's mobile phone information and network information transmitted by the app, it returns the QR code information corresponding to the app; The server-side data processing module is used to: the server-side saves the collected user mobile phone information and network information into the cache database, and performs data processing on the user mobile phone information and network information; The app-side data collection module is used to: when the user completes the QR code scanning and opens the corresponding app, the app obtains the user's mobile phone information and network information, and sends the obtained user's mobile phone information and network information to the server; The app-side achievement display module is used to: the app completes the page jump based on the information in the obtained QR code.

Citation Information

Patent Citations

  • Intelligent page jump method and system based on two-dimensional code

    CN107147729A

  • Abnormal message classification method and device, computer equipment and storage medium

    CN111460802A

  • Two-dimensional code design and skip method compatible with multi-client environment

    CN111597474A

  • Medical data release anonymization method

    CN112632612A

  • Two-dimensional code office method and device, mobile terminal and storage medium

    CN113111676A