Mobile phone number one-key login method, device, electronic device and storage medium

By generating and feedback access codes and mobile phone number mask pictures, dynamically calculate the number of prefetched numbers and the replacement ratio, the security risks and load pressure problems of the existing one-click login method are solved, and a safer and more efficient mobile phone number one-click login is achieved.

CN119136199BActive Publication Date: 2025-03-04CHINA UNICOM ONLINE INFORMATION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411622638.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-03-04
Estimated Expiration
2044-11-14

AI Technical Summary

Technical Problem

The existing one-click login method has great security risks and is prone to causing concurrency in the operator's prefetch interface and increasing load pressure.

Method used

By receiving a prefetch number request from the operator's number collection SDK, an access code is generated, and the prefetch number success number is updated based on the access code, the permutation ratio is calculated, and the corresponding mobile phone number mask picture is generated. Feedback the mobile phone number mask picture and access code to the operator and agent SDK, display the authorization login page to the user through the agent SDK, and replace the number after the user agrees to authorization.

Benefits of technology

It effectively reduces security risks, reduces the load pressure and concurrency of the operator's prefetch interface, and limits the mobile phone number login scenarios by labeling information, improving security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119136199B_ABST
    Figure CN119136199B_ABST
Patent Text Reader

Abstract

The present invention relates to a method, device, electronic device and storage medium for one-key login via mobile phone number. The method comprises: receiving a pre-number acquisition request sent from an operator number acquisition SDK, and generating an access code in response to the pre-number acquisition request. Based on the access code, the number of successful pre-number acquisitions of the currently enabled program is updated, the pre-number replacement ratio is calculated, and a mobile phone number mask image is generated according to the pre-number replacement ratio. The mobile phone number mask image and the access code are fed back to the operator number acquisition SDK, and the operator number acquisition SDK calls an API callback function to feed back the mobile phone number mask image and the access code to the agent SDK. The agent SDK calls an API callback function to feed back the mobile phone number mask image and the access code to the currently enabled program to obtain user authorization information. After the user agrees to the authorization, a login request is sent to the application backend service, and the application backend service responds to the login request by initiating a number replacement to the operator backend service to perform one-key login via the mobile phone number.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method, device, electronic device and storage medium for one-key login with a mobile phone number. Background Art

[0002] At present, in the scenario of one-click login with mobile phone number, some application apps obtain and verify mobile phone numbers by accessing the agent SDK (information program collection) signed by the operator. The agent SDK integrates the operator's mobile phone number one-click login SDK. When the user enters the login page, the application app initiates a one-click login pre-retrieval request through the agent SDK. The agent SDK calls the operator SDK and receives the access code (access code) and mobile phone mask string information returned by the operator. The application app calls up the one-click login authorization page and displays the user agreement and mobile phone mask information. After the user chooses to authorize the login, the application app initiates a one-click login request to the application server, carrying the access code information. The application backend service calls the agent backend service to replace the mobile phone number through the access code. The agent backend service calls the operator backend service to complete the access code replacement of the mobile phone number. The application backend service receives the replaced mobile phone number, completes the entire login process, and returns the operation result to the App.

[0003] However, when existing applications connect to the agent SDK to complete the one-click login scenario using a mobile phone number, the disadvantages mainly include the following aspects:

[0004] (1) Since the operator charges the agent by counting the number of successful number replacements, some agents privately create cache data to reduce the number replacement interface calls of the operator in order to reduce the replacement fees. That is, they upload the device unique ID and mobile phone number mask string and associate it with the returned successfully replaced mobile phone number. When the number is replaced, if the same device ID and mobile phone number mask are found in the cache, the operator number replacement interface call will no longer be initiated and the corresponding mobile phone number in the cache will be directly returned. This caching method not only affects the operator's normal one-click login revenue, but also may pose a greater security risk, that is, there are problems such as the mobile phone number cache being tampered with and similar mobile phone numbers being used impersonally.

[0005] (2) Since the operator's one-click login pre-retrieval interface returns a mobile phone number mask string and the interface call is free, some application apps use this interface call for non-one-click login scenarios, that is, to display the current device's mobile phone number mask. However, this method may cause greater concurrency and load pressure on the operator's pre-retrieval interface.

[0006] In summary, the existing one-key login method has great security risks and is more likely to cause concurrency of the operator's pre-number acquisition interface and increase the load pressure. Summary of the invention

[0007] Based on this, it is necessary to provide a one-click login method, device, electronic device and storage medium for mobile phone numbers that can reduce security risks and to a certain extent alleviate the load pressure on the operator's pre-number acquisition interface and reduce concurrency in response to the above technical problems.

[0008] The present invention provides a one-key login method for a mobile phone number, the method comprising:

[0009] Receiving a pre-number acquisition request sent from the operator's number acquisition SDK, and generating an access code in response to the pre-number acquisition request;

[0010] Based on the access code, the number of successful pre-taken numbers of the currently enabled program is updated, a pre-taken number replacement ratio is calculated, and a corresponding mobile phone number mask image is generated according to the level of the pre-taken number replacement ratio;

[0011] Feedback the mobile phone number mask image and access code to the operator number acquisition SDK, and feed back the mobile phone number mask image and access code to the agent SDK by calling the API callback function through the operator number acquisition SDK;

