Method and apparatus for verifying price reasonableness

Verifying the rationality of the client's price through the server side solves the problem that unreasonable prices are affected by the client sending, and improving transaction fairness and efficiency.

CN114881682BActive Publication Date: 2025-08-01KEYOUTU BLOCKCHAIN RES (GUANGZHOU) CENT (LLP)
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210269156.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-18
Publication Date
2025-08-01
Estimated Expiration
2042-03-18

AI Technical Summary

Technical Problem

In a sales system where customers are priced independently, unreasonable prices are sent by clients that affect transaction fairness, and it is difficult for the existing technology to effectively verify the rationality of prices.

Method used

The server receives the price information of the client and verifies the rationality of the price by calculating the price change rules, including time synchronization and price comparison, so as to ensure that the price is reasonable and transactions are conducted.

Benefits of technology

Effectively prevent the client from sending unreasonable prices, ensure transaction fairness, and improve transaction efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114881682B_ABST
    Figure CN114881682B_ABST
Patent Text Reader

Abstract

A method and device for verifying the reasonableness of a price, belonging to the field of the Internet, to solve the problem that the client sends an unreasonable price, which affects fairness. The method includes: the server receives target information sent by the client, the target information includes a first price for a target commodity, and the first price is the price of the target commodity at a first time point when the user makes a bid through the client; the server calculates a second price of the target commodity according to a second time point when the target information of the target commodity is received; the server verifies whether the first price of the target commodity is reasonable based on the first price and the second price; wherein, the price of the target commodity changes with time, and the client and the server adopt the same commodity price calculation rule.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of the Internet, and particularly to a method and device for verifying the reasonableness of prices. Background Art

[0002] In a sales system where customers set prices independently, commodity prices change according to certain rules.

[0003] From the perspective of customers, the lower the price, the better. How to prevent the client from sending unreasonable prices to ensure fairness is an issue to be solved. Summary of the Invention

[0004] Embodiments of the present invention provide a method and device for verifying the reasonableness of prices to solve the problem that the client sends unreasonable prices, which affects fairness.

[0005] On the one hand, a method for verifying the reasonableness of prices is provided. The method is executed by a server and includes:

[0006] The server receives target information sent by the client. The target information includes a first price for a target commodity, and the first price is the price of the target commodity at a first time point when the user makes a bid through the client;

[0007] The server calculates a second price for the target commodity according to a second time point when the target information of the target commodity is received;

[0008] The server verifies whether the first price of the target commodity is reasonable based on the first price and the second price;

[0009] Among them, the price of the target commodity changes over time, and the client and the server adopt the same commodity price calculation rule.

[0010] Optionally, in an embodiment of the present application, the price of the target commodity decreases over time within a preset time period.

[0011] The server verifies whether the first price of the target commodity is reasonable based on the first price and the second price, including:

[0012] The server compares the first price and the second price;

[0013] When the first price is greater than the second price, the server determines that the first price of the target commodity is reasonable;

[0014] When the first price is not greater than the second price, the server determines that the first price of the target commodity is unreasonable.

[0015] Optionally, in an embodiment of the present application, the method further includes: synchronizing the time of the client and the server before the server receives the target information sent by the client.

[0016] Optionally, in an embodiment of the present application, the method further includes:

[0017] In the case where the time of the client and the server is not synchronized, determining the time deviation between the server and the client;

[0018] Based on the time deviation, adjusting the time of the client so that the time of the client and the server is kept synchronized.

[0019] Optionally, in an embodiment of the present application, the determining the time deviation between the server and the client includes:

[0020] Obtaining a first timestamp, where the first timestamp is the timestamp when the client sends the target data packet;

[0021] Obtaining a second timestamp, where the second timestamp is the timestamp when the server receives the target data packet;

[0022] Obtaining a third timestamp, where the third timestamp is the timestamp when the server sends the response data packet of the target data packet;

[0023] Obtaining a fourth timestamp, where the fourth timestamp is the timestamp when the client receives the response data packet;

[0024] Based on the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp, determining the time deviation between the server and the client.

[0025] On the other hand, a device for verifying the reasonableness of a price is provided, and the device includes:

[0026] A receiving module, configured to receive target information sent by a client, where the target information includes a first price for a target commodity, and the first price is the price of the target commodity at a first time point when the user makes a bid through the client;

[0027] A calculation module, configured to calculate a second price of the target commodity according to a second time point when the target information of the target commodity is received;

[0028] A verification module, configured to verify whether the first price of the target commodity is reasonable based on the first price and the second price;

[0029] Among them, the price of the target commodity changes over time, and the client and the server adopt the same commodity price calculation rule.

[0030] Optionally, in an embodiment of the present application, the price of the target commodity decreases over time within a preset time period.

[0031] In the process of verifying whether the first price of the target commodity is reasonable based on the first price and the second price, the verification module is specifically configured to:

[0032] Compare the first price and the second price;

