Request processing method and device based on customer attribution, equipment and medium
By receiving the business participation request of the client, obtain and comprehensively integrate the customer's geographical information, mobile phone number and network address, determine the customer's belonging place and determine whether it allows participation in the business, solve the problem of falsifying the attribution of customers in the existing technology, realized the realization, realized the realization, and realized the realization. Business accuracy and security.
Patent Information
- Application Number
- CN202411237803.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2025-01-28
AI Technical Summary
The existing methods of obtaining customer's place of origin are easily bypassed by customers through closing permissions or forging locations, resulting in wasted business resources.
By receiving business participation requests sent by the client, obtain the customer's geographical location information, mobile phone numbers and network addresses, comprehensively determine the customer's belonging place, and determine whether the customer is allowed to participate in the business according to the scope of the attribution of the business logo.
Effectively avoid the risks of the customer forgery at the place of belonging, avoid unnecessary resources waste in the process of business development, and improve the accuracy and security of the business.
Smart Images

Figure CN119383221A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a method, device, electronic device and storage medium for processing requests based on customer location. Background Art
[0002] With the continuous development of the Internet system, more and more platforms are undertaking various businesses, and the number of connected customers will also increase. Especially with the development and growth of mobile Internet business, there are many business scenarios that require confirmation of the customer's location in order to provide more accurate services. For example, merchants provide coupons or financial marketing to customers in a specific location.
[0003] However, existing methods for obtaining customer locations often use a single technical form. When the client closes some necessary permissions under certain circumstances, the customer location may not be obtained. The location may also be bypassed or forged by malicious customers, resulting in unnecessary waste of resources in the business process. Summary of the invention
[0004] The purpose of this application is to provide a request processing method, device, electronic device and storage medium based on customer location.
[0005] In a first aspect, an embodiment of the present application provides a method for processing a request based on a customer's location, including:
[0006] Receive a service participation request sent by a client, wherein the service participation request carries a service identifier;
[0007] Obtaining the geographical location information of the client, as well as the mobile phone number and network address corresponding to the client;
[0008] Determine the customer location corresponding to the client according to the geographic location information, the mobile phone number and the network address;
[0009] If the customer's location is within the location corresponding to the service identifier, the client is allowed to participate in the service; otherwise, the client is not allowed to participate in the service.
[0010] In a possible implementation, determining the customer location corresponding to the client according to the geographic location information, the mobile phone number, and the network address includes:
[0011] Parse the mobile phone number to obtain the location information of the mobile phone number of the client;
[0012] Resolving the network address to obtain the network location information of the client;
[0013] The customer location corresponding to the client is determined according to the mobile phone number location information, the network location information and the geographical location information.
[0014] In a possible implementation, determining the customer location corresponding to the client according to the mobile phone number location information, the network location information and the geographic location information includes:
[0015] If at least two of the mobile phone number location information, the network location information and the geographic location information are the same, the same location information is determined as the customer location corresponding to the client; otherwise, the client is not allowed to participate in the service.
[0016] In a possible implementation, the method further includes:
[0017] receiving an update request for the attribution range corresponding to the service identifier, wherein the update request carries the customer attribution to be updated and an update method;
[0018] The attribution range corresponding to the service identifier is updated according to the update request.
[0019] In a possible implementation, the updating method is adding or deleting.
[0020] In a second aspect, an embodiment of the present application provides a request processing device based on a customer's location, including:
[0021] A receiving module, used to receive a service participation request sent by a client, wherein the service participation request carries a service identifier;
[0022] An acquisition module, used to acquire the geographical location information of the client, and the mobile phone number and network address corresponding to the client;
[0023] A determination module, configured to determine a customer location corresponding to the client according to the geographic location information, the mobile phone number and the network address;
[0024] The judgment module is used to allow the client to participate in the service if the client's location is within the location corresponding to the service identifier; otherwise, the client is not allowed to participate in the service.
[0025] In a possible implementation, the determining module is specifically configured to:
[0026] Parse the mobile phone number to obtain the location information of the mobile phone number of the client;
[0027] Resolving the network address to obtain the network location information of the client;
[0028] The customer location corresponding to the client is determined according to the mobile phone number location information, the network location information and the geographical location information.
[0029] In a possible implementation, the determining module is specifically configured to:
[0030] If at least two of the mobile phone number location information, the network location information and the geographic location information are the same, the same location information is determined as the customer location corresponding to the client; otherwise, the client is not allowed to participate in the service.
[0031] In a possible implementation manner, the device further includes:
[0032] The update module is used to receive an update request for the attribution range corresponding to the service identifier, wherein the update request carries the customer attribution to be updated and the update method; and update the attribution range corresponding to the service identifier according to the update request.
[0033] In a possible implementation, the updating method is adding or deleting.
[0034] In a third aspect, the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in the first aspect.
[0035] In a fourth aspect, the present application provides a computer-readable storage medium having computer-readable instructions stored thereon, wherein the computer-readable instructions can be executed by a processor to implement the method described in the first aspect.
[0036] Compared with the prior art, the request processing method based on customer location provided by the present application receives a service participation request sent by a client, wherein the service participation request carries a service identifier; obtains the geographical location information of the client, as well as the mobile phone number and network address corresponding to the client; determines the customer location corresponding to the client based on the geographical location information, the mobile phone number and the network address; if the customer location is within the location corresponding to the service identifier, the client is allowed to participate in the service; otherwise, the client is not allowed to participate in the service. It can be seen that the present application obtains customer location information through multi-dimensional information fusion processing, avoiding the risk of customers forging locations by tampering with positioning, thereby avoiding unnecessary waste of resources in the process of business development. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0038] Figure 1 A flowchart of a method for processing a request based on a customer's location provided in an embodiment of the present application is shown;
[0039] Figure 2 A flowchart of a specific method for processing a request based on a customer's location provided in an embodiment of the present application is shown;
[0040] Figure 3 A schematic diagram of the structure of a request processing device based on a customer's location provided in an embodiment of the present application is shown;
[0041] Figure 4 A schematic diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0042] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0043] The present application provides a method, device, electronic device and storage medium for request processing based on customer location, which are described in detail below in conjunction with the accompanying drawings.
[0044] Please refer to Figure 1 , Figure 1 1 is a flowchart of a method for processing a request based on a customer's location provided in an embodiment of the present application. The method can be applied to a service server (hereinafter referred to as a server), and includes the following steps S101 to S104:
[0045] S101, receiving a service participation request sent by a client, wherein the service participation request carries a service identifier;
[0046] For example, the service identifier can be service A, service B, or service C. The service participation request indicates that the client applies to participate in a service, such as applying to participate in the activities of the government or the financial industry to distribute coupons or conduct financial marketing to customers in a specific location. The client can be a browser, application, or applet.
[0047] S102, obtaining the geographical location information of the client, and the mobile phone number and network address corresponding to the client;
[0048] In response to the server's request, the client obtains the client's geographic location information by calling the H5 geographic location API interface, for example, obtaining the GPS location information of the client's terminal with the user's authorization.
[0049] Specifically, the calling code of the H5 geolocation API interface is embedded in the web application. When the user accesses the web application, a prompt pops up through the browser, requesting the user to authorize the acquisition of geographic location information. After the user authorizes, the browser calls the H5 geolocation API interface to obtain the user's current geographic location information. The acquired geographic location information is returned to the web application in the form of longitude and latitude for subsequent processing. The corresponding location can be found based on the longitude and latitude.
[0050] The client can obtain the customer's real mobile phone number, that is, the mobile phone number corresponding to the client, by prompting the customer to enter the mobile phone number, authorizing the mini program mobile phone number, or sending a text message verification code downlink through the telecom operator interface.
[0051] The network address of the client can be obtained from the service participation request sent by the client, for example, the IP address of the client can be obtained from the HTTP request sent by the client.
[0052] S103, determining a customer location corresponding to the client according to the geographical location information, the mobile phone number and the network address;
[0053] After receiving the geographic location information, the mobile phone number and the network address, the server performs data analysis and verification to ensure the authenticity and validity of the information. For example, the server uses a specific algorithm to perform comprehensive calculations based on the received mobile phone number, IP address and GPS positioning information. The algorithm takes into account the weights of different data sources and the possible error range. The server determines the client's location based on the calculation results and provides corresponding services or feedback.
[0054] Specifically, the above step S103 can be implemented as follows:
[0055] Parse the mobile phone number to obtain the location information of the mobile phone number of the client;
[0056] Resolving the network address to obtain the network location information of the client;
[0057] The customer location corresponding to the client is determined according to the mobile phone number location information, the network location information and the geographical location information.
[0058] The server calculates the geographic location based on the mobile phone number and IP address information, and compares the processing result with the acquired geographic location information of the client to determine the client's true location. The parameters of the client's location may include province, city, region and other information.
[0059] In some embodiments, the above-mentioned step of determining the customer location corresponding to the client based on the mobile phone number location information, the network location information and the geographic location information can be implemented as follows: if at least two of the mobile phone number location information, the network location information and the geographic location information are the same, then the same location information is determined as the customer location corresponding to the client; otherwise, the client is not allowed to participate in the service.
[0060] Specifically, if the mobile phone number location information, the network location information, and the geographic location information are all the same, any one of the three location information is determined as the customer location corresponding to the client; if two of the mobile phone number location information, the network location information, and the geographic location information are the same, any one of the two same location information is determined as the customer location corresponding to the client. If the mobile phone number location information, the network location information, and the geographic location information are all different, the customer location of the client cannot be determined, and the client is not allowed to participate in the service.
[0061] S104: If the customer's location is within the location corresponding to the service identifier, the client is allowed to participate in the service; otherwise, the client is not allowed to participate in the service.
[0062] Specifically, the embodiment of the present application pre-configures the location range corresponding to the service identifier on the server. For example, service A corresponds to location 1, location 2, and location 3; service B corresponds to location 1, location 3, and location 5; and service C corresponds to location 2, location 3, and location 4.
[0063] Determining whether the customer's location is within the location corresponding to the service identifier is a verification strategy to determine whether a customer's location can participate in the corresponding service and return the participation status of whether the customer can participate in the service to the client.
[0064] In some embodiments, the above-mentioned request processing method based on the customer's location may further include the following steps:
[0065] An update request for the attribution range corresponding to the service identifier is received, wherein the update request carries the customer attribution to be updated and an update method; and the attribution range corresponding to the service identifier is updated according to the update request.
[0066] Specifically, the updating method is adding or deleting. For example, according to the update request, the location 1 corresponding to the service A is deleted; or according to the update request, the location 4 is added to the location range corresponding to the service A.
[0067] The request processing method based on the customer's location provided in the embodiment of the present application has the following beneficial effects:
[0068] The request processing method based on customer location provided by the present application receives a service participation request sent by a client, wherein the service participation request carries a service identifier; obtains the geographical location information of the client, as well as the mobile phone number and network address corresponding to the client; determines the customer location corresponding to the client based on the geographical location information, the mobile phone number and the network address; if the customer location is within the location corresponding to the service identifier, the client is allowed to participate in the service; otherwise, the client is not allowed to participate in the service. It can be seen that the present application obtains customer location information through multi-dimensional information fusion processing, thereby avoiding the risk of customers forging locations by tampering with positioning, etc., thereby avoiding unnecessary waste of resources in the process of conducting business.
[0069] For ease of understanding, this application also provides the following specific request processing method based on the customer's location: Figure 2 The flowchart of the specific request processing method based on the customer's location is shown, which includes the following steps:
[0070] Step 1: The operator sets the restricted area and verification strategy on the server: The business platform develops H5 business pages according to the needs and restricts customers in a certain location to access the business scenario.
[0071] Step 2-Step 4: The customer visits the H5 page of the business platform, calls the platform customer information interface, and returns the current status of not logged in;
[0072] Step 5-Step 8: Guide the customer to enter the mobile phone number and SMS verification code; call the platform login / auth interface to perform login verification and save the login IP;
[0073] The server obtains the real IP address requested by the client through the Http request and saves the login IP.
[0074] Step 9-Step 10: Customer login successful, call "
[0075] navigator.geolocation.getCurrentPosition" method to obtain GPS geographic location authorization.
[0076] If the customer refuses, a strict policy will be adopted, and the user will be prompted in a friendly manner to re-authorize.
[0077] Step 11: The customer agrees to the GPS location authorization, obtains and reports the GPS coordinate information;
[0078] Step 12: The server obtains and saves the three types of information of the customer, namely, IP, GPS, and mobile phone number, through request information acquisition; the server obtains the three types of information of the customer and calls the three methods getIpArea, getGpsArea, and getPhoneArea to obtain three sets of location information; the server uses the three sets of location information obtained and adopts broad, moderate, and strict strategies to call the judgeArea method for integrated judgment, and finally confirms whether the customer meets the location requirements and whether he is allowed to participate in the service.
[0079] Step 13: Return to participation status.
[0080] The embodiments of the present application obtain customer location information through multi-dimensional information fusion processing, thereby avoiding the risk of users falsifying their location by tampering with the location and reducing the risk of financial marketing activities being exploited by users.
[0081] In the above-mentioned embodiment, a request processing method based on customer location is provided. Correspondingly, the present application also provides a request processing device based on customer location. The request processing device based on customer location provided in the embodiment of the present application can implement the above-mentioned request processing method based on customer location. The request processing device based on customer location can be implemented by software, hardware, or a combination of software and hardware. For example, the request processing device based on customer location can include integrated or separate functional modules or units to execute the corresponding steps in the above-mentioned methods. Please refer to Figure 3 As shown, the request processing device 10 based on the customer's location includes:
[0082] The receiving module 101 is used to receive a service participation request sent by a client, wherein the service participation request carries a service identifier;
[0083] The acquisition module 102 is used to acquire the geographical location information of the client, and the mobile phone number and network address corresponding to the client;
[0084] A determination module 103, configured to determine a customer location corresponding to the client according to the geographic location information, the mobile phone number and the network address;
[0085] The judgment module 104 is used to allow the client to participate in the service if the client's location is within the location corresponding to the service identifier; otherwise, the client is not allowed to participate in the service.
[0086] In a possible implementation, the determining module 103 is specifically configured to:
[0087] Parse the mobile phone number to obtain the location information of the mobile phone number of the client;
[0088] Resolving the network address to obtain the network location information of the client;
[0089] The customer location corresponding to the client is determined according to the mobile phone number location information, the network location information and the geographical location information.
[0090] In a possible implementation, the determining module 103 is specifically configured to:
[0091] If at least two of the mobile phone number location information, the network location information and the geographic location information are the same, the same location information is determined as the customer location corresponding to the client; otherwise, the client is not allowed to participate in the service.
[0092] In a possible implementation manner, the device further includes:
[0093] The update module is used to receive an update request for the attribution range corresponding to the service identifier, wherein the update request carries the customer attribution to be updated and the update method; and update the attribution range corresponding to the service identifier according to the update request.
[0094] In a possible implementation, the updating method is adding or deleting.
[0095] The request processing device based on customer location provided in the embodiment of the present application and the request processing method based on customer location provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented therein.
[0096] An embodiment of the present application also provides an electronic device corresponding to the method provided in the aforementioned embodiment, and the electronic device may be an electronic device for a client, such as a mobile phone, a laptop computer, a tablet computer, a desktop computer, etc., to execute the above-mentioned request processing method based on the customer's location.
[0097] Please refer to Figure 4 , which shows a schematic diagram of an electronic device provided by some embodiments of the present application. Figure 4As shown, the electronic device 20 includes: a processor 200, a memory 201, a bus 202 and a communication interface 203, and the processor 200, the communication interface 203 and the memory 201 are connected via the bus 202; the memory 201 stores a computer program that can be run on the processor 200, and when the processor 200 runs the computer program, it executes the request processing method based on the customer's location provided in any of the aforementioned embodiments of the present application.
[0098] The memory 201 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 203 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0099] The bus 202 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 201 is used to store a program, and the processor 200 executes the program after receiving an execution instruction. The request processing method based on the customer's location disclosed in any implementation of the embodiment of the present application may be applied to the processor 200, or implemented by the processor 200.
[0100] The processor 200 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 200. The above processor 200 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a readily available programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 201, and the processor 200 reads the information in the memory 201 and completes the steps of the above method in combination with its hardware.
[0101] The electronic device provided in the embodiment of the present application and the request processing method based on customer location provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented therein.
[0102] An embodiment of the present application also provides a computer-readable storage medium corresponding to the request processing method based on customer location provided in the aforementioned embodiment, on which a computer program (i.e., a program product) is stored. When the computer program is run by a processor, it will execute the request processing method based on customer location provided in any of the aforementioned embodiments.
[0103] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
[0104] The computer-readable storage medium provided by the above-mentioned embodiments of the present application and the request processing method based on customer location provided by the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.
[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application.
Claims
1. A method for processing a request based on a customer's location, characterized in that: include: Receive a service participation request sent by a client, wherein the service participation request carries a service identifier; Obtaining the geographical location information of the client, as well as the mobile phone number and network address corresponding to the client; Determine the customer location corresponding to the client according to the geographic location information, the mobile phone number and the network address; If the customer's location is within the location corresponding to the service identifier, the client is allowed to participate in the service; otherwise, the client is not allowed to participate in the service.
2. The method according to claim 1, characterized in that The determining the customer location corresponding to the client according to the geographical location information, the mobile phone number and the network address includes: Parse the mobile phone number to obtain the location information of the mobile phone number of the client; Resolving the network address to obtain the network location information of the client; The customer location corresponding to the client is determined according to the mobile phone number location information, the network location information and the geographical location information.
3. The method according to claim 2, characterized in that The determining the customer location corresponding to the client according to the mobile phone number location information, the network location information and the geographical location information includes: If at least two of the mobile phone number location information, the network location information and the geographic location information are the same, the same location information is determined as the customer location corresponding to the client; otherwise, the client is not allowed to participate in the service.
4. The method according to claim 1, characterized in that: The method further comprises: receiving an update request for the attribution range corresponding to the service identifier, wherein the update request carries the customer attribution to be updated and an update method; The attribution range corresponding to the service identifier is updated according to the update request.
5. The method according to claim 4, characterized in that The updating method is adding or deleting.
6. A request processing device based on customer location, characterized in that: include: A receiving module, used to receive a service participation request sent by a client, wherein the service participation request carries a service identifier; An acquisition module, used to acquire the geographical location information of the client, and the mobile phone number and network address corresponding to the client; A determination module, configured to determine a customer location corresponding to the client according to the geographic location information, the mobile phone number and the network address; The judgment module is used to allow the client to participate in the service if the client's location is within the location corresponding to the service identifier; otherwise, the client is not allowed to participate in the service.
7. The device according to claim 6, characterized in that The determining module is specifically used for: Parse the mobile phone number to obtain the location information of the mobile phone number of the client; Resolving the network address to obtain the network location information of the client; The customer location corresponding to the client is determined according to the mobile phone number location information, the network location information and the geographical location information.
8. The device according to claim 7, characterized in that The determining module is specifically used for: If at least two of the mobile phone number location information, the network location information and the geographic location information are the same, the same location information is determined as the customer location corresponding to the client; otherwise, the client is not allowed to participate in the service.
9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and the computer-readable instructions can be executed by a processor to implement the method according to any one of claims 1 to 5.