[0012] The agent SDK calls an API callback function to feed back the mobile phone number mask image and the access code to the currently enabled program, so as to display the authorization login page and the mobile phone number mask image to the user through the currently enabled program, and obtain user authorization information;

[0013] After the user agrees to the authorization, a login request carrying the access code is sent to the application backend service, and the application backend service responds to the login request by initiating a number replacement to the operator backend service to perform one-click login using the mobile phone number;

[0014] The mobile phone number mask image has annotation information of the operator's backend service, and the annotation information is used to limit the mobile phone number login scenario of the currently enabled program.

[0015] In one embodiment, the receiving of a pre-number acquisition request sent by an operator number acquisition SDK and generating an access code in response to the pre-number acquisition request comprises:

[0016] Initiate a SDK pre-retrieval API request to the agent SDK in response to the user's login operation request through the currently enabled program, so as to call the agent SDK to feed back the SDK pre-retrieval API request to the operator number retrieval SDK;

[0017] The operator number acquisition SDK responds to the calling SDK pre-number acquisition API request and initiates the pre-number acquisition request to the operator backend service.

[0018] In one embodiment, the updating of the number of successful pre-taken numbers of the currently enabled program based on the access code, calculating the pre-taken number replacement ratio, and generating a corresponding mobile phone number mask image according to the level of the pre-taken number replacement ratio includes:

[0019] When the level of the pre-acquired number replacement ratio is not a preset standard pre-acquired number replacement ratio level, randomly adding one or more anti-optical character recognition recognition strategies to the generated mobile phone number mask image; and

[0020] The generated mobile phone number mask image is displayed by flashing multiple GIF frames, and each frame displays local mask information in the mobile phone number mask image, and one or more anti-optical character recognition recognition strategies are added to the local mask information;

[0021] The anti-optical character recognition recognition strategy at least includes adding noise, changing the picture background, changing the number font, and stretching or distorting the number font.

[0022] In one embodiment, the method of updating the number of successful pre-taken numbers of the currently enabled program based on the access code, calculating the pre-taken number replacement ratio, and generating a corresponding mobile phone number mask image according to the level of the pre-taken number replacement ratio, further includes:

[0023] Watermark information is added to the generated mobile phone number mask image to mark the mobile phone number mask image. The watermark information is generated by the operator based on the mobile phone number one-click login task and is only used in the mobile phone number one-click login scenario.

[0024] In one embodiment, the step of feeding back the mobile phone number mask image and the access code to the operator number acquisition SDK, and feeding back the mobile phone number mask image and the access code to the agent SDK by calling an API callback function through the operator number acquisition SDK includes:

[0025] The operator backend service returns the mobile phone number mask image and the access code with one or more anti-optical character recognition identification strategies and watermark information to the operator number acquisition SDK;

[0026] The operator number acquisition SDK calls an API callback function in response to the mobile phone number mask image and access code to feed back the mobile phone number mask image and access code to the agent SDK.

[0027] In one embodiment, after the user agrees to the authorization, a login request carrying the access code is sent to the application backend service, and the application backend service responds to the login request by initiating a number replacement to the operator backend service to perform a one-click login with the mobile phone number, including:

[0028] After the application backend service receives the login request from the currently enabled program, it initiates a number replacement request carrying the access code and the login device name to the agent backend service;

[0029] The agent backend service responds to the number replacement request, replaces the current logged-in mobile phone number based on the access code, and calls the operator backend service to update the pre-acquired number success number and pre-acquired number replacement ratio after the mobile phone number replacement is successful.

[0030] In one embodiment, after the user agrees to the authorization, the login request carrying the access code is sent to the application backend service, and the application backend service responds to the login request by initiating a number replacement to the operator backend service to perform a one-click login with the mobile phone number, and further includes:

[0031] Feedback the replaced mobile phone number to the agent backend service through the operator backend service, so as to call the agent backend service to return the received mobile phone number to the application backend service;

[0032] The application backend service is called to respond to the mobile phone number sent by the agent backend service, and the mobile phone number login result is fed back to the currently enabled program.

[0033] The present invention also provides a mobile phone number one-key login device, the device comprising:

[0034] A number acquisition request module, used to receive a pre-number acquisition request sent from the operator's number acquisition SDK, and generate an access code in response to the pre-number acquisition request;

[0035] A mask image generation module, used for updating the number of successful pre-acquisition numbers of the currently enabled program based on the access code, calculating the pre-acquisition number replacement ratio, and generating a corresponding mobile phone number mask image according to the level of the pre-acquisition number replacement ratio;

[0036] A data feedback module is used to feed back the mobile phone number mask image and access code to the operator number acquisition SDK, and feed back the mobile phone number mask image and access code to the agent SDK by calling an API callback function through the operator number acquisition SDK;

[0037] A user authorization module, used to call an API callback function through the agent SDK to feed back the mobile phone number mask image and the access code to the currently enabled program, so as to display an authorization login page and the mobile phone number mask image to the user through the currently enabled program, and obtain user authorization information;

[0038] A one-click login module, used to send a login request carrying the access code to the application backend service after the user agrees to the authorization, and the application backend service responds to the login request by initiating a number replacement to the operator backend service to perform one-click login with the mobile phone number;