[0033] When the first price is greater than the second price, determine that the first price of the target commodity is reasonable;

[0034] When the first price is not greater than the second price, determine that the first price of the target commodity is unreasonable.

[0035] Optionally, in an embodiment of the present application, the time of the client and the device is kept synchronized.

[0036] Optionally, in an embodiment of the present application, the device further includes: a synchronization module. The synchronization module is used for:

[0037] When the time of the client and the device is not synchronized, determine the time deviation between the device and the client;

[0038] Based on the time deviation, adjust the time of the client so that the time of the client and the device is kept synchronized.

[0039] Optionally, in an embodiment of the present application, in the process of determining the time deviation between the device and the client, the synchronization module is specifically configured to:

[0040] Obtain a first timestamp, where the first timestamp is the timestamp when the client sends a target data packet;

[0041] Obtain a second timestamp, where the second timestamp is the timestamp when the device receives the target data packet;

[0042] Obtain a third timestamp, where the third timestamp is the timestamp when the device sends a response data packet to the target data packet;

[0043] Obtain a fourth timestamp, where the fourth timestamp is the timestamp when the client receives the response data packet;

[0044] Determine the time deviation between the device and the client based on the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp.

[0045] On the other hand, a method for verifying the rationality of a price is provided. The method is executed by a client and includes:

[0046] The client sends target information to the server. The target information includes a first price for a target commodity, such that the server calculates a second price for the target commodity according to a second time point when receiving the target information of the target commodity; and verifies whether the first price of the target commodity is reasonable based on the first price and the second price.

[0047] Wherein, the first price is the price of the target commodity at a first time point when the user makes a bid through the client.

[0048] Wherein, the price of the target commodity changes over time, and the client and the server adopt the same commodity price calculation rule.

[0049] Optionally, in an embodiment of the present application, the method further includes:

[0050] In the case where the time between the client and the server is not synchronized, the client determines the time deviation from the server;

[0051] Based on the time deviation, adjust the time of the client so that the time of the client and the server is synchronized.

[0052] Optionally, in an embodiment of the present application, the client determines the time deviation from the server, including:

[0053] Obtain a first timestamp, where the first timestamp is the timestamp when the client sends a target data packet;

[0054] Obtain a second timestamp, where the second timestamp is the timestamp when the server receives the target data packet;

[0055] Obtain a third timestamp, where the third timestamp is the timestamp when the server sends a response data packet for the target data packet;

[0056] Obtain a fourth timestamp, where the fourth timestamp is the timestamp when the client receives the response data packet;

[0057] Based on the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp, determine the time deviation between the client and the server.

[0058] On the other hand, a device for verifying the reasonableness of a price is provided. The device includes:

[0059] A sending module, configured to send target information to a server. The target information includes a first price for a target commodity, so that the server calculates a second price for the target commodity according to a second time point when receiving the target information of the target commodity; and based on the first price and the second price, verify whether the first price of the target commodity is reasonable;

[0060] Wherein, the first price is the price of the target commodity at a first time point when the user makes a bid through the device;

[0061] Wherein, the price of the target commodity changes with time, and the device and the server adopt the same commodity price calculation rule.

[0062] Optionally, in an embodiment of the present application, the device further includes:

[0063] A processing module, configured to determine a time deviation between the device and the server in the case where the time of the device and the server is not synchronized;

[0064] Based on the time deviation, adjust the time of the device so that the time of the device and the server is kept synchronized.

[0065] Optionally, in an embodiment of the present application, the processing module is specifically configured to:

[0066] Obtain a first timestamp, where the first timestamp is the timestamp when the client sends a target data packet;

[0067] Obtain a second timestamp, where the second timestamp is the timestamp when the server receives the target data packet;

[0068] Obtain a third timestamp, where the third timestamp is the timestamp when the server sends a response data packet for the target data packet;

[0069] Obtain a fourth timestamp, where the fourth timestamp is the timestamp when the client receives the response data packet;

[0070] Based on the first timestamp, the second timestamp, the third timestamp and the fourth timestamp, determine the time deviation between the device and the server.

[0071] The beneficial effects brought by the technical solution provided by the embodiments of the present invention are:

[0072] In the embodiment of the present application, the server obtains the first price of the target commodity at the first time point and the second price at the second time point, and verifies the first price from the client based on these two prices. In this way, it can be ensured that only the first price that passes the verification will be traded, preventing the client from sending unreasonable prices, thereby solving the problem that the client sends unreasonable prices and affecting fairness. Description of the Drawings

[0073] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0074] Figure 1 is a flowchart of a method for verifying the reasonableness of a price provided by an embodiment of the present invention;

[0075] Figure 2 is a timing diagram provided by an embodiment of the present application;

[0076] Figure 3 is a structural block diagram of a device for verifying the reasonableness of a price provided by an embodiment of the present application. Detailed Embodiments

