Order generation method and device, equipment and storage medium
By automatically identifying and generating the number type and length in the order generation interface, the problem of users in the prior art need to manually fill in numbers and increase the operation steps, which improves the convenience of order generation.
Patent Information
- Application Number
- CN202411477978.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-21
- Publication Date
- 2025-01-10
AI Technical Summary
During the existing electronic order generation process, users need to manually fill in the area code, phone number and extension number, which adds operation steps and filling time, resulting in more complex and inconvenient order generation.
Provide an order generation method, which obtains the user's target number by displaying the number input box in the order interface, automatically identify the number type and string length based on the initial input number, reduces the user's operation steps, generates a complete number, and is based on the number. Generate an order.
Users can intelligently identify the number type and length by entering a text box, without selecting different text boxes, which reduces operation steps and filling time and improves the convenience of order generation.
Smart Images

Figure CN119295186A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to an order generation method, device, equipment and storage medium. Background Art
[0002] With the development of Internet technology, more and more businesses can be operated online. In the freight scenario, users can generate electronic freight orders online. After the driver accepts the order, he will contact the user according to the contact information included in the electronic freight order and go to the loading location.
[0003] In the existing electronic order generation process, users are required to manually fill in contact information. Specifically, on the page for filling in contact information, the area code, telephone number and extension number are divided into three independent text input boxes, requiring users to fill in the corresponding numbers in the corresponding positions according to their own circumstances. This increases the user's operation steps and filling time, making order generation more complicated and inconvenient. Summary of the invention
[0004] The main purpose of this application is to provide an order generation method, device, computer equipment and storage medium, aiming to solve the technical problem that the existing order generation is relatively complex and not convenient enough.
[0005] To achieve the above objectives, the present application provides an order generation method, which includes:
[0006] Display an order interface; the order interface includes a number input box, and the number input box is used to obtain a target number corresponding to the user;
[0007] Receiving an initial number input by a user into the number input box; the initial number is the first number in the string corresponding to the number input box;
[0008] Determine the number type based on the value of the initial number, and determine the length of the character string corresponding to the number input box based on the number type;
[0009] Upon receiving N inputs from the user to the number input box, generating a target number corresponding to the user; the value of N is the difference between the length of the character string and 1;
[0010] An order is generated based on the target number corresponding to the user.
[0011] Optionally, determining the number type based on the value of the initial number, and determining the length of the character string corresponding to the number input box based on the number type, includes:
[0012] When the value of the initial digit is equal to 0, determining that the number type is an area code;
[0013] In the case where the number type is an area code, determining that the length of the character string corresponding to the number input box is a first preset value;
[0014] The step of generating a target number corresponding to the user upon receiving N inputs performed by the user on the number input box comprises:
[0015] When receiving the Mth input performed by the user on the number input box, generating a separator based on the numbers included in the number input box; M is 2 or 3;
[0016] When the Nth input performed by the user on the number input box is received, a target number corresponding to the user is generated.
[0017] Optionally, determining the number type based on the value of the initial number, and determining the length of the character string corresponding to the number input box based on the number type, includes:
[0018] When the value of the initial number is equal to 1, the number type is determined to be a mobile phone number;
[0019] In the case where the number type is a mobile phone number, determining that the length of the character string corresponding to the number input box is a second preset value; the second preset value is less than the first preset value;
[0020] The step of generating a target number corresponding to the user upon receiving N inputs performed by the user on the number input box comprises:
[0021] When an Nth input performed by the user on the number input box is received, a target number corresponding to the user is generated based on the initial number and a number determined by the user based on the Nth input.
[0022] Optionally, determining the number type based on the value of the initial number, and determining the length of the character string corresponding to the number input box based on the number type, includes:
[0023] When the value of the initial digit is not equal to 0 or 1, determining that the number type is a landline number;
[0024] In the case where the number type is a landline number, determining that the length of the character string corresponding to the number input box is a third preset value; the third preset value is less than the first preset value and greater than the second preset value;
[0025] The step of generating a target number corresponding to the user upon receiving N inputs performed by the user on the number input box comprises:
[0026] When receiving the seventh input performed by the user on the number input box, generating a separator based on the numbers included in the number input box;
[0027] When the Nth input performed by the user on the number input box is received, a target number corresponding to the user is generated.
[0028] Optionally, generating an order based on the target number corresponding to the user includes:
[0029] Receive the starting point address input by the user;
[0030] In response to the starting point address, K candidate addresses associated with the starting point address are displayed on the order interface; K is a positive integer greater than 1;
[0031] receiving a confirmation instruction from the user for the K candidate addresses;
[0032] In response to the confirmation instruction, determining the candidate address pointed to by the confirmation instruction as the destination address;
[0033] An order is generated based on the starting address, the ending address and the target number corresponding to the user.
[0034] Optionally, displaying K candidate addresses associated with the starting address on the order interface includes:
[0035] Query multiple destination addresses associated with the origin address in historical orders;
[0036] The K candidate addresses are determined according to the number of historical orders associated with each destination address.
[0037] Optionally, after generating the order based on the target number corresponding to the user, the method further includes:
[0038] Obtaining the target number in the order and converting the target number into a private mobile phone number, or;
[0039] A target number in the order is obtained, and the target number is converted into a private landline number.
[0040] In addition, to achieve the above-mentioned purpose, the present application also provides an order generating device, the order generating device comprising:
[0041] A display module, used to display an order interface; the order interface includes a number input box, and the number input box is used to obtain a target number corresponding to the user;
[0042] A receiving module, used for receiving an initial number input by a user into the number input box; the initial number is the first number in the string corresponding to the number input box;
[0043] A determination module, configured to determine a number type based on the value of the initial number, and determine a length of a character string corresponding to the number input box based on the number type;
[0044] A first generating module is used to generate a target number corresponding to the user when receiving N inputs executed by the user on the number input box; the value of N is the difference between the length of the character string and 1;
[0045] The second generating module is used to generate an order based on the target number corresponding to the user.
[0046] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:
[0047] The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the order generation method described in any one of the embodiments of the present application are implemented.
[0048] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:
[0049] The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the order generation method described in any one of the embodiments of the present application are implemented.
[0050] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0051] The present application provides an order generation method, device, equipment and storage medium, the method comprising: displaying an order interface; the order interface includes a number input box; the number input box is used to obtain the target number corresponding to the user; receiving the initial number input by the user to the number input box; the initial number is the first number in the string corresponding to the number input box; determining the number type based on the value of the initial number, and determining the length of the string corresponding to the number input box based on the number type; generating the target number corresponding to the user when receiving N inputs performed by the user to the number input box; the value of N is the difference between the string length and 1; generating an order based on the target number corresponding to the user. In an embodiment of the present application, the number type can be determined according to the initial number input by the user, and then the string length corresponding to the number input box can be determined according to the number type. In an embodiment of the present application, the user can intelligently identify the number type and number length by entering a number in a text box, without the user having to select different text boxes to fill in, thereby reducing the user's operation steps and filling time, and improving the convenience of the order generation process. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0053] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0054] Figure 2 is a flow chart of the order generation method provided in an embodiment of the present application;
[0055] Figure 3 This is one of the schematic diagrams of the order interface provided in the embodiment of the present application;
[0056] Figure 4 This is the second schematic diagram of the order interface provided in the embodiment of the present application;
[0057] Figure 5 This is the third schematic diagram of the order interface provided in the embodiment of the present application;
[0058] Figure 6 This is the fourth schematic diagram of the order interface provided in the embodiment of the present application;
[0059] Figure 7 This is the fifth schematic diagram of the order interface provided in the embodiment of the present application;
[0060] Figure 8It is a structural diagram of an embodiment of an order generating device provided in an embodiment of the present application;
[0061] Fig. 9 It is a basic structural block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0062] The order generation method provided in the embodiment of the present application is applied to the order generation device. Unless otherwise defined, all technical and scientific terms used in this article have the same meaning as those generally understood by technicians in the technical field of this application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned drawings and any variations thereof are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of this application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0063] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0064] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0065] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0066] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social online platform software, etc.
[0067] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, etc.
[0068] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0069] It should be noted that the order generation method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the order generation device is generally set in the server / terminal device.
[0070] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0071] Please refer to Figure 2 , shows a flow chart of an embodiment of the order generation method proposed in the present application. The embodiment of the present application can acquire and process relevant data based on artificial intelligence technology.
[0072] The order generation method provided in the embodiment of the present application comprises the following steps:
[0073] S210, displaying an order interface.
[0074] In an order generation scenario, a user may generate an order through an application, which displays an order interface, wherein the order interface includes a number input box, and the number input box is used to obtain a target number corresponding to the user.
[0075] S220, receiving an initial number input by the user into the number input box.
[0076] As mentioned above, the order interface includes a number input box.
[0077] In this step, the user can perform corresponding operations on the number input box to input a number in the number input box, and determine the number as the initial number, which is the first number in the string corresponding to the number input box.
[0078] S230, determining a number type based on the value of the initial number, and determining a length of a character string corresponding to the number input box based on the number type.
[0079] In this step, the number type can be determined based on the value of the initial digit, where the number type includes area code, landline number and mobile phone number; and the length of the character string corresponding to the number input box is determined based on the number type.
[0080] It should be understood that if the number type is an area code, the length of the string corresponding to the number input box is at most 16 digits; if the number type is a landline number, the length of the string corresponding to the number input box is at most 12 digits; if the number type is a mobile phone number, the length of the string corresponding to the number input box is at most 11 digits.
[0081] S240: upon receiving N inputs from the user on the number input box, generating a target number corresponding to the user.
[0082] In this step, after receiving the initial number executed by the user in the number input box, continue to receive N inputs executed by the user in the number input box. When receiving N inputs executed by the user in the number input box, it means that the user has entered the complete number, and then generate the target number corresponding to the user.
[0083] The value of N is the difference between the string length and 1.
[0084] For example, the length of the character string corresponding to the number input box is 11 digits. After determining the initial number input by the user, if a 10-digit number input by the user is received again, the target number corresponding to the user is generated.
[0085] S250, generating an order based on the target number corresponding to the user.
[0086] In this step, after determining the target number corresponding to the user, an order can be generated based on the target number and other information entered by the user in the order interface, such as the starting address and the end address.
[0087] In the embodiment of the present application, the number type can be determined according to the initial number input by the user, and then the length of the string corresponding to the number input box can be determined according to the number type. In the embodiment of the present application, the user can intelligently identify the number type and number length by entering the number in a text box, without the user having to select different text boxes to fill in, thereby reducing the user's operation steps and filling time, and improving the convenience of the order generation process.
[0088] Optionally, determining the number type based on the value of the initial number, and determining the length of the character string corresponding to the number input box based on the number type, includes:
[0089] When the value of the initial digit is equal to 0, determining that the number type is an area code;
[0090] In the case where the number type is an area code, determining that the length of the character string corresponding to the number input box is a first preset value;
[0091] The step of generating a target number corresponding to the user upon receiving N inputs performed by the user on the number input box comprises:
[0092] When receiving the Mth input performed by the user on the number input box, generating a separator based on the numbers included in the number input box; M is 2 or 3;
[0093] When the Nth input performed by the user on the number input box is received, a target number corresponding to the user is generated.
[0094] In this embodiment, if the initial number is 0, indicating that the number type is an area code, the length of the character string corresponding to the number input box is determined to be a first preset value. Optionally, the first preset value is 16.
[0095] Further, if the user's Mth input to the number input box is received, a separator symbol is generated based on the numbers included in the number input box. Optionally, M is 2 or 3.
[0096] For example, the initial digit entered by the user is 0, the second digit entered by the user is 1, and the third digit entered by the user is 0. Since 010 is the area code of Beijing, a separator is generated, and the user can enter a specific landline number after the separator. In this case, M is determined to be 2.
[0097] For another example, the initial digit entered by the user is 0, the second digit entered by the user is 7, the third digit entered by the user is 3, and the fourth digit entered by the user is 1. Since 01731 is the area code of Changsha, a separator is generated, and the user can enter a specific landline number after the separator. In this case, M is determined to be 3.
[0098] It should be understood that when a separator symbol is generated and the user enters 8 digits after the separator symbol, it means that the user has entered the complete area code and landline number, and the separator symbol can be generated again, and the user can enter the extension number after the separator symbol.
[0099] In this embodiment, when the Nth input performed by the user on the number input box is received, that is, the user enters the complete area code, landline number and extension number, a target number corresponding to the user is generated.
[0100] For easier understanding, see Figure 3, Figure 3 This is an order interface where the initial number entered by the user is 0.
[0101] In this embodiment, the number type is intelligently identified based on the initial number input by the user; and the separator symbol is automatically filled in during the user input of the number; the above method reduces the user's operation and makes it more convenient for the user to fill in the number. In addition, the number of characters of different number types is limited to prevent input errors and number abuse.
[0102] Optionally, determining the number type based on the value of the initial number, and determining the length of the character string corresponding to the number input box based on the number type, includes:
[0103] When the value of the initial number is equal to 1, the number type is determined to be a mobile phone number;
[0104] In the case where the number type is a mobile phone number, determining that the length of the character string corresponding to the number input box is a second preset value; the second preset value is less than the first preset value;
[0105] The step of generating a target number corresponding to the user upon receiving N inputs performed by the user on the number input box comprises:
[0106] When an Nth input performed by the user on the number input box is received, a target number corresponding to the user is generated based on the initial number and a number determined by the user based on the Nth input.
[0107] In this embodiment, if the initial number is 1, indicating that the number type is a mobile phone number, the length of the character string corresponding to the number input box is determined to be a second preset value, and the second preset value is less than the first preset value. Optionally, the second preset value is 11.
[0108] In this embodiment, when the Nth input performed by the user on the number input box is received, that is, when the user enters a complete mobile phone number, a target number corresponding to the user is generated.
[0109] For easier understanding, see Figure 4 , Figure 4 The order interface with the initial number entered by the user as 1.
[0110] In this embodiment, the number type is intelligently identified according to the initial number input by the user, and the above method reduces the user's operation and makes it more convenient for the user to fill in the number. In addition, the number of characters of different number types is limited to prevent input errors and number abuse.
[0111] Optionally, determining the number type based on the value of the initial number, and determining the length of the character string corresponding to the number input box based on the number type, includes:
[0112] When the value of the initial digit is not equal to 0 or 1, determining that the number type is a landline number;
[0113] In the case where the number type is a landline number, determining that the length of the character string corresponding to the number input box is a third preset value; the third preset value is less than the first preset value and greater than the second preset value;
[0114] The step of generating a target number corresponding to the user upon receiving N inputs performed by the user on the number input box comprises:
[0115] When receiving the seventh input performed by the user on the number input box, generating a separator based on the numbers included in the number input box;
[0116] When the Nth input performed by the user on the number input box is received, a target number corresponding to the user is generated.
[0117] In this embodiment, if the initial number is not equal to 0 or 1, indicating that the number type is a landline number, the length of the character string corresponding to the number input box is determined to be a third preset value, which is less than the first preset value and greater than the second preset value. Optionally, the third preset value is 12.
[0118] Furthermore, if the seventh input of the user to the number input box is received, a separator symbol is generated based on the numbers included in the number input box.
[0119] For example, the initial digit entered by the user is 2, and the subsequent 7-digit digit entered is 2394589, which means that the user has entered the complete landline number 22394589. A separator is generated, and the user can enter the specific extension number after the separator.
[0120] In this embodiment, in this embodiment, when the Nth input performed by the user on the number input box is received, that is, the user enters the complete landline number and extension number, a target number corresponding to the user is generated.
[0121] For easier understanding, see Figure 5 , Figure 5 This is an order interface where the initial number entered by the user is not 0 or 1.
[0122] In this embodiment, the number type is intelligently identified based on the initial number input by the user; and the separator symbol is automatically filled in during the user input of the number; the above method reduces the user's operation and makes it more convenient for the user to fill in the number. In addition, the number of characters of different number types is limited to prevent input errors and number abuse.
[0123] Optionally, generating an order based on the target number corresponding to the user includes:
[0124] Receive the starting point address input by the user;
[0125] In response to the starting point address, K candidate addresses associated with the starting point address are displayed on the order interface; K is a positive integer greater than 1;
[0126] receiving a confirmation instruction from the user for the K candidate addresses;
[0127] In response to the confirmation instruction, determining the candidate address pointed to by the confirmation instruction as the destination address;
[0128] An order is generated based on the starting address, the ending address and the target number corresponding to the user.
[0129] In this embodiment, the order interface further includes a starting address input box and a destination address input box. In an optional freight order generation scenario, the starting address input box is used to obtain a loading address, and the destination address input box is used to obtain a discharge address.
[0130] In the prior art, the user needs to input the starting address in the starting address input box and the ending address in the ending address input box, which increases the user's operation steps, makes the order generation method more complicated, and reduces the convenience of the order generation process.
[0131] In order to solve the above-mentioned technical problems, in this embodiment, after receiving the starting address entered by the user, K candidate addresses associated with the starting address are displayed on the order interface; when the user inputs a confirmation instruction, the end point address among the K candidate addresses is determined, and then an order is generated based on the starting address, the end point address and the target number corresponding to the user.
[0132] Optionally, in the freight order generation scenario, a bubble component may be displayed on the order interface, the bubble component including K candidate addresses:
[0133] (1) Cold start to enter the order interface, and the user has entered the shipping address which is not empty.
[0134] (2) After the user enters the shipping address, click the "Confirm Shipping Address" button on the map page of the order interface to return to the order interface.
[0135] (3) When the shipping and receiving addresses are swapped, if the shipping address is filled in after the swap, a bubble will be displayed if the shipping address is empty.
[0136] (4) When returning to the order interface from other pages, and the shipping address is not empty.
[0137] (5) When returning to the order interface from the application page, and the shipping address is not empty.
[0138] Optionally, the bubble component may also include the name of the unloading address, recommended loading and unloading points, and the name and telephone number of the unloading contact person at the unloading address.
[0139] It should be understood that the above-mentioned order can be generated by determining the order price based on the distance between the starting address and the ending address; filling in the starting address, the ending address, the order price and the user's corresponding target number into a preset order template to generate an electronic order.
[0140] In this embodiment, the user does not need to enter the destination address in the destination address input box, and multiple recommended addresses can be displayed for the user to choose from, thereby reducing the user's operation steps and improving the convenience of the order generation process.
[0141] The following specifically describes how to determine the K candidate addresses associated with the starting address:
[0142] Optionally, displaying K candidate addresses associated with the starting address on the order interface includes:
[0143] Query multiple destination addresses associated with the origin address in historical orders;
[0144] The K candidate addresses are determined according to the number of historical orders associated with each destination address.
[0145] In this embodiment, historical orders associated with the user are queried, and multiple destination addresses associated with the starting address input by the user in the historical orders are determined; the number of historical orders associated with each destination address is determined, and the top K destination addresses with a larger number are determined as candidate addresses.
[0146] For example, the starting address input by the user is address A, and the end addresses associated with address A in the historical orders are address B, address C, and address D, where the number of historical orders corresponding to address B is 10, the number of historical orders corresponding to address C is 8, and the number of historical orders corresponding to address D is 5. When K is 2, address B and address C are determined as candidate addresses.
[0147] In this embodiment, multiple destination addresses associated with the starting address in historical orders are queried, and candidate addresses are determined based on the number of historical orders associated with each destination address, so as to determine the candidate address that best matches the starting address and improve the accuracy of the recommended destination address.
[0148] Optionally, after generating the order based on the target number corresponding to the user, the method further includes:
[0149] Obtaining the target number in the order and converting the target number into a private mobile phone number, or;
[0150] A target number in the order is obtained, and the target number is converted into a private landline number.
[0151] In order to protect user privacy and prevent information leakage, such as Figure 6 As shown, after the order is generated, an optional implementation method is to convert the target number into a private mobile phone number. Optionally, the target number can be converted into a combination of random numbers to achieve the conversion of the target number.
[0152] In the freight order generation scenario, a private mobile phone number is displayed on the driver's side, and the driver can click on the private mobile phone number to make a call.
[0153] In order to protect user privacy and prevent information leakage, such as Figure 7 As shown, after the order is generated, an optional implementation method is to convert the target number into a private landline number. Optionally, the target number can be converted into a combination of random numbers to achieve the conversion of the target number.
[0154] In the freight order generation scenario, the driver's side displays a private landline number. The driver can click on the private landline number and enter the extension number to make a call.
[0155] See also Figure 8 , an order generating device 800 provided in an embodiment of the present application, the order generating device 800 comprises:
[0156] Display module 810, used to display an order interface; the order interface includes a number input box, and the number input box is used to obtain the target number corresponding to the user;
[0157] The receiving module 820 is used to receive an initial number input by a user into the number input box; the initial number is the first number in the string corresponding to the number input box;
[0158] A determination module 830, configured to determine a number type based on the value of the initial number, and determine a length of a character string corresponding to the number input box based on the number type;
[0159] The first generating module 840 is used to generate a target number corresponding to the user when receiving N inputs performed by the user on the number input box; the value of N is the difference between the length of the character string and 1;
[0160] The second generating module 850 is used to generate an order based on the target number corresponding to the user.
[0161] Optionally, the determining module 830 is specifically configured to:
[0162] When the value of the initial digit is equal to 0, determining that the number type is an area code;
[0163] In the case where the number type is an area code, determining that the length of the character string corresponding to the number input box is a first preset value;
[0164] The first generating module 840 is specifically used for:
[0165] When receiving the Mth input performed by the user on the number input box, generating a separator based on the numbers included in the number input box; M is 2 or 3;
[0166] When the Nth input performed by the user on the number input box is received, a target number corresponding to the user is generated.
[0167] Optionally, the determining module 830 is further specifically configured to:
[0168] When the value of the initial number is equal to 1, the number type is determined to be a mobile phone number;
[0169] In the case where the number type is a mobile phone number, determining that the length of the character string corresponding to the number input box is a second preset value; the second preset value is less than the first preset value;
[0170] The first generating module 840 is further specifically configured to
[0171] When an Nth input performed by the user on the number input box is received, a target number corresponding to the user is generated based on the initial number and a number determined by the user based on the Nth input.
[0172] Optionally, the determining module 830 is further specifically configured to:
[0173] When the value of the initial digit is not equal to 0 or 1, determining that the number type is a landline number;
[0174] In the case where the number type is a landline number, determining that the length of the character string corresponding to the number input box is a third preset value; the third preset value is less than the first preset value and greater than the second preset value;
[0175] The first generating module 840 is further specifically configured to
[0176] When receiving the seventh input performed by the user on the number input box, generating a separator based on the numbers included in the number input box;
[0177] When the Nth input performed by the user on the number input box is received, a target number corresponding to the user is generated.
[0178] Optionally, the second generating module 850 is specifically configured to:
[0179] Receive the starting point address input by the user;
[0180] In response to the starting point address, K candidate addresses associated with the starting point address are displayed on the order interface; K is a positive integer greater than 1;
[0181] receiving a confirmation instruction from the user for the K candidate addresses;
[0182] In response to the confirmation instruction, determining the candidate address pointed to by the confirmation instruction as the destination address;
[0183] An order is generated based on the starting address, the ending address and the target number corresponding to the user.
[0184] Optionally, the second generating module 850 is further specifically configured to:
[0185] Query multiple destination addresses associated with the origin address in historical orders;
[0186] The K candidate addresses are determined according to the number of historical orders associated with each destination address.
[0187] Optionally, the order generating device 800 further includes:
[0188] a conversion module, used for obtaining a target number in the order and converting the target number into a private mobile phone number, or;
[0189] A target number in the order is obtained, and the target number is converted into a private landline number.
[0190] To solve the above technical problems, the present application also provides a computer device. Fig. 9 , Fig. 9 This is a basic structural block diagram of the computer device in this embodiment.
[0191] The computer device 9 includes a memory 91, a processor 92, and a network interface 93 that are interconnected and communicated through a system bus. It should be noted that the figure only shows a computer device 9 with components 91-93, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0192] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0193] The memory 91 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 91 can be an internal storage unit of the computer device 9, such as a hard disk or memory of the computer device 9. In other embodiments, the memory 91 can also be an external storage device of the computer device 9, such as a plug-in hard disk equipped on the computer device 9, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 91 can also include both the internal storage unit of the computer device 9 and its external storage device. In this embodiment, the memory 91 is generally used to store the operating system and various application software installed on the computer device 9, such as the program code of the order generation method, etc. In addition, the memory 91 can also be used to temporarily store various types of data that have been output or are to be output.
[0194] The processor 92 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 92 is generally used to control the overall operation of the computer device 9. In this embodiment, the processor 92 is used to run the program code stored in the memory 91 or process data, such as running the program code of the order generation method.
[0195] The network interface 93 may include a wireless network interface or a wired network interface. The network interface 93 is generally used to establish a communication connection between the computer device 9 and other electronic devices.
[0196] The present application also provides another implementation, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores the order generation program, and the order generation program can be executed by at least one processor so that the at least one processor performs the steps of the order generation method as described above.
[0197] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware online platform, and of course, by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0198] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0199] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. An order generation method, characterized in that: include: Display the order interface; The order interface includes a number input box, which is used to obtain the target number corresponding to the user; Receiving an initial number input by a user into the number input box; The initial number is the first number in the string corresponding to the number input box; Determine the number type based on the value of the initial number, and determine the length of the character string corresponding to the number input box based on the number type; Upon receiving N inputs from the user to the number input box, generating a target number corresponding to the user; the value of N is the difference between the length of the character string and 1; An order is generated based on the target number corresponding to the user.
2. The method according to claim 1, characterized in that The determining of the number type based on the value of the initial number, and determining the length of the character string corresponding to the number input box based on the number type, includes: When the value of the initial digit is equal to 0, determining that the number type is an area code; When the number type is an area code, determining that the length of the character string corresponding to the number input box is a first preset value; The step of generating a target number corresponding to the user upon receiving N inputs performed by the user on the number input box comprises: When receiving the Mth input performed by the user on the number input box, generating a separator based on the numbers included in the number input box; M is 2 or 3; When the Nth input performed by the user on the number input box is received, a target number corresponding to the user is generated.
3. The method according to claim 1, characterized in that The determining of the number type based on the value of the initial number, and determining the length of the character string corresponding to the number input box based on the number type, includes: When the value of the initial number is equal to 1, the number type is determined to be a mobile phone number; In the case where the number type is a mobile phone number, determining that the length of the character string corresponding to the number input box is a second preset value; the second preset value is less than the first preset value; The step of generating a target number corresponding to the user upon receiving N inputs performed by the user on the number input box comprises: When an Nth input performed by the user on the number input box is received, a target number corresponding to the user is generated based on the initial number and a number determined by the user based on the Nth input.
4. The method according to claim 1, characterized in that: The determining of the number type based on the value of the initial number, and determining the length of the character string corresponding to the number input box based on the number type, includes: When the value of the initial digit is not equal to 0 or 1, determining that the number type is a landline number; In the case where the number type is a landline number, determining that the length of the character string corresponding to the number input box is a third preset value; the third preset value is less than the first preset value and greater than the second preset value; The step of generating a target number corresponding to the user upon receiving N inputs performed by the user on the number input box comprises: When receiving the seventh input performed by the user on the number input box, generating a separator based on the numbers included in the number input box; When the Nth input performed by the user on the number input box is received, a target number corresponding to the user is generated.
5. The method according to claim 1, characterized in that The generating an order based on the target number corresponding to the user includes: Receive the starting point address input by the user; In response to the starting point address, K candidate addresses associated with the starting point address are displayed on the order interface; K is a positive integer greater than 1; receiving a confirmation instruction from the user for the K candidate addresses; In response to the confirmation instruction, determining the candidate address pointed to by the confirmation instruction as the destination address; An order is generated based on the starting address, the ending address and the target number corresponding to the user.
6. The method according to claim 5, characterized in that The K candidate addresses associated with the starting address are displayed on the order interface, including: Query multiple destination addresses associated with the origin address in historical orders; The K candidate addresses are determined according to the number of historical orders associated with each destination address.
7. The method according to any one of claims 1 to 6, characterized in that After generating the order based on the target number corresponding to the user, the method further includes: Obtaining the target number in the order and converting the target number into a private mobile phone number, or; A target number in the order is obtained, and the target number is converted into a private landline number.
8. An order generating device, characterized in that: include: Display module, used to display the order interface; The order interface includes a number input box, which is used to obtain the target number corresponding to the user; A receiving module, used for receiving an initial number input by a user into the number input box; The initial number is the first number in the string corresponding to the number input box; A determination module, configured to determine a number type based on the value of the initial number, and determine a length of a character string corresponding to the number input box based on the number type; A first generating module is used to generate a target number corresponding to the user when receiving N inputs executed by the user on the number input box; the value of N is the difference between the length of the character string and 1; The second generating module is used to generate an order based on the target number corresponding to the user.
9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the order generation method as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the order generation method according to any one of claims 1 to 7.
Citation Information
Cited By
Segmentation method and device for input data of input box, electronic equipment and medium
CN121187484A