[0039] The mobile phone number mask image has annotation information of the operator's backend service, and the annotation information is used to limit the mobile phone number login scenario of the currently enabled program.

[0040] The present invention also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the one-key login method for a mobile phone number as described above is implemented.

[0041] The present invention also provides a computer storage medium storing a computer program, wherein when the computer program is executed by a processor, the one-key login method for a mobile phone number as described above is implemented.

[0042] The above-mentioned one-key login method, device, electronic device and storage medium for mobile phone number receive the pre-acquisition request sent by the operator number acquisition SDK through the operator backend service, and generate an access code in response to the pre-acquisition request. Then update the number of successful pre-acquisition of the current activation program based on the generated access code, calculate the pre-acquisition replacement ratio, and generate the corresponding mobile phone number mask image according to the level of the pre-acquisition replacement ratio. Subsequently, the generated mobile phone number mask image and access code are fed back to the operator number acquisition SDK, and the mobile phone number mask image and access code are fed back to the agent SDK by calling the API callback function of the operator number acquisition SDK. The mobile phone number mask image and access code are fed back to the current activation program by calling the API callback function of the agent SDK, so as to display the authorization login page and the mobile phone number mask image to the user through the current activation program, and obtain the user authorization information. After the user agrees to the authorization, a login request carrying the access code is sent to the application backend service, and the application backend service responds to the login request by initiating a number replacement to the operator backend service to perform a one-key login of the mobile phone number. This method dynamically calculates the number of successful pre-acquisitions and replacement ratios of the activation program, and sends corresponding mobile phone number mask images according to different ratios. This can effectively prevent agents from automatically identifying mobile phone number mask images while reducing the impact on the activation program that normally uses the SDK, reducing the occurrence of large concurrency in the operator's pre-acquisition interface and reducing its load pressure. In addition, the generated mobile phone number mask image has corresponding annotation information to limit the scenario of one-click login with mobile phone numbers, which improves the security of one-click login with mobile phone numbers to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 This is a flow chart of the one-key login method for mobile phone number provided by the present invention;

[0045] Figure 2 A schematic diagram of the data interaction process in the pre-number acquisition, user authorization and number replacement stages of the one-key login method for mobile phone numbers in a specific embodiment provided by the present invention;

[0046] Figure 3 The second flowchart of the one-key login method for mobile phone number provided by the present invention;

[0047] Figure 4 The third flowchart of the one-key login method for mobile phone number provided by the present invention;

[0048] Figure 5 The fourth flowchart of the one-key login method for mobile phone number provided by the present invention;

[0049] Figure 6 The fifth flowchart of the one-key login method for mobile phone number provided by the present invention;

[0050] Figure 7 The sixth flowchart of the one-key login method for mobile phone number provided by the present invention;

[0051] Figure 8 A schematic diagram of the structure of the one-key login device for mobile phone number provided by the present invention;

[0052] Fig. 9 This is a diagram of the internal structure of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] Combine the following Figures 1 to 9 The present invention describes a one-key login method, device, electronic device and storage medium for a mobile phone number.

[0055] like Figure 1 As shown, in one embodiment, a one-key login method for a mobile phone number includes the following steps:

[0056] Step S110, receiving a pre-number acquisition request sent from the operator's number acquisition SDK, and generating an access code in response to the pre-number acquisition request.

[0057] Specifically, the operator backend service receives a pre-number acquisition request sent from the operator number acquisition SDK, and the operator backend service generates a corresponding access code (access code) in response to the pre-number acquisition request.

[0058] Step S120, based on the access code, the number of successful pre-acquisition of the currently enabled program is updated, the pre-acquisition replacement ratio is calculated, and a corresponding mobile phone number mask image is generated according to the level of the pre-acquisition replacement ratio.

[0059] Specifically, the operator backend service updates the number of successful pre-acquired numbers of the currently enabled program App based on the access code generated in step S110, calculates the pre-acquired number replacement ratio, and generates different types of mobile phone number mask images according to the pre-acquired number replacement ratio.

[0060] Among them, different levels of pre-acquired number replacement ratios correspond to different types of mobile phone number mask images, and the generated mobile phone number mask images have annotation information of the operator's backend service, and the annotation information is used to limit the mobile phone number login scenario of the currently enabled program. For example, watermark information is added to the generated mobile phone number mask image to annotate the mobile phone number mask image. The watermark information is generated by the operator based on the mobile phone number one-click login task and is only used for the mobile phone number one-click login scenario.

[0061] Step S130, the mobile phone number mask image and the access code are fed back to the operator number acquisition SDK, and the mobile phone number mask image and the access code are fed back to the agent SDK by calling the API callback function through the operator number acquisition SDK.

[0062] Specifically, the operator backend service will then feed back the generated mobile phone number mask image and its access code to the operator number acquisition SDK, and feed back the mobile phone number mask image and access code to the agent SDK by calling the API callback function through the operator number acquisition SDK.

[0063] Step S140, calling the API callback function through the agent SDK to feed back the mobile phone number mask image and the access code to the current activation program, so as to display the authorization login page and the mobile phone number mask image to the user through the current activation program, and obtain the user authorization information.

[0064] Specifically, after the agent SDK receives the mobile phone number mask image and access code feedback from the operator's number acquisition SDK, it calls the API callback function again to feedback the mobile phone number mask image and access code to the currently enabled program, and then displays the authorization login page and mobile phone number mask image to the user through the currently enabled program, and obtains the user's authorization information.