[0077] To make the objectives, technical solutions, and advantages of the present invention clearer, the following will further describe the embodiments of the present invention in detail with reference to the drawings.

[0078] Figure 1 is a flowchart of a method for verifying the reasonableness of a price provided by an embodiment of the present invention. Referring to Figure 1 , the method for verifying the reasonableness of a price provided by an embodiment of the present invention may include:

[0079] Step 110, the server receives the target information sent by the client, where the target information includes the first price for the target commodity, and the first price is the price of the target commodity at the first time point when the user makes a bid through the client.

[0080] Among them, the server may be a server. The client may be an electronic device, such as a mobile phone, a computer, etc., or may also be various applications installed on the electronic device, such as an application program on the electronic device or a small program relying on the application program installed on the electronic device.

[0081] Step 120, the server calculates the second price of the target commodity according to the second time point when the target information of the target commodity is received.

[0082] Step 130: The server verifies whether the first price of the target commodity is reasonable based on the first price and the second price.

[0083] Wherein, the price of the target commodity changes over time, and the client and the server adopt the same commodity price calculation rule. The commodity calculation rule can be a formula or a function. For example, a formula or a function for price decay over time.

[0084] In the embodiment of the present application, the server obtains the first price of the target commodity at the first time point and the second price at the second time point, and verifies the first price from the client based on these two prices. In this way, it can be ensured that only the first price that passes the verification will be traded, preventing the client from sending unreasonable prices, thus solving the problem that the client sending unreasonable prices affects fairness.

[0085] Optionally, in an embodiment of the present application, the price of the target commodity decreases over time within a preset time period. Correspondingly, in step 130, the server verifying whether the first price of the target commodity is reasonable based on the first price and the second price includes:

[0086] The server compares the first price and the second price;

[0087] In the case where the first price is greater than the second price, the server determines that the first price of the target commodity is reasonable;

[0088] In the case where the first price is not greater than the second price, the server determines that the first price of the target commodity is unreasonable.

[0089] In this way, it is possible to directly determine whether the first price from the client is reasonable by comparing the prices.

[0090] In the embodiment of the present application, if the time point when the customer makes an offer through the client is t1, the client sends the offer information to the server through the network, and the time point when the server receives the offer information is t2. In the case of clock synchronization between the client and the server, t2 is greater than t1.

[0091] In the embodiment of the present application, the price of the commodity can decay over time, and the rule can be y = f(t), where y is the price and t is the time. Then, correspondingly, the price at time point t1 is y1, and the price at time point t2 is y2. In the case where the price of the commodity decays over time, y2 is less than y1. Therefore, when the server verifies, if the received offer is less than the price at the current time point calculated according to the price decay formula, it must be an unreasonable offer.

[0092] Optionally, in an embodiment of the present application, before the server receives the target information sent by the client, synchronize the time of the client and the server so that the time of the client and the server remains synchronized. In this way, the first price and the second price can be directly compared to determine whether the first price for the target commodity is reasonable.

[0093] In the case where the time of the client and the server is not synchronized, the time deviation between the two can also be determined first, and then the time of the client and the server can be adjusted to be synchronized based on the time deviation. Therefore, in an embodiment of the present application, the method for verifying the reasonableness of the price provided by the embodiment of the present application may further include:

[0094] In the case where the time of the client and the server is not synchronized, determine the time deviation between the server and the client;

[0095] Based on the time deviation, adjust the time of the client so that the time of the client and the server remains synchronized.

[0096] In this way, the method for verifying the reasonableness of the price provided by the embodiment of the present application can be applied not only to the case where the server and the client maintain time synchronization, but also to the case where the time of the server and the client is not synchronized. By determining the time deviation and then adjusting, it can ensure the time synchronization of the server and the client.

[0097] Optionally, in an embodiment of the present application, the process of determining the time deviation between the server and the client may include:

[0098] Obtain a first timestamp, where the first timestamp is the timestamp when the client sends the target data packet;

[0099] Obtain a second timestamp, where the second timestamp is the timestamp when the server receives the target data packet;

[0100] Obtain a third timestamp, where the third timestamp is the timestamp when the server sends the response data packet of the target data packet;

[0101] Obtain a fourth timestamp, where the fourth timestamp is the timestamp when the client receives the response data packet;

[0102] Based on the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp, determine the time deviation between the server and the client.

[0103] In this way, the time deviation between the server and the client can be accurately calculated through the above four timestamps, and then time synchronization can be performed.

[0104] In the embodiments of the present application, the target data packet may be a Network Time Protocol (NTP) data packet. The typical time synchronization method of NTP is the Client / Server method. As Figure 2 shown, the client first sends an NTP data packet to the server, which contains the timestamp T1 when the packet leaves the client. When the server receives the packet, it can fill in the timestamp T2 when the packet arrives, the timestamp T3 when the response packet leaves, and then immediately return the response packet to the client. When the client receives the response packet, it can record the timestamp T4 when the response packet returns. The client can use these four time parameters to calculate two key parameters: the round-trip delay d of the NTP packet and the time deviation t between the client and the server. The client can use this time deviation to adjust the local clock to ensure that the time of the client is consistent with the time of the server.

