Information processing method, device and storage medium
By obtaining the location information of the client in the information processing device and determining the preset acquisition area, the problem of insufficient accuracy in acquisition request processing in the prior art is solved, more accurate target object acquisition request processing is achieved, and the client is ensured to be in the preset acquisition area. The target object was successfully obtained in the area.
Patent Information
- Application Number
- CN202011263454.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-12
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-11-12
AI Technical Summary
When the existing technology uses the Internet of Things to publish target information of a target object, the accuracy of acquisition request processing is insufficient, resulting in inaccurate acquisition request processing of the target object.
When receiving the acquisition request from the client, obtain the client's location information and determine the preset acquisition area, and only send an acquisition success response to the client when the location information is in the preset acquisition area, ensuring that the information processing device performs operations according to the acquisition request of the target object. Process accurately.
The accuracy of processing the target object acquisition request by the information processing device is improved, ensuring that the client can successfully acquire the target object within the preset acquisition area.
Smart Images

Figure CN113765975B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and in particular to an information processing method and device, and a storage medium. Background Art
[0002] With the continuous development of Internet technology, people's lives have gradually become richer, and people can obtain a variety of information through the Internet.
[0003] In the prior art, the Internet of Things is directly used to publish the target information of the target object, which includes the acquisition time period of the target object and the quantity information of the target object. When the client receives the acquisition instruction of the target object, the target object acquisition success response is directly sent to the client, which reduces the accuracy of processing the acquisition request of the target object. Summary of the invention
[0004] In order to solve the above technical problems, embodiments of the present invention hope to provide an information processing method and device, and a storage medium, which can improve the accuracy of an information processing device in processing a request to obtain a target object.
[0005] The technical solution of the present invention is achieved in this way:
[0006] The present application provides an information processing method, including:
[0007] In the case of receiving a request from a client for obtaining a target object, obtaining first location information from the request; and determining a first receiving time when the request is received; the first location information is location information of the client when the client sends the request;
[0008] Determining a preset acquisition area of the target object;
[0009] When the first location information is in the preset acquisition area, a response indicating successful acquisition of the target object is sent to the client.
[0010] The present application provides an information processing device, the device comprising:
[0011] An acquisition unit, configured to acquire first location information from a request for acquiring a target object from a client upon receiving the request; the first location information is location information of the client when the client sends the request;
[0012] A determining unit, configured to determine a first receiving time when the acquisition request is received; and determine a preset acquisition area of the target object;
[0013] A sending unit is used to send a successful acquisition response of the target object to the client when the first location information is in the preset acquisition area.
[0014] The present application provides an information processing device, the device comprising:
[0015] A memory, a processor and a communication bus, wherein the memory communicates with the processor via the communication bus, and the memory stores an information processing program executable by the processor. When the information processing program is executed, the information processing method described above is executed by the processor.
[0016] An embodiment of the present application provides a storage medium having a computer program stored thereon, which is applied to an information processing device, and is characterized in that the computer program implements the above-mentioned information processing method when executed by a processor.
[0017] The embodiment of the present invention provides an information processing method and device, and a storage medium. The information processing method includes: when receiving a request from a client to obtain a target object, obtaining first location information from the acquisition request; and determining a first reception time when the acquisition request is received; the first location information is the location information of the client when the client sends the acquisition request; determining a preset acquisition area of the target object; and when the first location information is in the preset acquisition area, sending a successful acquisition response of the target object to the client. Using the above method implementation scheme, when the information processing device receives a request from the client to obtain the target object, the information processing device obtains the first location information when the client sends the acquisition request from the acquisition request, so that the information processing device can determine whether to send a successful acquisition response of the target object to the client based on the preset acquisition area and the first location information, thereby improving the accuracy of the information processing device in processing the acquisition request for the target object. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A flow chart of an information processing method provided in an embodiment of the present application;
[0019] Figure 2 An exemplary information processing method provided in the embodiment of the present application Figure 1 ;
[0020] Figure 3 An exemplary information processing method provided in the embodiment of the present application Figure 2 ;
[0021] Figure 4 An exemplary information processing method provided in the embodiment of the present application Figure 3 ;
[0022] Figure 5 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application Figure 1 ;
[0023] Figure 6 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION
[0024] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0025] Embodiment 1
[0026] The present application embodiment provides an information processing method, Figure 1 An information processing method provided in the embodiment of the present application Figure 1 ,like Figure 1 As shown, the information processing method may include:
[0027] S101. When receiving a request from a client for obtaining a target object, obtain first location information from the request; and determine a first receiving time when the request is received; the first location information is location information of the client when the client sends the request.
[0028] An information processing method provided in an embodiment of the present application is applicable to a scenario in which an information processing device receives a request from a client to obtain a target object.
[0029] In the embodiments of the present application, the information processing device can be implemented in various forms. For example, the information processing device described in the present application may include devices such as mobile phones, cameras, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, and devices such as digital TVs and desktop computers.
[0030] In the embodiment of the present application, the client may be a mobile phone, a camera, a tablet computer, a laptop computer, a PDA, a personal digital assistant, a portable media player, a navigation device, a wearable device, a smart bracelet, a pedometer, and other devices, as well as devices such as a digital TV and a desktop computer. The specific device may be determined according to actual conditions, and the embodiment of the present application does not limit this.
[0031] In the embodiment of the present application, the target object may be a flash sale product, a courier, or other items. The specific target object may be determined based on actual conditions, and the embodiment of the present application does not limit this.
[0032] It should be noted that if the target object is a flash sale product, the target object may be milk powder, diapers, milk bottles, paper towels and other products. The target object may also be fruits, such as apples, bananas, oranges and other products. The target object may also be other products. The specific ones can be determined according to the actual situation, and the embodiments of the present application are not limited to this.
[0033] In an embodiment of the present application, the client's request to obtain the target object can be a flash sale request for the target object sent by the client, or a processing request for the target object sent by the client, or other requests sent by the client. The specific request can be determined based on actual conditions, and the embodiment of the present application does not limit this.
[0034] It should be noted that the first location information is the location information of the client when the client sends the acquisition request.
[0035] It should be noted that before sending the acquisition request, the client may first acquire the first location information and add the first location information to the acquisition request. After that, the client sends the acquisition request including the first location information to the information processing device.
[0036] In the embodiment of the present application, the first receiving time is the time when the information processing device receives the acquisition request.
[0037] It should be noted that the first receiving time may be year, month, day, hour, minute, and second information. Specifically, the minimum time unit of the first receiving time may be seconds, the minimum time unit of the first receiving time may be milliseconds, or the minimum time unit of the first receiving time may be microseconds. The specific time unit may be determined based on actual conditions, and the embodiments of the present application do not limit this.
[0038] In the embodiment of the present application, when the information processing device receives the acquisition request, the information processing device determines the first receiving time of receiving the acquisition request.
[0039] In an embodiment of the present application, when the information processing device receives a request from the client to obtain the target object, before obtaining the first location information when the client sent the acquisition request from the acquisition request; when the information processing device receives a browse instruction from the client to the target object, the information processing device obtains the second location information from the browse instruction and determines the second reception time when the browse instruction is received; when the information processing device determines that the second location information is in a preset acquisition area, the information processing device determines the acquisition time range of the target object based on the correspondence between the object and the time range; when the information processing device determines that the second reception time satisfies the acquisition time range, the information processing device detects the second quantity information of the target object; the information processing device sends an acquisition permission notification of the target object to the client, so that the client can obtain the target object within the preset acquisition area and based on the second quantity information.
[0040] It should be noted that the second location information is the location information of the client when the client sends the browsing instruction; the acquisition permission notification carries the second quantity information and the preset acquisition area.
[0041] In the embodiment of the present application, the browsing instruction of the client to the target object may be a browsing instruction sent by the client to the flash sale product.
[0042] In an embodiment of the present application, before sending a browsing instruction for a target object, the client also obtains its own second location information, adds the second location information to the browsing instruction, and then sends the browsing instruction containing the second location information to the information processing device.
[0043] It should be noted that the second location information may be location information obtained by the client based on location services (LBS), or may be location information obtained by the client based on other methods. The specific location information may be determined according to actual conditions, and the embodiments of the present application do not limit this.
[0044] It should also be noted that the second location information may be longitude and latitude information obtained by the client based on LBS.
[0045] In the embodiment of the present application, the first position information and the second position information may be the same, or the first position information and the second position information may be different, which may be determined according to actual conditions, and the embodiment of the present application does not limit this.
[0046] In an embodiment of the present application, the second receiving time is the time determined by the information processing device when the information processing device receives the browsing instruction for the target object sent by the client. When the information processing device receives the browsing instruction for the target object sent by the client, the information processing device determines the second receiving time of the browsing instruction.
[0047] In the embodiment of the present application, if the target object is a flash sale product, the acquisition time range is the flash sale time period of the flash sale product in the preset acquisition area set by the information processing device.
[0048] It should be noted that the acquisition time range includes the acquisition time upper limit value and the acquisition time lower limit value.
[0049] In the embodiment of the present application, when the information processing device determines that the second receiving time is within the acquisition time range, the information processing device determines that the second receiving time satisfies the acquisition time range.
[0050] In the embodiment of the present application, the second quantity information may be the current quantity information of the target objects detected by the information processing device when it is determined that the second receiving time meets the acquisition time range.
[0051] Exemplarily, if the target object is a flash sale product, the second quantity information is the current quantity information of the flash sale product detected by the information processing device when it is determined that the second receiving time meets the acquisition time range, that is, the current inventory information of the flash sale product in the preset acquisition area.
[0052] In an embodiment of the present application, when the information processing device detects the second quantity information, the information processing device generates an acquisition permission notification for the target object, and adds the second quantity information and the preset acquisition area to the acquisition permission notification, so that when the client receives the acquisition permission notification, it can send an acquisition request for the target object to the information processing device, or the client can search for the second quantity information and the preset acquisition area of the target object.
[0053] In an embodiment of the present application, after the information processing device obtains the second location information from the browsing instruction, the information processing device generates a location point corresponding to the second location information on the map; the information processing device determines the geographic grid number corresponding to the location point based on the correspondence between the preset location point and the preset geographic grid number; the information processing device takes the area corresponding to the geographic grid number as the first area, and when the information processing device determines that the first area is the same as the preset acquisition area, the information processing device determines that the second location information is in the preset acquisition area.
[0054] In an embodiment of the present application, the location point can be a point of interest (POI), specifically a neighborhood point of the second location information, a center point of the second location information, or a boundary point of the second location information. The specific point can be determined according to actual conditions, and the embodiment of the present application does not limit this.
[0055] It should be noted that the geographic grid number may specifically be the last-level geographic grid number, that is, the lowest-level geographic grid number.
[0056] In an embodiment of the present application, the information processing device can determine the geographic grid numbers of each level where the location point is located based on the final-level geographic network number. The information processing device can sequentially obtain the geographic areas corresponding to the geographic grid number information of each level, and obtain the preset acquisition area when the location point is in the geographic area.
[0057] Exemplarily, the level of the last-level geographic network number can be specifically level five, and the level five geographic grid number can be 205566443322. Then the level four geographic grid number is 2055664433, the level three geographic grid number is 20556644, the level two geographic grid number is 205566, and the level one geographic grid number is 2055.
[0058] In an embodiment of the present application, if the number of geographical areas corresponding to the geographical grid number information of each level obtained in sequence by the information processing device is 0, the information processing device stops processing the browsing instruction and sends a message to the client indicating that the browsing instruction processing has failed.
[0059] In the embodiment of the present application, if the location point is not in the geographical area, the information processing device stops processing the browsing instruction and sends a message indicating that the browsing instruction processing has failed to the client.
[0060] It should be noted that the information that the browsing instruction processing failed may specifically be information that the flash sale product is empty.
[0061] In an embodiment of the present application, the information processing device may also obtain number information of the target object, and send the number information, the second quantity information and a preset acquisition area to the client.
[0062] For example, Figure 2 As shown, when the information processing device receives a browsing instruction from the client, the process of the information processing device processing the browsing instruction is as follows:
[0063] 21. When receiving a browsing instruction for a target object from a client, the information processing device obtains the second location information of the client from the browsing instruction and determines a second receiving time of the browsing instruction.
[0064] 22. The information processing device generates a location point corresponding to the second location information on the map.
[0065] 23. The information processing device determines the geographic grid number corresponding to the location point according to the correspondence between the preset location point and the preset geographic grid number.
[0066] 24. The information processing device uses the area corresponding to the geographic grid number as the first area.
[0067] 25. When the information processing device determines that the first area is the same as the preset acquisition area, the information processing device determines that the second location information is in the preset acquisition area.
[0068] 26. The information processing device determines the acquisition time range according to the correspondence between the object and the time range.
[0069] 27. When the second receiving time meets the acquisition time range, the information processing device detects second quantity information of the target object.
[0070] 28. The information processing device sends a target object acquisition permission notification to the client, where the acquisition permission notification carries the second quantity information and a preset acquisition area, so that the client can acquire the target object in the preset acquisition area according to the second quantity information.
[0071] In an embodiment of the present application, before the information processing device determines the preset acquisition area of the target object, the information processing device also receives the preset acquisition area of the target object divided on the map; when the information processing device receives the acquisition time range corresponding to the preset acquisition area of the target object, the information processing device establishes a correspondence between the object and the time range based on the target object and the acquisition time range; and establishes a correspondence between the object and the acquisition area based on the target object and the preset acquisition area.
[0072] In an embodiment of the present application, the information processing device also receives third quantity information corresponding to the target object in the preset acquisition area, and the third quantity information is preset processing quantity information of the target object.
[0073] In the embodiment of the present application, if the target object is a flash sale product, the third quantity information is the total flash sale quantity information of the flash sale product in the preset acquisition area.
[0074] In an embodiment of the present application, the information processing device can also obtain the numbering information of the target object, and save the preset acquisition area, numbering information, third quantity information and acquisition time range, as well as the correspondence between the object and the time range and the correspondence between the object and the acquisition area.
[0075] In an embodiment of the present application, the information processing device can save the preset acquisition area, the third quantity information and the acquisition time range, as well as the correspondence between the object and the time range and the correspondence between the object and the acquisition area in a database. The specific database can be a Redis database or other databases. The specific database can be determined according to actual conditions, and the embodiment of the present application does not limit this.
[0076] In an embodiment of the present application, after the information processing device receives the preset acquisition area, the information processing device will also obtain the boundary points of the preset acquisition area and the geographic grid numbers of each level corresponding to the preset acquisition area, and obtain the geographic grid number based on the geographic grid numbers of each level.
[0077] It should be noted that the information processing device can use a general algorithm to obtain the boundary points of the preset acquisition area. The information processing device can also use other methods to obtain the boundary points of the preset acquisition area. The specific method can be determined according to actual conditions, and the embodiments of the present application do not limit this.
[0078] It should be noted that the geographic grid is divided into multiple levels, for example, a first-level geographic grid is divided into 10*10 second-level geographic grids, and a second-level geographic grid is divided into 10*10 third-level geographic grids. For example, if a first-level geographic grid is numbered 2055, then the coding rule for a second-level geographic grid number under the first-level geographic grid is: the first-level geographic grid number plus the code of the second-level code in the first-level geographic grid, such as 66. Then the second-level geographic grid number is 205566.
[0079] In an embodiment of the present application, the information processing device can determine that the number of geographic grids under the same parent geographic grid covered by the geographic area is greater than a preset threshold number, then eliminate all geographic grids under the same parent geographic grid, add the corresponding parent geographic grid number, and thus obtain the geographic grid number.
[0080] It is understandable that the information processing device can reduce the number of stored geographic grid numbers in this way and can also accurately locate the preset geographic area.
[0081] For example, Figure 3 As shown, the process of the information processing device acquiring the preset acquisition area is as follows:
[0082] 31. The information processing device receives a preset acquisition area of the target object divided on a map.
[0083] 32. When receiving the acquisition time range corresponding to the target object in the preset acquisition area, the information processing device establishes a corresponding relationship between the object and the time range according to the target object and the acquisition time range.
[0084] 33. According to the target object and the preset acquisition area, a corresponding relationship between the object and the acquisition area is established.
[0085] It should be noted that, when the information processing device receives the acquisition time range corresponding to the target object in the preset acquisition area, the information processing device may first establish a correspondence between the object and the time range based on the target object and the acquisition time range, and then the information processing device establishes a correspondence between the object and the acquisition area based on the target object and the preset acquisition area; the information processing device may also first establish a correspondence between the object and the acquisition area based on the target object and the preset acquisition area, and then the information processing device establishes a correspondence between the object and the time range based on the target object and the acquisition time range; the information processing device may also simultaneously establish a correspondence between the object and the time range based on the target object and the acquisition time range, and establish a correspondence between the object and the acquisition area based on the target object and the preset acquisition area; the specific details may be determined according to actual conditions, and the embodiments of the present application are not limited to this.
[0086] S102: Determine a preset acquisition area of the target object.
[0087] In an embodiment of the present application, after the information processing device obtains the first position information from the acquisition request, the information processing device can determine the preset acquisition area of the target object; the information processing device can also determine the preset acquisition area of the target object while obtaining the first position information from the acquisition request. The information processing device can also first determine the preset acquisition area of the target object, and then the information processing device obtains the first position information from the acquisition request. The specific determination can be made according to the actual situation, and the embodiment of the present application does not limit this.
[0088] In the embodiment of the present application, the preset acquisition area can be a preset area for acquiring the target object. Exemplarily, the preset acquisition area can be a confinement center, a nursing home, or other areas, which can be determined according to actual conditions, and the embodiment of the present application does not limit this.
[0089] In an embodiment of the present application, the process of the information processing device determining the preset acquisition area of the target object can be that when the information processing device receives a request from the client to obtain the target object, the preset acquisition area is obtained from the acquisition request, or the information processing device determines the preset acquisition location information of the target object based on the correspondence between the object and the acquisition area; the specific determination can be made based on actual conditions, and the embodiment of the present application is not limited to this.
[0090] In the embodiment of the present application, the client's acquisition request for the target object includes the preset acquisition area. When the information processing device receives the acquisition request, the information processing device can obtain the preset acquisition area from the acquisition request.
[0091] In the embodiment of the present application, before the information processing device determines the preset acquisition area of the target object, the information processing device also obtains the acquisition quantity information of the target object from the acquisition request.
[0092] In the embodiment of the present application, the acquisition request of the client for the target object includes the acquisition quantity information. When the information processing device receives the acquisition request, the information processing device can obtain the acquisition quantity information from the acquisition request.
[0093] In the embodiment of the present application, the quantity information obtained can be one, two, or more, and the specific amount can be determined according to the actual situation. The embodiment of the present application does not limit this.
[0094] In an embodiment of the present application, the client's request to obtain the target object may also include the target object's numbering information. When the information processing device receives the acquisition request, the information processing device can obtain the target object's numbering information from the acquisition request.
[0095] In an embodiment of the present application, after the information processing device determines the preset acquisition area of the target object, before the information processing device sends a successful acquisition response of the target object to the client, the information processing device will also determine the acquisition time range corresponding to the target object based on the correspondence between the object and the time range; when the information processing device determines that the first receiving time satisfies the acquisition time range, the information processing device detects the first quantity information of the target object; when the information processing device determines that the first quantity information is greater than or equal to the acquisition quantity information, the information processing device compares the first location information with the preset acquisition area.
[0096] In an embodiment of the present application, the first receiving time may be the time when the information processing device receives the client's request to obtain the target object. When the information processing device determines that the first receiving time is within the acquisition time range, the information processing device determines that the first receiving time satisfies the acquisition time range.
[0097] In the embodiment of the present application, the first quantity information may be the current quantity information of the target objects detected by the information processing device when it is determined that the first receiving time meets the acquisition time range.
[0098] Exemplarily, if the target object is a flash sale product, the first quantity information is the quantity information of the flash sale product detected by the information processing device when it is determined that the first receiving time meets the acquisition time range, that is, the current inventory quantity information in the preset acquisition area when the first receiving time meets the acquisition time range of the flash sale product.
[0099] In the embodiment of the present application, when the information processing device determines that the first receiving time does not meet the acquisition time range, the information processing device sends a message that the target object failed to be acquired to the client. Specifically, if the target object is a flash sale product, when the information processing device determines that the first receiving time does not meet the acquisition time range, the information processing device sends a message that the flash sale failed to be acquired to the client.
[0100] In an embodiment of the present application, the quantity information obtained may be the quantity information of the target object that the client expects to obtain. For example, if the target object is a flash sale product, the quantity information obtained may be the flash sale quantity that the client expects to obtain.
[0101] In an embodiment of the present application, when the information processing device detects the first quantity information, the information processing device compares the first quantity information with the acquired quantity information. When the information processing device determines that the first quantity is greater than or equal to the acquired quantity information, the information processing device compares the first position information with the preset acquisition area to determine whether the first position information satisfies the preset acquisition area.
[0102] In the embodiment of the present application, when the information processing device determines that the first quantity is less than the acquired quantity information, the information processing device sends a message that the target object acquisition failed to the client. Specifically, if the target object is a flash sale product, when the information processing device determines that the first quantity is less than the acquired quantity information, the information processing device sends a message that the flash sale failed to the client.
[0103] S103: When the first location information is in a preset acquisition area, a target object acquisition success response is sent to the client.
[0104] In an embodiment of the present application, after the information processing device determines the preset acquisition area of the target object, if the information processing device determines that the first location information is in the preset acquisition area, the information processing device sends a successful acquisition response of the target object to the client.
[0105] It should be noted that if the target object is a flash sale product, then when the information processing device determines that the first location information is in the preset acquisition area, the information processing device determines that the client has successfully purchased the target object, and then the information processing device can send a successful acquisition response of the target object to the client.
[0106] In the embodiment of the present application, after the information processing device determines the preset acquisition area of the target object and compares the first position information with the preset acquisition area, if the information processing device determines that the first position information is not in the preset acquisition area, the information processing device sends a message that the target object acquisition failed to the client. Specifically, if the target object is a flash sale product, if the information processing device determines that the first position information is not in the preset acquisition area, the information processing device sends a message that the flash sale failed to the client.
[0107] In an embodiment of the present application, when the information processing device determines that the first location information is in a preset acquisition area, the information processing device can update the quantity information of the target object based on the first quantity information and the acquired quantity information, obtain the updated quantity information of the target object, and store the updated quantity information of the target object.
[0108] In the embodiment of the present application, the information processing device may also obtain the target object number information, the target object acquisition quantity information and the target object preset acquisition area corresponding to the acquisition request, and form a message queue (MQ) with the target object number information, the target object acquisition quantity information and the target object preset acquisition area, and send the message queue in a self-sending and self-receiving manner. Then the information processing device receives the message queue.
[0109] It can be understood that the information processing device can process the acquisition request asynchronously by sending and receiving MQ messages, thereby avoiding affecting the performance of the information processing device when processing the acquisition request.
[0110] For example, Figure 4 As shown, the processing process of the information processing device when receiving a request from the client to obtain the target object is as follows:
[0111] 41. When receiving a request from a client to obtain a target object, obtain first location information, information about the number of target objects to be obtained, and a first receiving time when the request is received from the request.
[0112] 42. The information processing device determines a preset acquisition area of the target object.
[0113] 43. The information processing device determines the acquisition time range corresponding to the target object according to the correspondence between the object and the time range.
[0114] 44. When the first receiving time meets the acquisition time range, the information processing device detects the first quantity information of the target object.
[0115] 45. When the first quantity information is greater than or equal to the acquired quantity information, the information processing device compares the first location information with the preset acquisition area.
[0116] 46. When the first location information is in the preset acquisition area, the information processing device sends a successful acquisition response of the target object to the client, and updates the quantity information of the target object according to the first quantity and the acquired quantity information, obtains the updated quantity information of the target object and saves it.
[0117] 47. The information processing device obtains a message queue according to the number information of the target object, the acquisition quantity information of the target object, and the preset acquisition area of the target object.
[0118] In an embodiment of the present application, the information processing device may form a message queue with the target object's number information, the target object's acquisition quantity information, and the target object's preset acquisition area.
[0119] 48. The information processing device sends and receives message queues in a self-sending and self-receiving manner.
[0120] 49. The information processing device sends the target object to the client.
[0121] In the embodiment of the present application, after the information processing device executes step 46, the information processing device may directly execute step 47; the information processing device may also directly execute step 49 after executing step 46; the information processing device may also directly execute step 47 and step 49 after executing step 46. The specific steps may be determined according to actual conditions, and the embodiment of the present application does not limit this.
[0122] It can be understood that when the information processing device receives a request from the client to obtain the target object, the information processing device obtains the first location information of the client when the acquisition request is sent from the acquisition request, so that the information processing device can determine whether a successful acquisition response of the target object can be sent to the client based on the preset acquisition area and the first location information, thereby improving the accuracy of the information processing device when processing the acquisition request for the target object.
[0123] Embodiment 2
[0124] Based on the same inventive concept of the first embodiment, the embodiment of the present application provides an information processing device 1, corresponding to an information processing method; Figure 5 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application Figure 1 , the information processing device 1 may include:
[0125] The acquisition unit 11 is used to acquire first location information from the acquisition request for the target object when receiving the acquisition request from the client; the first location information is the location information of the client when the client sends the acquisition request;
[0126] A determining unit 12 is used to determine a first receiving time when the acquisition request is received; and determine a preset acquisition area of the target object;
[0127] The sending unit 13 is used to send a successful acquisition response of the target object to the client when the first location information is in the preset acquisition area.
[0128] In some embodiments of the present application, the acquisition unit 11 is used to acquire acquisition quantity information of the target object from the acquisition request.
[0129] In some embodiments of the present application, the device further comprises a detection unit and a comparison unit;
[0130] The determining unit 12 is used to determine the acquisition time range corresponding to the target object according to the corresponding relationship between the object and the time range;
[0131] The detection unit is configured to detect first quantity information of the target object when the first receiving time meets the acquisition time range;
[0132] The comparison unit is configured to compare the first location information with the preset acquisition area when the first quantity information is greater than or equal to the acquisition quantity information.
[0133] In some embodiments of the present application, the acquisition unit 11 is used to acquire the preset acquisition area from the acquisition request;
[0134] Alternatively, the determining unit 12 is configured to determine the preset acquisition area according to a correspondence between the object and the acquisition area.
[0135] In some embodiments of the present application, the acquisition unit 11 is used to acquire second location information from a browsing instruction for the target object when receiving the browsing instruction from the client, where the second location information is location information of the client when the client sends the browsing instruction;
[0136] The determining unit 12 is used to determine a second receiving time when the browsing instruction is received; when the second location information is in the preset acquisition area, determine the acquisition time range according to the correspondence between the object and the time range;
[0137] The detection unit is configured to detect second quantity information of the target object when the second receiving time meets the acquisition time range;
[0138] The sending unit 13 is used to send an acquisition permission notification of the target object to the client, wherein the acquisition permission notification carries the second quantity information and the preset acquisition area, so that the client can acquire the target object within the preset acquisition area according to the second quantity information.
[0139] In some embodiments of the present application, the apparatus further includes a receiving unit and an establishing unit;
[0140] The receiving unit is used to receive a preset acquisition area of the target object divided on a map;
[0141] The establishing unit is used to establish a corresponding relationship between the object and the time range according to the target object and the acquisition time range when receiving the acquisition time range corresponding to the target object in the preset acquisition area; and establish a corresponding relationship between the object and the acquisition area according to the target object and the preset acquisition area.
[0142] It should be noted that, in actual applications, the above-mentioned acquisition unit 11, determination unit 12 and sending unit 13 can be implemented by a processor 14 on the information processing device 1, specifically a CPU (Central Processing Unit), MPU (Microprocessor Unit), DSP (Digital Signal Processing) or a field programmable gate array (FPGA); the above-mentioned data storage can be implemented by a memory 15 on the information processing device 1.
[0143] The embodiment of the present invention further provides an information processing device 1, such as Figure 6 As shown, the information processing device 1 includes: a processor 14, a memory 15 and a communication bus 16. The memory 15 communicates with the processor 14 via the communication bus 16. The memory 15 stores a program executable by the processor 14. When the program is executed, the information processing method described above is executed by the processor 14.
[0144] In practical applications, the memory 15 may be a volatile memory, such as a random access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the processor 14.
[0145] An embodiment of the present invention provides a computer-readable storage medium having a computer program thereon, and when the program is executed by the processor 14, the information processing method as described above is implemented.
[0146] It can be understood that when the information processing device receives a request from the client to obtain the target object, the information processing device obtains the first location information of the client when the acquisition request is sent from the acquisition request, so that the information processing device can determine whether a successful acquisition response of the target object can be sent to the client based on the preset acquisition area and the first location information, thereby improving the accuracy of the information processing device when processing the acquisition request for the target object.
[0147] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0148] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0149] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0150] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0151] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention.
Claims
1. An information processing method, characterized in that: The method comprises: In the case of receiving a request from a client to obtain a target object, obtaining first location information and information about the number of the target object to be obtained from the request; and determining a first receiving time when the request is received; the first location information is location information of the client when the client sends the request; Determining a preset acquisition area of the target object; Detect first quantity information of the target object, and send a successful acquisition response of the target object to the client when the first quantity information is greater than or equal to the acquired quantity information and the first location information is in the preset acquisition area.
2. The method according to claim 1, characterized in that The detecting the first quantity information of the target object includes: Determine the acquisition time range corresponding to the target object according to the corresponding relationship between the object and the time range; When the first receiving time satisfies the acquisition time range, first quantity information of the target object is detected.
3. The method according to claim 1, characterized in that: The determining of the preset acquisition area of the target object includes: Acquire the preset acquisition area from the acquisition request; Alternatively, the preset acquisition area is determined according to a corresponding relationship between the object and the acquisition area.
4. The method according to claim 1, characterized in that: In the case where a request for obtaining the target object is received from the client, before obtaining the first location information from the request, the method further includes: When receiving a browsing instruction for the target object from a client, obtaining second location information from the browsing instruction and determining a second receiving time when the browsing instruction is received; the second location information is location information of the client when the client sends the browsing instruction; When the second location information is in the preset acquisition area, determining the acquisition time range according to the corresponding relationship between the object and the time range; When the second receiving time satisfies the acquisition time range, detecting second quantity information of the target object; An acquisition permission notification of the target object is sent to the client, wherein the acquisition permission notification carries the second quantity information and the preset acquisition area, so that the client can acquire the target object within the preset acquisition area according to the second quantity information.
5. The method according to claim 1, characterized in that Before determining the preset acquisition area of the target object, the method further includes: Receiving a preset acquisition area of the target object divided on a map; When receiving the acquisition time range corresponding to the target object in the preset acquisition area, establishing a corresponding relationship between the object and the time range according to the target object and the acquisition time range; According to the target object and the preset acquisition area, a corresponding relationship between the object and the acquisition area is established.
6. An information processing device, characterized in that: The device comprises: an acquisition unit, configured to, upon receiving an acquisition request from a client for a target object, acquire first position information and acquisition quantity information of the target object from the acquisition request; the first position information is position information of the client when the client sends the acquisition request; A determining unit, configured to determine a first receiving time when the acquisition request is received; and determine a preset acquisition area of the target object; A sending unit is used to detect first quantity information of the target object, and send a successful acquisition response of the target object to the client when the first quantity information is greater than or equal to the acquired quantity information and the first location information is in the preset acquisition area.
7. An information processing device, characterized in that: The device comprises: A memory, a processor and a communication bus, wherein the memory communicates with the processor via the communication bus, the memory stores an information processing program executable by the processor, and when the information processing program is executed, the method according to any one of claims 1 to 5 is performed by the processor.
8. A storage medium having a computer program stored thereon, applied to an information processing device, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Information processing method and device, and storage medium
CN107507094A