[0065] Step S150, after the user agrees to the authorization, a login request carrying an access code is sent to the application backend service. In response to the login request, the application backend service initiates a number replacement to the operator backend service to perform one-click login using the mobile phone number.

[0066] Specifically, according to the user authorization information obtained in step S140, after the user agrees to the authorization, a login request carrying an access code is sent to the application back-end service. The application back-end service responds to the login request by initiating a number replacement to the operator back-end service to complete one-click login with the mobile phone number of the currently enabled program.

[0067] The above-mentioned one-click login method for mobile phone numbers receives a pre-acquisition request sent by the operator's number acquisition SDK through the operator's back-end service, and generates an access code in response to the pre-acquisition request. Then, based on the generated access code, the number of successful pre-acquisitions of the current activation program is updated, the pre-acquisition replacement ratio is calculated, and the corresponding mobile phone number mask image is generated according to the level of the pre-acquisition replacement ratio. Subsequently, the generated mobile phone number mask image and access code are fed back to the operator's number acquisition SDK, and the mobile phone number mask image and access code are fed back to the agent SDK by calling the API callback function of the operator's number acquisition SDK. The mobile phone number mask image and access code are fed back to the current activation program by calling the API callback function of the agent SDK, so as to display the authorization login page and the mobile phone number mask image to the user through the current activation program, and obtain the user authorization information. After the user agrees to the authorization, a login request carrying the access code is sent to the application back-end service, and the application back-end service responds to the login request by initiating a number replacement to the operator back-end service to perform a one-click login with the mobile phone number. This method dynamically calculates the number of successful pre-acquisitions and replacement ratios of the activation program, and sends corresponding mobile phone number mask images according to different ratios. This can effectively prevent agents from automatically identifying mobile phone number mask images while reducing the impact on the activation program that normally uses the SDK, reducing the occurrence of large concurrency in the operator's pre-acquisition interface and reducing its load pressure. In addition, the generated mobile phone number mask image has corresponding annotation information to limit the scenario of one-click login with mobile phone numbers, which improves the security of one-click login with mobile phone numbers to a certain extent.

[0068] See also Figure 2 As shown, in a specific embodiment, the one-click login method for mobile phone numbers provided by the present invention is divided into three stages: pre-number acquisition, user authorization, and number replacement. In the pre-number acquisition stage, first, the user triggers the login operation, and the application App calls the agent SDK pre-number acquisition API in response to the user login operation. After the agent SDK responds, it calls the operator SDK pre-number acquisition AIP, and the operator SDK then initiates a pre-number acquisition request to the operator back-end service. In response to the pre-number acquisition request, the operator back-end service obtains the mobile phone number according to the device network information, and generates a corresponding access code, and then updates the current App pre-number acquisition success number, and then recalculates the pre-number acquisition / replacement ratio, and then generates a corresponding type of mobile phone number mask image according to the level to which the replacement ratio belongs.

[0069] In this embodiment, the ratio level and the mobile phone number mask image generation rules are as follows (the ratio values ​​corresponding to each ratio level are preset):

[0070] Level 1:

[0071] Rules for generating mobile phone number mask images:

[0072] Ordinary mobile phone number mask image, no anti-OCR (optical character recognition) related processing is added.

[0073] Mobile phone number mask image format: PNG format.

[0074] Mobile phone number masking rules: The first 3 and last 4 digits of the mobile phone number are displayed normally, and the middle 4 digits are displayed as *.

[0075] Among them, Level 1 is the level of standard pre-number acquisition / replacement ratio pre-set by the system. When setting the ratio, the current data statistics of most application apps will be taken into consideration. While preventing agents from automatically identifying mobile phone number mask images, it will minimize the impact on the normal use of the SDK on the application app.

[0076] Level 2:

[0077] Rules for generating mobile phone number mask images:

[0078] The mobile phone number mask image randomly adds noise, background changes, font changes, font stretching and distortion, and other anti-OCR recognition strategies.

[0079] Mobile phone number mask image format: PNG format.

[0080] Mobile phone number masking rules: The first 3 and last 4 digits of the mobile phone number are displayed normally, and the middle 4 digits are displayed as *.

[0081] Level 3:

[0082] Rules for generating mobile phone number mask images:

[0083] The mobile phone number mask image is displayed by flashing multiple GIF frames. Each frame only displays part of the mobile phone number mask information, and randomly adds one or more anti-OCR recognition strategies such as noise, background change, font change, font stretching and distortion.

[0084] Mobile phone number mask image format: GIF format.

[0085] Mobile phone number masking rules: The first 3 and last 4 digits of the mobile phone number are displayed normally, and the middle 4 digits are displayed as *.

[0086] Level 4:

[0087] Rules for generating mobile phone number mask images:

[0088] Ordinary mobile phone number mask image, no anti-OCR related processing is added.

[0089] Mobile phone number mask image format: PNG format.

[0090] Mobile phone number masking rules: Only the first 3 digits of the mobile phone number are displayed normally, and * is displayed in other positions.

[0091] Among them, OCR (Optical Character Recognition) refers to the process of analyzing and identifying image files of text materials to obtain text and version information.