[0105] In Figure 2 , T1 is the timestamp when the client sends the NTP data packet (referenced by the time of the client); T2 is the timestamp when the server receives the NTP data packet (referenced by the time of the server); T3 is the timestamp when the server sends the NTP response packet (referenced by the time of the server); T4 is the timestamp when the client receives the NTP response packet; d1 is the transmission delay of the NTP data packet; d2 is the transmission delay of the NTP response packet; t is the time deviation between the client and the server; d is the round-trip time of the NTP data packet.

[0106] When T1, T2, T3, and T4 are all known, the following formulas can be listed:

[0107] T2 = T1 + t + d1

[0108] T4 = T3 - t + d2

[0109] d = d1 + d2

[0110] Through the above three formulas, assuming that the transmission delays of the NPT request and response packets are equal, that is, d1 = d2, then it can be solved that:

[0111] t = [(T2 - T1) - (T4 - T3)] / 2

[0112] d = (T2 - T1) + (T4 - T3)

[0113] It can be seen from the above that t and d are only related to the difference between T2 and T1 and the difference between T4 and T3, and have nothing to do with the difference between T2 and T3. That is, the final result has nothing to do with the time for the server to process the data packet. Therefore, the client can adjust the local time through T1, T2, T3, and T4.

[0114] Currently, more and more clients are presented in the form of applications (APPs) or mini-programs. Clients in the form of APPs or mini-programs are restricted by the mobile operating system or the mini-program host application and cannot easily and simply correct the host time. In the embodiments of the present application, when the client is an application or a mini-program on the host, the time synchronization method between the application or mini-program on the host and the server can be as follows:

[0115] When the application or mini-program on the electronic device sends a request to the server, add the T1 timestamp of the host in the request parameters;

[0116] After the server processes the request, in the return result, in addition to returning the T1 timestamp as it is, the T2 and T3 timestamps of the server can also be added;

[0117] After the application or mini-program on the host receives the response from the server, add the T4 timestamp of the host, so that the time correction value of the application or mini-program on the host can be calculated using the above formula.

[0118] Optionally, in the embodiments of the present application, the target data packet sent by the client to the server can also be a data packet requesting product display data. In this case, the process of adopting the above time synchronization method can be:

[0119] When the client sends a data packet requesting product display data to the server, add the T1 timestamp of the client in the request parameters of the data packet;

[0120] After the server receives this data packet, in the return result, in addition to returning the T1 timestamp of the client as it is, the T2 and T3 timestamps of the server are also added;

[0121] After the client receives the response from the server, add the T4 timestamp of the client, thereby calculating the time deviation between the server and the client, and then performing time synchronization.

[0122] In the embodiments of the present application, after the client sends a data packet requesting product display data to the server, the client can display the target product according to the feedback from the server. In the embodiments of the present application, before step 110, a target page can be displayed on the electronic device, and the target page includes the target product and the target price of the target product, where the target price of the target product can change with time.

[0123] Among them, the electronic device can be a terminal device such as a mobile phone or a computer. The target page can be the page where the target commodity is currently sold. The target commodity can be a specific commodity, for example, a certain kind of rice, a certain kind of cooking oil, etc. The target price can be the price at which the target commodity is currently sold. For example, 10 catties of a certain kind of rice are currently sold at 30 yuan.

[0124] In the embodiment of the present application, the time can be the time displayed on the target page in a specified form, such as a countdown form, which is conducive to the user observing the change of time. Of course, the time may not be directly displayed, but advanced on the target page in the form of a progress bar, for example.

[0125] The term "time" in the embodiment of the present application can represent the time displayed on the target page. For example, the time displayed in the form of a countdown, 15 seconds, 14 seconds, 13 seconds..., or it can also represent the time not displayed on the target page. At the same time, the time can also refer to the time for the displayed target commodity. The target commodity can be set with time, for example, the time is 1 hour, 30 minutes, 1 minute, etc.

[0126] Among them, the fact that the target price of the target commodity changes with time can mean that the target price of the target commodity decreases as time passes. Taking 1 minute as an example, the initial selling price of 10 catties of a certain kind of rice is 30 yuan. When the time is 1 minute, it can be 30 yuan at the first second, 29.9 yuan at the second second, 29.8 yuan at the third second, and so on. That is, the price of the target commodity can be adjusted once every unit time, for example, once every second.

[0127] After the target page is displayed on the electronic device, the target input of the user can be received; and according to the target input, the selected price corresponding to the target commodity can be determined, where the selected price changes with the input time of the target input. Furthermore, the client can send target information to the server, and the target information includes the target commodity and the selected price