[0092] In this embodiment, after the mobile phone number mask image is generated, a copyright watermark information is added to the generated mobile phone number mask image to indicate that the image is generated by the operator's one-click login service and is limited to the one-click login scenario. Subsequently, the operator's backend service returns the access code and the mobile phone number mask image to the operator's number acquisition SDK, and the operator's number acquisition SDK returns the access code and the mobile phone number mask image to the agent SDK through the API callback function. The agent SDK then returns the access code and the mobile phone number mask image to the application App through the API callback function, entering the user authorization stage.

[0093] During the user authorization phase, the App displays a one-click login user authorization page to the user, and displays a masked mobile phone number image. The image contains copyright watermark information and has added anti-OCR processing, but it does not affect normal users' ability to identify their own mobile phone numbers. In addition, since the Android and iOS system image display components support the display of both PNG and GIF images, App developers do not need to specifically handle the display issues of different types of images. After the user agrees to the authorization, the login operation is triggered and the number replacement phase begins.

[0094] During the number replacement phase, the application App initiates a one-click login request to the application backend service, and carries the access code returned by the pre-acquired number and the unique device ID. After receiving the request, the application backend service calls the agent number replacement interface and carries the access code and application authorization information to initiate number replacement to the agent backend service. The agent backend service then replaces the mobile phone number to the operator backend service through the access code. After the number replacement is successful, the operator backend service updates the corresponding pre-acquired number success number and pre-acquired number / replacement ratio, and then returns the mobile phone number to the agent backend service. The agent backend service then returns the mobile phone number to the application backend service. After receiving the returned mobile phone number, the application backend service returns the login result to the application App.

[0095] In this embodiment, the operator's pre-number acquisition interface no longer returns the mobile phone mask string information. The pre-number acquisition interface realizes the display of the mobile phone mask information on the user authorization login page by returning the mobile phone number mask picture, and the pre-number acquisition interface supports setting the background color, font, picture size, etc. of the mobile phone number mask picture to adapt to the style requirements of different application apps. Secondly, in order to prevent some agents from automatically identifying the mobile phone number mask picture information through OCR for caching, the mobile phone number mask picture generated by the operator supports a variety of anti-OCR recognition strategies, including adding noise, background transformation, font transformation, stretching, overlapping, etc., and the picture format also supports PNG, GIF and other types. Thirdly, the operator's back-end service dynamically calculates the successful call ratio of each App's pre-number acquisition / number replacement interface, and sends mobile phone number mask pictures of different types and different anti-OCR recognition strategies according to different ratios. While preventing agents from automatically identifying mobile phone number mask pictures, the impact on application apps that use the SDK normally is minimized. Finally, copyright watermark information is added to the generated mobile phone number mask image. The watermark prompts that the image is generated by the operator and is only limited to one-click login scenarios. It can remind and restrict application apps from using mobile phone number mask images in non-one-click login scenarios.

[0096] like Figure 3 As shown, in one embodiment, the one-key login method for mobile phone numbers provided by the present invention receives a pre-retrieval request sent from an operator's number retrieval SDK, and generates an access code in response to the pre-retrieval request, which includes the following steps:

[0097] Step S310, in response to the user's login operation request, the currently enabled program initiates a SDK pre-retrieval API request to the agent SDK, so that the agent SDK is called to feed back the SDK pre-retrieval API request to the operator number retrieval SDK.

[0098] Step S320, the operator number acquisition SDK responds to the SDK pre-number acquisition API request and initiates a pre-number acquisition request to the operator backend service.

[0099] like Figure 4 As shown, in one embodiment, the mobile phone number one-key login method provided by the present invention updates the number of successful pre-taken numbers of the currently enabled program based on the access code, calculates the pre-taken number replacement ratio, and generates a corresponding mobile phone number mask image according to the level of the pre-taken number replacement ratio, specifically including the following steps:

[0100] Step S122: when the level of the pre-acquired number replacement ratio is not the preset standard pre-acquired number replacement ratio level, one or more anti-optical character recognition strategies are randomly added to the generated mobile phone number mask image.

[0101] Step S124, using GIF multi-frame image flashing to display the generated mobile phone number mask image, and each frame of the image displays local mask information in the mobile phone number mask image, and one or more anti-optical character recognition recognition strategies are added to the local mask information.

[0102] Among them, the recognition strategy for preventing optical character recognition at least includes adding noise, changing the image background, changing the number font, and stretching or distorting the number font.

[0103] like Figure 5 As shown, in one embodiment, the one-click login method for mobile phone number provided by the present invention feeds back the mobile phone number mask image and access code to the operator number acquisition SDK, and feeds back the mobile phone number mask image and access code to the agent SDK by calling the API callback function through the operator number acquisition SDK, specifically including the following steps:

[0104] Step S132: returning the mobile phone number mask image with one or more anti-optical character recognition strategies and watermark information and the access code to the operator's number acquisition SDK through the operator's backend service.

[0105] Step S134, the operator number acquisition SDK calls an API callback function in response to the mobile phone number mask image and the access code to feed back the mobile phone number mask image and the access code to the agent SDK.

[0106] like Figure 6 As shown, in one embodiment, the one-click login method for mobile phone numbers provided by the present invention sends a login request carrying an access code to the application backend service after the user agrees to the authorization. The application backend service responds to the login request by initiating a number replacement to the operator backend service to perform one-click login for the mobile phone number, specifically including the following steps:

[0107] Step S152: After receiving the login request from the currently enabled program, the application backend service initiates a number replacement request carrying the access code and the login device name to the agent backend service.

[0108] Step S154, responding to the number replacement request through the agent backend service, replacing the current logged-in mobile phone number based on the access code, and calling the operator backend service to update the number of successful pre-acquired numbers and the pre-acquired number replacement ratio after the mobile phone number replacement is successful.

[0109] like Figure 7 As shown, in one embodiment, the one-click login method for mobile phone numbers provided by the present invention sends a login request carrying an access code to the application backend service after the user agrees to the authorization. The application backend service responds to the login request by initiating a number replacement to the operator backend service to perform one-click login for the mobile phone number, and specifically includes the following steps:

[0110] Step S156, the replaced mobile phone number is fed back to the agent backend service through the operator backend service, so as to call the agent backend service to return the received mobile phone number to the application backend service.

[0111] Step S158, calling the application backend service in response to the mobile phone number sent by the agent backend service, and feeding back the mobile phone number login result to the currently enabled program.

[0112] The one-key login device for mobile phone number provided by the present invention is described below. The one-key login device for mobile phone number described below and the one-key login method for mobile phone number described above can be referenced to each other.

[0113] like Figure 8 As shown, in one embodiment, a one-key login device for a mobile phone number includes a number request module 810, a mask image generation module 820, a data feedback module 830, a user authorization module 840 and a one-key login module 850.

[0114] The number acquisition request module 810 is used to receive a pre-number acquisition request sent from the operator's number acquisition SDK, and generate an access code in response to the pre-number acquisition request.

[0115] The mask image generation module 820 is used to update the number of successful pre-acquisition numbers of the currently enabled program based on the access code, calculate the pre-acquisition number replacement ratio, and generate a corresponding mobile phone number mask image according to the level of the pre-acquisition number replacement ratio.

[0116] The data feedback module 830 is used to feed back the mobile phone number mask image and access code to the operator number acquisition SDK, and feed back the mobile phone number mask image and access code to the agent SDK by calling the API callback function through the operator number acquisition SDK.

[0117] The user authorization module 840 is used to call the API callback function through the agent SDK to feed back the mobile phone number mask image and access code to the current enabled program, so as to display the authorization login page and mobile phone number mask image to the user through the current enabled program and obtain user authorization information.

[0118] The one-click login module 850 is used to send a login request carrying an access code to the application backend service after the user agrees to the authorization. The application backend service responds to the login request by initiating a number replacement to the operator backend service to perform one-click login using the mobile phone number.

[0119] Among them, the mobile phone number mask image has annotation information of the operator's backend service, and the annotation information is used to limit the mobile phone number login scenario of the currently enabled program.

[0120] In this embodiment, the mobile phone number one-key login device provided by the present invention further includes a login operation request module, which is used to:

[0121] In response to the user's login operation request, the currently enabled program initiates a SDK pre-retrieval API request to the agent SDK, so that the agent SDK is called to feed back the SDK pre-retrieval API request to the operator number retrieval SDK.

[0122] The operator number acquisition SDK responds to the SDK pre-number acquisition API request and initiates a pre-number acquisition request to the operator backend service.

[0123] In this embodiment, in the mobile phone number one-key login device provided by the present invention, the mask image generation module 820 is specifically used for:

[0124] When the level of the pre-taken number replacement ratio is not the preset standard pre-taken number replacement ratio level, one or more anti-optical character recognition strategies are randomly added to the generated mobile phone number mask image.

[0125] The generated mobile phone number mask image is displayed by flashing multiple GIF frames, and each frame displays local mask information in the mobile phone number mask image, and one or more anti-optical character recognition recognition strategies are added to the local mask information.

[0126] Among them, the recognition strategy for preventing optical character recognition at least includes adding noise, changing the image background, changing the number font, and stretching or distorting the number font.

[0127] In this embodiment, the mobile phone number one-key login device provided by the present invention further includes a watermark adding module for:

[0128] Add watermark information to the generated mobile phone number mask image to mark the mobile phone number mask image. The watermark information is generated by the operator based on the mobile phone number one-click login task and is only used in the mobile phone number one-click login scenario.

[0129] In this embodiment, the one-key login device for mobile phone number provided by the present invention, the data feedback module 830 is specifically used for:

[0130] The operator backend service returns the mobile phone number mask image and access code with one or more anti-optical character recognition identification strategies and watermark information to the operator number acquisition SDK.

[0131] The operator number acquisition SDK calls the API callback function in response to the mobile phone number mask image and access code to feed back the mobile phone number mask image and access code to the agent SDK.

[0132] In this embodiment, the one-key login device for mobile phone number provided by the present invention, the one-key login module 850 is specifically used for:

[0133] After the application backend service receives the login request from the currently enabled program, it initiates a number replacement request carrying the access code and the login device name to the agent backend service.

[0134] The agent backend service responds to the number replacement request, replaces the current logged-in mobile number based on the access code, and calls the operator backend service to update the number of successful pre-acquired numbers and the pre-acquired number replacement ratio after the mobile number replacement is successful.