[0128] Among them, the user can be the purchaser of the commodity. The target input can be any common operation for triggering the purchase of the target commodity, such as a click input on a specified position on the target page, or a swipe input on the target commodity, etc.

[0129] When the user sees that the current price of the target commodity meets their psychological expectations, they can perform a target input on the target page on the electronic device.

[0130] In the embodiment of the present application, after receiving the target input of the user, the selected price for the user can be determined. For example, when the user clicks on a specified position on the target page, the selected price can be determined according to the time of the user's click input, such as the difference between the time point when the commodity sale starts and the time point when the click input is received. During the whole process, since the price of the target commodity can gradually decrease, different selected prices can be obtained according to the target input of the user at different time points. Taking 2 minutes as an example, the initial selling price of 10 catties of a certain kind of rice is 30 yuan. At the 1st minute, it can be 30 yuan at the 1st second, 29.9 yuan at the 2nd second, 29.8 yuan at the 3rd second, and so on. If the user makes a target input at the 3rd second, the selected price can be determined as 29.8 yuan. If the user makes a target input at the 5th second, the selected price can be determined as 29.6 yuan, and so on for subsequent time points.

[0131] In the embodiment of the present application, rules for determining the selected price can be built into the electronic device. In this way, after receiving the target input, the selected price corresponding to the target commodity can be determined according to these rules. Of course, rules for determining the selected price can also be built into the server. The electronic device can determine the selected price corresponding to the target commodity by interacting with the server.

[0132] After obtaining the selected price, the target commodity and the selected price can be sent to the server. After receiving the information such as the target commodity and the selected price submitted by the electronic device, the server can verify according to relevant rules, check the rationality and correctness of the relevant information, and can feedback the verification result to the electronic device. In this way, the electronic device can perform subsequent operations according to the feedback result.

[0133] It should be understood that in the embodiment of the present application, in the case of multiple users, the commodity can be sold to the user who makes the target input first. Taking 2 minutes as an example, the initial selling price of 10 catties of a certain kind of rice is 30 yuan. At the 1st minute, it can be 30 yuan at the 1st second, 29.9 yuan at the 2nd second, 29.8 yuan at the 3rd second, and so on. For example, if Zhang San makes a target input at the 3rd second, Zhang San's selected price is 29.8. If Li Si makes a target input at the 5th second, Zhang San's selected price is 29.6. However, since Zhang San has made a target input earlier than Li Si, the commodity will be sold to Zhang San first.

[0134] In an embodiment of the present application, a target page is displayed on an electronic device. The target page includes a target commodity and a target price of the target commodity. Wherein, the target price of the target commodity changes over time; a target input of a user is received; according to the target input, a selected price corresponding to the target commodity is determined, wherein the selected price changes with the input time of the target input; target information is sent to a server, and the target information includes the target commodity and the selected price. In this way, based on the target input of the user, the selected price corresponding to the target commodity can be determined, and the determined selected price changes with the input time of the target input, allowing the user to participate in the sales process of the target commodity, greatly stimulating the user's purchase enthusiasm, thereby improving the sales efficiency of the commodity, and thus solving the problem of low sales efficiency of the commodity.

[0135] Optionally, in an embodiment of the present application, the target price of the target commodity decreases over time within a preset time period, and the selected price decreases as the input time of the target input is delayed within the preset time period. The preset time can be set as needed. For example, the preset time is 2 minutes. The initial selling price of a certain 10 - jin bag of rice is 30 yuan, and the time is 1 minute. Then it can be 30 yuan at the first second, 29.9 yuan at the second second, 29.8 yuan at the third second, and so on. Within these 2 minutes, the later the input time of the target input, the lower the selected price. However, if the input time is too late, there may be a situation where the target commodity cannot be purchased. In this way, it can stimulate the purchase desire of the buyer and further improve the sales efficiency.

[0136] In an embodiment of the present application, optionally, a price range can also be set for the target commodity. Further, within the price range, the target price of the target commodity decreases over time within a preset time period; within the price range, the selected price decreases as the input time of the target input is delayed within the preset time period.

[0137] Optionally, in an embodiment of the present application, the preset time period includes a first time period and a second time period. The target price of the target commodity decreases uniformly with the passage of time within the first time period, and the target price of the target commodity decreases variably with the passage of time within the second time period. The preset time is, for example, 2 minutes. The first time period can be 1 minute and 30 seconds, and the second time period can be 30 seconds. The initial selling price of a certain 10-jin bag of rice is 30 yuan. Within the first 1 minute and 30 seconds, the first unit amount, for example, 0.1 yuan, can be reduced every first unit of time, for example, one second. Specifically, it can be 30 yuan at the first second, 29.9 yuan at the second second, 29.8 yuan at the third second, and so on, until it is 21 yuan at the 1 minute and 30 second. In the last 30 seconds, the second unit amount, for example, 0.2 yuan, can be reduced every second unit of time, for example, one second. Specifically, it can be 20.8 yuan at the 1 minute and 31 second, 20.6 yuan at the 1 minute and 32 second, and so on. In this way, the time settings of different time periods can be fully utilized to further stimulate the purchasing desire of the purchaser and further improve the sales efficiency.