[0135] In this embodiment, the one-key login device for mobile phone number provided by the present invention, the one-key login module 850 is specifically used for:

[0136] The replaced mobile phone number is fed back to the agent backend service through the operator backend service, so as to call the agent backend service to return the received mobile phone number to the application backend service.

[0137] The application backend service is called to respond to the mobile phone number sent by the agent backend service, and the mobile phone number login result is fed back to the currently enabled program.

[0138] Fig. 9 An example of a physical structure diagram of an electronic device is shown. The electronic device may be a smart terminal, and its internal structure diagram may be as follows: Fig. 9 As shown. The electronic device includes a processor, an internal memory and a network interface connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a one-key login method for a mobile phone number is implemented, and the method includes:

[0139] Receive a pre-number acquisition request sent from the operator's number acquisition SDK, and generate an access code in response to the pre-number acquisition request;

[0140] Based on the access code, the number of successful pre-taken numbers of the currently enabled program is updated, a pre-taken number replacement ratio is calculated, and a corresponding mobile phone number mask image is generated according to the level of the pre-taken number replacement ratio;

[0141] Feedback the phone number mask image and access code to the operator's SDK, and then call the API callback function through the operator's SDK to feed back the phone number mask image and access code to the agent SDK;

[0142] Call the API callback function through the agent SDK to feed back the mobile phone number mask image and access code to the currently enabled program, so as to display the authorization login page and the mobile phone number mask image to the user through the currently enabled program and obtain the user authorization information;

[0143] After the user agrees to the authorization, a login request with an access code is sent to the application backend service. In response to the login request, the application backend service initiates a number replacement with the operator backend service to perform one-click login using the mobile phone number.

[0144] Among them, the mobile phone number mask image has annotation information of the operator's backend service, and the annotation information is used to limit the mobile phone number login scenario of the currently enabled program.

[0145] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present invention, and does not constitute a limitation on the electronic device to which the scheme of the present invention is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0146] On the other hand, the present invention further provides a computer storage medium storing a computer program, which implements a one-key login method for a mobile phone number when the computer program is executed by a processor, the method comprising:

[0147] Receive a pre-number acquisition request sent from the operator's number acquisition SDK, and generate an access code in response to the pre-number acquisition request;

[0148] Based on the access code, the number of successful pre-taken numbers of the currently enabled program is updated, a pre-taken number replacement ratio is calculated, and a corresponding mobile phone number mask image is generated according to the level of the pre-taken number replacement ratio;

[0149] Feedback the phone number mask image and access code to the operator's SDK, and then call the API callback function through the operator's SDK to feed back the phone number mask image and access code to the agent SDK;

[0150] Call the API callback function through the agent SDK to feed back the mobile phone number mask image and access code to the currently enabled program, so as to display the authorization login page and the mobile phone number mask image to the user through the currently enabled program and obtain the user authorization information;

[0151] After the user agrees to the authorization, a login request with an access code is sent to the application backend service. In response to the login request, the application backend service initiates a number replacement with the operator backend service to perform one-click login using the mobile phone number.

[0152] Among them, the mobile phone number mask image has annotation information of the operator's backend service, and the annotation information is used to limit the mobile phone number login scenario of the currently enabled program.

[0153] In another aspect, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and when the processor executes the computer instructions, a method for one-key login with a mobile phone number is implemented, the method comprising:

[0154] Receive a pre-number acquisition request sent from the operator's number acquisition SDK, and generate an access code in response to the pre-number acquisition request;

[0155] Based on the access code, the number of successful pre-taken numbers of the currently enabled program is updated, a pre-taken number replacement ratio is calculated, and a corresponding mobile phone number mask image is generated according to the level of the pre-taken number replacement ratio;

[0156] Feedback the phone number mask image and access code to the operator's SDK, and then call the API callback function through the operator's SDK to feed back the phone number mask image and access code to the agent SDK;

[0157] Call the API callback function through the agent SDK to feed back the mobile phone number mask image and access code to the currently enabled program, so as to display the authorization login page and the mobile phone number mask image to the user through the currently enabled program and obtain the user authorization information;

[0158] After the user agrees to the authorization, a login request with an access code is sent to the application backend service. In response to the login request, the application backend service initiates a number replacement with the operator backend service to perform one-click login using the mobile phone number.

[0159] Among them, the mobile phone number mask image has annotation information of the operator's backend service, and the annotation information is used to limit the mobile phone number login scenario of the currently enabled program.

[0160] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory.