[0138] Optionally, in an embodiment of the present application, the target price of the target commodity and time satisfy a preset function. The preset function can be a linear function or an exponential function. Among them, the linear function can decrease linearly with time within the first price range, and the exponential function can decrease exponentially with time within the second price range. Among them, the first price range and the second price range can be set according to requirements.

[0139] The preset function includes y = a - bx, where y is the target price, a and b are constants, and x is time. Among them, time can be time advancing in sequence according to the unit time. For example, the unit time is one second, and time can be the 1st second, the 2nd second, the 3rd second, and so on. In the embodiment of the present application, time can be within the preset time period. For example, if the preset time period is 30 seconds, the value range of time is from 1 to 30. In this way, it can ensure that the price fluctuates with the linear function. The price can be reduced as soon as possible within a short time, thereby improving the sales efficiency.

[0140] Or, the preset function includes y = a - bx 2 , where y is the target price, a and b are constants, and x is time. Among them, time can be time advancing in sequence according to the unit time. For example, the unit time is one second, and time can be the 1st second, the 2nd second, the 3rd second, and so on. In the embodiment of the present application, time can be within the preset time period. For example, if the preset time period is 15 seconds, the value range of time is from 1 to 15. In this way, it can ensure that the price fluctuates with the exponential function. The price can be reduced as soon as possible within a short time, thereby improving the sales efficiency.

[0141] Optionally, in an embodiment of the present application, the method for verifying the reasonableness of a price provided by the embodiment of the present application may further include:

[0142] Receiving a verification result for the target information;

[0143] In the case where the verification result indicates that the target information passes the verification, trading the target commodity based on the selected price.

[0144] In this way, it can be ensured that only the verified target information will be adopted, improving the authenticity and accuracy of the transaction. Moreover, the effectiveness of the transaction can be ensured, avoiding a large number of invalid target information from triggering transactions and improving the transaction efficiency.

[0145] As can be seen from the above, the method for verifying the reasonableness of a price provided by the embodiment of the present application may further cover the following advantages:

[0146] First, the final transaction price is determined by the user independently.

[0147] Second, the target price decays over time within a price range according to rules.

[0148] Third, the user conducts transactions independently without manual intervention.

[0149] Figure 3 It is a structural block diagram of a device for verifying the reasonableness of a price provided by an embodiment of the present application. Referring to Figure 3 The device for verifying the reasonableness of a price provided by the embodiment of the present application includes:

[0150] A receiving module 310, configured to receive target information sent by a client, where the target information includes a first price for a target commodity, and the first price is the price of the target commodity at a first time point when the user makes an offer through the client;

[0151] A calculation module 320, configured to calculate a second price of the target commodity according to a second time point when the target information of the target commodity is received;

[0152] A verification module 330, configured to verify whether the first price of the target commodity is reasonable based on the first price and the second price;

[0153] Wherein, the price of the target commodity changes over time, and the client and the server adopt the same commodity price calculation rules.

[0154] In an embodiment of the present application, the first price of the target commodity at the first time point and the second price at the second time point are obtained, and based on these two prices, the first price from the client is verified. In this way, it can be ensured that only the first price that passes the verification will be traded, preventing the client from sending unreasonable prices, thereby solving the problem that the client sends unreasonable prices and affects fairness.

[0155] Optionally, in an embodiment of the present application, the price of the target commodity decreases over time within a preset time period.

[0156] In the process of verifying whether the first price of the target commodity is reasonable based on the first price and the second price, the verification module 330 is specifically configured to:

[0157] Compare the first price and the second price;

[0158] In the case where the first price is greater than the second price, determine that the first price of the target commodity is reasonable;

[0159] In the case where the first price is not greater than the second price, determine that the first price of the target commodity is unreasonable.

[0160] Optionally, in an embodiment of the present application, the time of the client and the device is kept synchronized.

[0161] Optionally, in an embodiment of the present application, the device further includes: a synchronization module. The synchronization module is used for:

[0162] In the case where the time of the client and the device is not synchronized, determine the time deviation between the device and the client;

[0163] Based on the time deviation, adjust the time of the client so that the time of the client and the device is kept synchronized.

[0164] Optionally, in an embodiment of the present application, in the process of determining the time deviation between the device and the client, the synchronization module is specifically configured to:

[0165] Obtain a first timestamp, where the first timestamp is the timestamp when the client sends a target data packet;

[0166] Obtain a second timestamp, where the second timestamp is the timestamp when the device receives the target data packet;

[0167] Obtain a third timestamp, where the third timestamp is the timestamp when the device sends a response data packet for the target data packet;

[0168] Obtain a fourth timestamp, where the fourth timestamp is the timestamp when the client receives the response data packet;

[0169] Based on the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp, determine the time deviation between the device and the client.

[0170] On the other hand, provide a method for verifying the reasonableness of a price, which is executed by a client and includes:

[0171] The client sends target information to the server, where the target information includes a first price for a target commodity, such that the server calculates a second price for the target commodity according to the second time point when receiving the target information of the target commodity; and based on the first price and the second price, verify whether the first price of the target commodity is reasonable;

[0172] Wherein, the first price is the price of the target commodity at the first time point when the user makes a bid through the client;

[0173] Wherein, the price of the target commodity changes over time, and the client and the server adopt the same commodity price calculation rule.

[0174] Optionally, in an embodiment of the present application, the method further includes:

[0175] In the case where the time of the client and the server is not synchronized, the client determines the time deviation from the server;

[0176] Based on the time deviation, adjust the time of the client so that the time of the client and the server is kept synchronized.

[0177] Optionally, in an embodiment of the present application, the client determining the time deviation from the server includes:

[0178] Obtain a first timestamp, where the first timestamp is the timestamp when the client sends a target data packet;

[0179] Obtain a second timestamp, where the second timestamp is the timestamp when the server receives the target data packet;

[0180] Obtain a third timestamp, where the third timestamp is the timestamp when the server sends a response data packet of the target data packet;

[0181] Obtain a fourth timestamp, where the fourth timestamp is the timestamp when the client receives the response data packet;

[0182] Determine the time deviation between the client and the server based on the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp.

[0183] On the other hand, a device for verifying the reasonableness of a price is provided. The device includes:

[0184] A sending module, configured to send target information to the server, where the target information includes a first price for a target commodity, so that the server calculates a second price for the target commodity according to a second time point when receiving the target information of the target commodity; and verify whether the first price of the target commodity is reasonable based on the first price and the second price;

[0185] Wherein, the first price is the price of the target commodity at a first time point when the user makes a bid through the device;

[0186] Wherein, the price of the target commodity changes with time, and the device and the server adopt the same commodity price calculation rule.

[0187] Optionally, in an embodiment of the present application, the device further includes:

[0188] A processing module, configured to determine the time deviation between the device and the server in the case where the time of the device and the server is not synchronized;

[0189] Adjust the time of the device based on the time deviation so that the time of the device and the server is kept synchronized.

[0190] Optionally, in an embodiment of the present application, the processing module is specifically configured to:

[0191] Obtain a first timestamp, where the first timestamp is the timestamp when the client sends a target data packet;

[0192] Obtain a second timestamp, where the second timestamp is the timestamp when the server receives the target data packet;

[0193] Obtain a third timestamp, where the third timestamp is the timestamp when the server sends a response data packet for the target data packet;

[0194] Obtain a fourth timestamp, where the fourth timestamp is the timestamp when the client receives the response data packet;

[0195] Determine the time deviation between the device and the server based on the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp.

[0196] It should be noted that the device for verifying the rationality of price provided in the above embodiments and the method embodiments for verifying the rationality of price belong to the same concept. For the specific implementation process, please refer to the method embodiments and will not be elaborated here.

[0197] It should be noted that the embodiments in this specification are all described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the embodiments, reference can be made to each other. For the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple. For the relevant parts, reference can be made to the partial description of the method embodiments.

[0198] It should be noted that in this article, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.

[0199] Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, or can be completed by a program instructing relevant hardware. The said program can be stored in a computer-readable storage medium. The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disc, etc.

[0200] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for verifying price reasonableness, characterized in that, The method is executed by a server and includes: The server receives target information sent by a client, where the target information includes a first price for a target commodity, and the first price is the price of the target commodity at a first time point when the user makes a bid through the client; The server calculates a second price for the target commodity according to a second time point when it receives the target information of the target commodity; The server verifies whether the first price of the target commodity is reasonable based on the first price and the second price; Wherein, the price of the target commodity changes over time, and the client and the server adopt the same commodity price calculation rule; Wherein, the price of the target commodity decreases over time within a preset time period, The server verifying whether the first price of the target commodity is reasonable based on the first price and the second price includes: The server compares the first price and the second price; In the case where the first price is greater than the second price, the server determines that the first price of the target commodity is reasonable; In the case where the first price is not greater than the second price, the server determines that the first price of the target commodity is unreasonable.

2. The method according to claim 1, wherein The method further includes: synchronizing the time of the client and the server before the server receives the target information sent by the client.

3. The method according to claim 1, wherein The method further includes: In the case where the time of the client and the server is not synchronized, determining the time deviation between the server and the client; Based on the time deviation, adjusting the time of the client so that the time of the client and the server is kept synchronized.

4. The method according to claim 3, wherein The determining the time deviation between the server and the client includes: Obtaining a first timestamp, where the first timestamp is the timestamp when the client sends a target data packet; Obtaining a second timestamp, where the second timestamp is the timestamp when the server receives the target data packet; Obtaining a third timestamp, where the third timestamp is the timestamp when the server sends a response data packet for the target data packet; Obtaining a fourth timestamp, where the fourth timestamp is the timestamp when the client receives the response data packet; Based on the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp, determining the time deviation between the server and the client.