[0161] By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0162] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0163] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A one-click login method using a mobile phone number, characterized in that: The method comprises: Receiving a pre-number acquisition request sent from the operator's number acquisition SDK, and generating an access code in response to the pre-number acquisition request; Based on the access code, the number of successful pre-acquisition numbers of the currently enabled program is updated, a pre-acquisition number replacement ratio is calculated, and a corresponding mobile phone number mask image is generated according to the level of the pre-acquisition number replacement ratio; Feedback the mobile phone number mask image and access code to the operator number acquisition SDK, and feed back the mobile phone number mask image and access code to the agent SDK by calling the API callback function through the operator number acquisition SDK; The agent SDK calls an API callback function to feed back the mobile phone number mask image and the access code to the currently enabled program, so as to display the authorization login page and the mobile phone number mask image to the user through the currently enabled program, and obtain user authorization information; After the user agrees to the authorization, a login request carrying the access code is sent to the application backend service, and the application backend service responds to the login request by initiating a number replacement to the operator backend service to perform one-click login using the mobile phone number; The mobile phone number mask image has annotation information of the operator's backend service, and the annotation information is used to limit the mobile phone number login scenario of the currently enabled program; The method of updating the number of successful pre-taken numbers of the currently enabled program based on the access code, calculating the pre-taken number replacement ratio, and generating a corresponding mobile phone number mask image according to the level of the pre-taken number replacement ratio includes: When the level of the pre-acquired number replacement ratio is not a preset standard pre-acquired number replacement ratio level, randomly adding one or more anti-optical character recognition recognition strategies to the generated mobile phone number mask image; and The generated mobile phone number mask image is displayed by flashing multiple GIF frames, and each frame displays local mask information in the mobile phone number mask image, and one or more anti-optical character recognition recognition strategies are added to the local mask information; Wherein, the recognition strategy for preventing optical character recognition at least includes adding noise, changing the picture background, changing the number font, and stretching or distorting the number font; The method further includes: updating the number of successful pre-taken numbers of the currently enabled program based on the access code, calculating the pre-taken number replacement ratio, and generating a corresponding mobile phone number mask image according to the level of the pre-taken number replacement ratio, and then further including: Watermark information is added to the generated mobile phone number mask image to mark the mobile phone number mask image. The watermark information is generated by the operator based on the mobile phone number one-click login task and is only used in the mobile phone number one-click login scenario.

2. The one-key login method using a mobile phone number according to claim 1, characterized in that: The receiving of a pre-number acquisition request sent by an operator number acquisition SDK and generating an access code in response to the pre-number acquisition request comprises: Initiate a SDK pre-retrieval API request to the agent SDK in response to the user's login operation request through the currently enabled program, so as to call the agent SDK to feed back the SDK pre-retrieval API request to the operator number retrieval SDK; The operator number acquisition SDK responds to the calling SDK pre-number acquisition API request and initiates the pre-number acquisition request to the operator backend service.

3. The one-key login method using a mobile phone number according to claim 1, characterized in that: Feeding back the mobile phone number mask image and access code to the operator number acquisition SDK, and feeding back the mobile phone number mask image and access code to the agent SDK by calling an API callback function through the operator number acquisition SDK, includes: The operator backend service returns the mobile phone number mask image and the access code with one or more anti-optical character recognition identification strategies and watermark information to the operator number acquisition SDK; The operator number acquisition SDK calls an API callback function in response to the mobile phone number mask image and access code to feed back the mobile phone number mask image and access code to the agent SDK.

4. The one-key login method using a mobile phone number according to claim 3, characterized in that: After the user agrees to the authorization, a login request carrying the access code is sent to the application backend service, and the application backend service responds to the login request by initiating a number replacement to the operator backend service to perform one-click login with the mobile phone number, including: After the application backend service receives the login request from the currently enabled program, it initiates a number replacement request carrying the access code and the login device name to the agent backend service; The agent backend service responds to the number replacement request, replaces the current logged-in mobile phone number based on the access code, and calls the operator backend service to update the pre-acquired number success number and pre-acquired number replacement ratio after the mobile phone number replacement is successful.

5. The one-key login method using a mobile phone number according to claim 4, characterized in that: After the user agrees to the authorization, the login request carrying the access code is sent to the application backend service, and the application backend service responds to the login request by initiating a number replacement to the operator backend service to perform one-click login with the mobile phone number, and further includes: Feedback the replaced mobile phone number to the agent backend service through the operator backend service, so as to call the agent backend service to return the received mobile phone number to the application backend service; The application backend service is called to respond to the mobile phone number sent by the agent backend service, and the mobile phone number login result is fed back to the currently enabled program.

6. A one-key login device for mobile phone number, characterized in that: Used to implement the one-key login method for mobile phone number according to any one of claims 1 to 5, the device comprises: A number acquisition request module, used to receive a pre-number acquisition request sent from the operator's number acquisition SDK, and generate an access code in response to the pre-number acquisition request; A mask image generation module, used for updating the number of successful pre-acquisition numbers of the currently enabled program based on the access code, calculating the pre-acquisition number replacement ratio, and generating a corresponding mobile phone number mask image according to the level of the pre-acquisition number replacement ratio; A data feedback module is used to feed back the mobile phone number mask image and access code to the operator number acquisition SDK, and feed back the mobile phone number mask image and access code to the agent SDK by calling an API callback function through the operator number acquisition SDK; A user authorization module, used to call an API callback function through the agent SDK to feed back the mobile phone number mask image and the access code to the currently enabled program, so as to display an authorization login page and the mobile phone number mask image to the user through the currently enabled program, and obtain user authorization information; A one-click login module, used to send a login request carrying the access code to the application backend service after the user agrees to the authorization, and the application backend service responds to the login request by initiating a number replacement to the operator backend service to perform one-click login with the mobile phone number; The mobile phone number mask image has annotation information of the operator's backend service, and the annotation information is used to limit the mobile phone number login scenario of the currently enabled program.

7. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Small program password-free login method and device, equipment, storage medium and program product

    CN118842618A

  • Communication authentication method and device, electronic equipment, storage medium and program product

    CN118890620A