5. A device for verifying the rationality of prices, characterized in that The device includes: A receiving module, configured to receive target information sent by a client, where the target information includes a first price for a target commodity, and the first price is the price of the target commodity at a first time point when the user makes a bid through the client; A calculating module, configured to calculate a second price for the target commodity according to a second time point when it receives the target information of the target commodity; A verifying module, configured to verify whether the first price of the target commodity is reasonable based on the first price and the second price; Wherein, the price of the target commodity changes over time, and the client and the device adopt the same commodity price calculation rule; Among them, the price of the target commodity decreases over time within a preset time period. During the process of verifying whether the first price of the target commodity is reasonable based on the first price and the second price, the verification module is specifically configured to: Compare the first price and the second price; When the first price is greater than the second price, determine that the first price of the target commodity is reasonable; When the first price is not greater than the second price, determine that the first price of the target commodity is unreasonable.

6. The device according to claim 5, characterized in that The time of the client and the device is kept synchronized.

7. The device according to claim 5, characterized in that, The device further includes: a synchronization module, The synchronization module is used for: When the time of the client and the device is not synchronized, determine the time deviation between the device and the client; Based on the time deviation, adjust the time of the client so that the time of the client and the device is kept synchronized.

8. The device according to claim 7, characterized in that, During the process of determining the time deviation between the device and the client, the synchronization module is specifically configured to: Obtain a first timestamp, where the first timestamp is the timestamp when the client sends a target data packet; Obtain a second timestamp, where the second timestamp is the timestamp when the device receives the target data packet; Obtain a third timestamp, where the third timestamp is the timestamp when the device sends a response data packet to the target data packet; Obtain a fourth timestamp, where the fourth timestamp is the timestamp when the client receives the response data packet; Based on the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp, determine the time deviation between the device and the client.

9. A method for verifying the reasonableness of a price, characterized in that, The method is executed by the client and includes: The client sends target information to the server, where the target information includes a first price for the target commodity, so that the server calculates the second price of the target commodity according to the second time point when receiving the target information of the target commodity; and verify whether the first price of the target commodity is reasonable based on the first price and the second price; Among them, the first price is the price of the target commodity at the first time point when the user makes a bid through the client; [[ID= ​ ​ ​ ​ ​ 10. The method for verifying the reasonableness of price according to claim 9, wherein ​ ​ Based on the time deviation, adjust the time of the client so that the time of the client and the server is synchronized.

11. The method according to claim 10, characterized in that, The client determines the time deviation from the server, including: Obtain a first timestamp, where the first timestamp is the timestamp when the client sends the target data packet; Obtain a second timestamp, where the second timestamp is the timestamp when the server receives the target data packet; Obtain a third timestamp, where the third timestamp is the timestamp when the server sends the response data packet of the target data packet; Obtain a fourth timestamp, where the fourth timestamp is the timestamp when the client receives the response data packet; Based on the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp, determine the time deviation between the client and the server.

12. A device for verifying the reasonableness of prices, characterized in that, The device includes: A sending module, configured to send target information to the server, where the target information includes a first price for a target commodity, so that the server calculates a second price for the target commodity according to the second time point when receiving the target information of the target commodity; and based on the first price and the second price, verify whether the first price of the target commodity is reasonable; Wherein, the first price is the price of the target commodity at the first time point when the user makes a bid through the device; Wherein, the price of the target commodity changes over time, and the device and the server adopt the same commodity price calculation rule; Wherein, the price of the target commodity decreases over time within a preset time period; During the process of verifying whether the first price of the target commodity is reasonable based on the first price and the second price, the server is specifically configured to: Compare the first price and the second price; When the first price is greater than the second price, determine that the first price of the target commodity is reasonable; When the first price is not greater than the second price, determine that the first price of the target commodity is unreasonable.

13. The device for verifying price rationality according to claim 12, characterized in that The device further includes: A processing module, configured to determine the time deviation between the device and the server when the time of the device and the server is not synchronized; Based on the time deviation, adjust the time of the device so that the time of the device and the server is synchronized.

14. The device according to claim 13, characterized in that, The processing module is specifically configured to: Obtain a first timestamp, where the first timestamp is the timestamp when the client sends the target data packet; Obtain a second timestamp, where the second timestamp is the timestamp when the server receives the target data packet; Obtain a third timestamp, where the third timestamp is the timestamp when the server sends the response data packet of the target data packet; Obtain a fourth timestamp, where the fourth timestamp is the timestamp when the client receives the response data packet; Based on the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp, determine the time deviation between the device and the server.

Citation Information

Patent Citations

  • Transaction match control method of transaction server and transaction system

    CN102236866A

  • Login verification method and login server

    CN110278176A