Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, partial terms or terminology appearing in describing embodiments of the present application are applicable to the following explanation:
inventory: the goods actually stored or sold in the warehouse can be classified into various types, such as production inventory, namely stock materials of basic enterprises and enterprises which directly consume the materials, and the goods are stored for ensuring that the materials consumed by the enterprises and enterprises can be supplied uninterruptedly; the circulation inventory, namely the stock of raw materials or finished products of a production enterprise, the stock of a production main department and the stock of each level of material main department; in addition, there are special forms of goods such as virtual products (e.g., financial products, insurance products, etc.), national reserves, etc.
According to an aspect of the embodiments of the present application, a method embodiment of a method for switching a mode state is provided.
Alternatively, in the present embodiment, the above-described mode state switching method may be applied to a hardware environment composed of the terminal 101 (corresponding to the terminal where the first platform is located) and the server 103 (corresponding to the server of the second platform) as shown in fig. 1. As shown in fig. 1, the server 103 is connected to the terminal 101 through a network, which may be used to provide inventory management services for the terminal or a client installed on the terminal, and a database 105 may be provided on the server or independent of the server, for providing data storage services for the server 103, where the network includes, but is not limited to: the terminal 101 is not limited to a PC, a mobile phone, a tablet computer, other servers, etc. that can be used to provide inventory related information.
The mode state switching method in the embodiment of the present application may be executed by the server 103, may be executed by the terminal 101, or may be executed by both the server 103 and the terminal 101. Fig. 2 is a flowchart of an alternative mode state switching method according to an embodiment of the present application, and as shown in fig. 2, the method may include the following steps:
In step S202, the server obtains configuration information of the target commodity in the first platform, and allows the first amount of resources to be different from the second amount of resources, where the first amount of resources is an amount of resources used to exchange virtual resources used by the target commodity at a first time, and the second amount of resources is an amount of resources used to exchange virtual resources used by the target commodity at a second time, and the second time is different from the first time.
The server is a server in the second platform, the terminal is a terminal in the first platform (which can be used for providing corresponding information for the server, such as the configuration information), the second platform is a sales platform of the target commodity, for the second platform, the commodity from the second platform can be sold, and the commodity from the third party platform can also be sold, wherein the first platform is a source platform of the target commodity, in other words, if the second platform sells the commodity of the second platform, the second platform and the first platform are the same platform, and if the second platform sells the commodity of the third party platform, the first platform is the third party platform.
The target commodity may be a physical commodity or a virtual commodity, such as a stock, bond, fund, etc., and the financial product will be described later as an example. The virtual resource is a resource for purchasing a target commodity, such as currency, virtual currency, a shopping coupon, a voucher, etc., and the target commodity, such as a financial product, whose value changes with time, changes, so that the value of the target commodity at a first time (a first amount of resource) is different from the value at a second time (i.e., a second amount of resource). The change of the financial product may be a real-time change (i.e. the value of the same financial product may be different at adjacent time instants), or may be a change according to a time period (i.e. the value of the same financial product may be different at adjacent time periods), so the first time and the second time may refer to time points (i.e. instant moments), or may refer to time periods (e.g. 1 hour, 1 day, 1 week, etc.).
In step S204, the server determines, according to the configuration information, a state switching manner of the target mode of the plurality of modes, where the mode of the plurality of modes is used to represent a manner used when the target commodity is exchanged using the virtual resource on the second platform.
For the target merchandise sold on the second platform, there may be multiple sales management modes (i.e., multiple modes), such as, for example, sell by daily inventory, sell by general inventory, sell by reservation, etc.
In step S206, the server switches the state of the target mode on the second platform according to the state switching manner.
The sales mode may have a plurality of states, and the switching of the state of the target mode includes at least one of: firstly, switching from one state of the target mode to the other state of the target mode, wherein the sales mode used before and after is unchanged; the other is that the target mode is switched to another sales mode, that is, the sales mode used before and after is changed, and of course, the state of the sales mode is also changed.
Through the steps, the server acquires the configuration information of the target commodity in the first platform, determines the state switching mode of the target mode in the multiple modes according to the configuration information, and switches the state of the target mode on the second platform according to the state switching mode.
The application of the technical solution of the present application to financial products will be described below as an example, and similar applications to other fields will not be repeated. Along with the rapid development of Internet economy, marketing of various financial and financial products is transferred from offline to online, financial products are recommended to users through financial terminals, and inventory management is performed by adopting the technical scheme of the application, so that a large amount of labor cost can be saved. The following details the technical solution of the present application in connection with the steps shown in fig. 2.
In the technical scheme provided in step S202, the server obtains configuration information of the target commodity in the first platform.
The configuration information can be derived from the first platform, that is, the information of the target commodity generated on the first platform changes, such as the stock quantity changes, the sales mode changes directly, and the like, and the first platform can directly send the configuration information to the second platform or the second platform can read the configuration information from the designated storage position of the first platform. The configuration information may also originate from the second platform, for example, because inventory is reduced as sales increase at the second platform, or the sales pattern is changed directly. The second platform can provide a data synchronization interface for the first platform, and can synchronously acquire the changes of inventory, sales modes and the like in the first platform through the interface, and change the numerical value of the parameters in the configuration information so as to achieve the aim of completing synchronization.
In the technical solution provided in step S204, a state switching manner of a target mode in multiple modes is determined according to configuration information, where the switching includes switching between modes and switching of states in modes, specifically as follows:
when the modes are switched, determining the state switching mode of the target mode in the multiple modes according to the configuration information comprises the following steps: and determining a second mode to be switched to and a first mode currently in according to the configuration information, and determining a second state switching mode of the first mode and a third state switching mode of the second mode, wherein the target mode comprises the first mode and the second mode, the second state switching mode is used for indicating that the first mode is switched from an on state to an off state, and the third state switching mode is used for indicating that the second mode is switched from the off state to the on state.
Alternatively, when determining the second mode to be switched to and the first mode currently in among the plurality of modes according to the configuration information, it may be determined according to a change in the stock amount: for the target commodities, a preset threshold (for example, 0) for representing the minimum saleable quantity and a time period for selling can be configured according to requirements, and then the adopted selling mode is determined according to the information, when the stock quantity in the third time period represented by the configuration information is not smaller than the preset threshold and the stock quantity in the fourth time period is not smaller than the preset threshold, that is, when the stock is available in the current time period and the saleable stock exists in the next time period, the mode to be switched to in the multiple modes is determined to be the second mode, the fourth time period is the time period after the third time period, the first mode is used for representing the target commodities which are reserved in the fourth time period in advance in the third time period, the second mode is used for representing the target commodities which are reserved in the fourth time period after the third time period are exchanged, and the second mode is the commodities which are reserved in the next time period after the third time period are sold in advance in the third time period.
When the in-mode state is switched, determining a state switching mode of a target mode in a plurality of modes according to the configuration information further comprises the following two modes:
the method comprises the steps of determining a first mode in which a plurality of modes are currently located, and determining a first state switching mode of the first mode according to configuration information, wherein a target mode comprises the first mode, and the first state switching mode is used for indicating that the first mode is switched from an off state to an on state.
Optionally, determining the first state switching manner of the first mode according to the configuration information includes at least one of:
1) When the configuration information indicates that the stock quantity of the target commodity is changed from the first quantity to the second quantity, namely, when the first mode indicates the commodity in a certain time period (the current time period of the current time or the next time period of the current time period when the commodity is reserved for selling) in the selling process, the stock quantity is changed, so that the changed stock is larger than the minimum saleable quantity, the switching mode of the first mode is determined to be a first state switching mode, the first quantity is smaller than a preset threshold value, the second quantity is not smaller than the preset threshold value, and the preset threshold value is the minimum quantity which allows exchange;
2) When the current time reaches the configuration time of the first time period indicated by the configuration information and the stock quantity of the target commodity in the first time period is not smaller than a preset threshold value, namely, a saleable stock exists at the vending start time of the first time period, determining that the switching mode of the first mode is a first state switching mode, wherein the configuration time is not earlier than the starting time of the first time period;
3) Under the condition that the current time reaches the configuration time of the first time period indicated by the configuration information and the stock quantity of the target commodity in the second time period is not smaller than a preset threshold value, namely, the saleable stock exists in the next time period (namely, the second time period) reserved for selling at the beginning of the selling time of the first time period, the switching mode of the first mode is determined to be a first state switching mode, and the second time period is a time period after the first time period.
And secondly, determining a first mode in which the plurality of modes are currently located, and determining a second state switching mode of the first mode according to the configuration information, wherein the second state switching mode is used for indicating that the first mode is switched from an on state to an off state.
Optionally, determining the second state switching manner of the first mode according to the configuration information includes: and when the configuration information indicates that the stock quantity of the target commodity is changed from the third quantity to the fourth quantity, determining that the switching mode of the first mode is a second state switching mode, wherein the fourth quantity is smaller than a preset threshold value, the third quantity is not smaller than the preset threshold value, and the preset threshold value is the minimum quantity allowed to be exchanged.
Namely, when the first mode indicates the commodity in a certain time period (the current time period of the current time or the next time period of the current time period when the commodity is reserved for selling) in the selling process, the stock quantity is changed, and when the changed stock quantity is smaller than the minimum marketable quantity, the commodity is stopped from being sold.
If the current time is not earlier than the end time of the first time period and the stock quantity of the target commodity in the first time period is smaller than a preset threshold value, namely, the stock quantity is changed when the commodity in the first time period is located in the current time, so that the changed stock quantity is smaller than the minimum saleable quantity, determining that the switching mode of the first mode is a second state switching mode; for another example, when the current time is not earlier than the end time of the first time period and the stock quantity of the target commodity in the second time period is smaller than the preset threshold, that is, the stock quantity in the second time period of the reserved selling is changed, so that the changed stock quantity is smaller than the minimum saleable quantity, the switching mode of the first mode is determined to be a second state switching mode, wherein the second time period is a time period after the first time period.
Optionally, determining the state switching manner of the target mode in the multiple modes according to the configuration information may further include: and determining a second mode in which the plurality of modes are currently located and a first mode to be switched to, and determining a second state switching mode of the second mode and a first switching mode of the first mode according to configuration information, wherein the first state switching mode is used for indicating that the first mode is switched from an off state to an on state, and the second state switching mode is used for indicating that the second mode is switched from the on state to the off state.
For example, the first mode in which the inventory is currently located is a reserved balance selling mode, that is, when there is an inventory which is not reserved in the current time period, the inventory is continuously sold, and when the inventory is reduced to a preset threshold value, the inventory is switched to be reserved for selling, that is, the inventory of the next time period is reserved in the current time period.
In the technical solution provided in step S206, the state of the target mode is switched on the second platform according to the state switching manner.
Optionally, the platform can automatically adjust the selling mode according to the change of the stock quantity, or can switch the state of the target mode according to the state switching mode on the second platform according to the background, and then switch the current mode according to the instruction of the switching instruction under the condition that the switching instruction of the background is received.
By adopting the technical scheme, in actual sales of financial commodities, operation expectations can be met, commodity inventory can be configured according to different commodity attributes, the commodity inventory comprises a selling mode (allowance, reservation and the like) and an inventory management mode (total inventory mode, daily inventory mode and the like), the modes and the quantity of the inventory can be flexibly and manually and even automatically adjusted according to temporary changes of a third party, and sales conditions and final inventory fit of the third party are maximally ensured.
As an alternative example, the overall architecture of the solution of the present application is shown in fig. 3, and the technical solution of the present application is described in detail below in conjunction with a specific embodiment.
And step 1, configuring a sales mode. As shown in fig. 4 to 6, configuration interfaces of three modes of daily inventory reservation selling, total inventory selling and daily inventory selling are respectively shown, and a background manager can perform configuration in the configuration interfaces.
And 2, monitoring the selling process in real time and monitoring the change of the configuration information.
(1) The selling mode is daily inventory selling
Setting up the inventory according to the date (namely, equivalent to a time period is 1 day), only selling the inventory corresponding to the current day, only selling the inventory when the inventory is sold on the current day, and only selling the inventory when the inventory is present even if the inventory is present on the later date, and waiting for the arrival of the later date to sell, in this mode, the inventory can be configured by day without going for reservation, and the table operation in the configuration information (as shown in fig. 7) includes: inquiring the corresponding stock of the current transaction date, freezing the corresponding stock of the current transaction date, thawing the corresponding stock of the transaction date when frozen and the like, wherein the operations finally result in the change of the data in the configuration information, and further trigger the execution of the technical scheme (similar results are caused by the operation in other selling modes). Typically, the system does not automatically switch between modes in this mode.
(2) The selling mode is the selling of the general warehouse
Setting total stock, releasing and selling, and purchasing as long as the stock remains until no stock exists, wherein in the mode, the table operation in the configuration information comprises: inventory operations such as increasing or decreasing inventory, freezing or thawing operations, and the like. Typically, the system does not automatically switch between modes in this mode.
(3) Sales mode is daily inventory reservation sales
The inventory is set according to the date, and as long as the available inventory corresponding to the date behind the current date is available, the available inventory corresponding to the date behind can be purchased, and in this mode, the following functions can be realized: inventory may be configured daily, reservations may be taken (reserving financial products for a period of time in the future); daily sales can be set, and the reservation system can actually place an order; the mode of selling the reserved allowance of the daily inventory and reserving the daily inventory can be automatically switched; the reservation system can record the time of batch ordering (after the reservation system is informed of the reservation completion after the reservation and the modification audit are passed) in the reservation list.
In this mode, when a user reserves a purchase, the user can reserve the purchase by operating a reserved date inventory table, a current transaction date and a date available after the current transaction date, wherein the table operation includes: inventory inquiry, wherein the expected ordering time and available inventory can be considered; inventory freezing: the information related to the date can be added, when the inventory and the source corresponding to the date are frozen, for example, when the inventory is frozen by a reservation list, the transmitted date is the transaction date of the day, whether 10 minutes before the ordering time of the transaction date of the day is reached can be judged, and if yes, the inventory is frozen and fails; thawing: and finding out the corresponding freezing date according to the single number and the stock keeping unit sku, and thawing the stock with the corresponding date.
And inquiring the amount which can be ordered by the reservation system through an interface when the reservation system finishes ordering the reservation list, and reporting the actual ordering amount by the reservation system after the batch ordering is finished so as to finish the purchase.
(4) Selling mode is daily inventory reservation allowance selling
The stock allowance which is not reserved by the previous day can be normally sold, the stock is switched to be reserved and sold by the daily stock after the current day is sold, in the mode, the commodity is normally sold, the business line calls the relevant interface of stock operation, and the mode automatic switching of reserved and sold by the daily stock and reserved by the daily stock refers to the mode switching below. The mode switching is the same as the selling mode when the daily inventory is reserved for selling. The table operation in this mode includes: inquiring the current trade day allowance, freezing the current trade day inventory, thawing the current trade day inventory, actually deducting the trade volume, deducting the current trade day freezing, and the like.
The total stock selling and daily stock selling, daily stock reservation and reserved allowance selling system can be three tables in design, the selling mode is modified, the system does not modify the stock data of the tables, and the design is completely decoupled. The operation can automatically judge whether the inventory data before and after the mode switching needs to be modified. The general inventory sales and the daily inventory sales can be directly carried out without reservation. Daily inventory sales can configure inventory by day. The total stock selling can be configured with daily stock for each trade day 15, or can be configured with a large stock for selling for several days when the product is not limited in stock. If daily inventory is required, daily inventory sales mode is recommended. The product is sold in a reservation mode when the daily inventory is reserved and sold, and the daily inventory reserved and sold and the daily inventory reserved and reserved allowance sold can share one page and a daily inventory list; and the products are directly sold when the daily inventory reservation allowance is sold.
And step 3, performing mode switching to finish automatic mode switching of daily inventory reservation allowance selling and daily inventory reservation.
An alternative implementation includes the following tasks: task one: the reservation list of each transaction day is placed for 10 minutes to execute a task, and the task II is: at 15:00 of each trade day, the following task content was performed: acquiring all commodities and switching according to the following logic, 1) the available inventory of the transaction day of the day is greater than or equal to the purchase amount (which is equal to the preset threshold value), and if the sales mode is reserved sales (namely, daily inventory reserved sales), the system automatically switches to daily inventory reserved allowance sales; 2) If the balance is smaller than the purchase amount, if the selling mode is reserved for balance selling, the system automatically judges that the available inventory of a certain transaction day in the configured day inventory is larger than or equal to the purchase amount in the date after the current transaction day, and the system automatically switches to the day inventory reserved mode.
The scheme can be switched in real time according to the stock condition: if the daily inventory reservation selling is switched to the daily inventory reservation allowance selling, after the inventory is released, setting a switching threshold value, judging whether the daily inventory reservation selling is greater than or equal to the threshold value every two hours, and if so, triggering switching; the daily inventory reservation allowance selling is switched to daily inventory reservation selling, and each inventory freezing operation can be performed in the switching mode.
In the scheme, the system can execute the task 10 minutes before ordering the reservation list to see whether available inventory is larger than or equal to the purchase amount, and if yes, the reservation list is cut into daily inventory reservation allowance to be sold. Inventory may be added and system tasks may not be performed and may be sold for reservation, at which time manual switching may be performed to sell daily inventory reservation margins.
According to the technical scheme, a set of solution is provided for the scene of changeable inventory, the modes of daily regular selling, daily reservation selling, reservation allowance selling and the like are realized under the condition of meeting regular inventory selling, the manual switching mode flexible in operation is supported, the staged inventory of each mode is adjusted, the function of automatic switching mode is realized to a certain extent, and the effect of adapting to the actual selling condition of commodities to the maximum limit and attaching to the third party inventory which is frequently and temporarily changed is achieved.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present application.
According to another aspect of the embodiments of the present application, there is also provided a mode state switching device for implementing the above mode state switching method. Fig. 8 is a schematic diagram of an alternative mode state switching device according to an embodiment of the present application, as shown in fig. 8, the device may include:
an obtaining unit 801, configured to obtain configuration information of the target commodity in the first platform, where a first resource amount is allowed to be different from a second resource amount, where the first resource amount is a resource amount of a virtual resource used for exchanging the target commodity at a first time, and the second resource amount is a resource amount of a virtual resource used for exchanging the target commodity at a second time, and the second time is different from the first time.
A determining unit 803, configured to determine, according to the configuration information, a state switching manner of a target mode of a plurality of modes, where the mode of the plurality of modes is used to represent a manner used when the target commodity is exchanged using the virtual resource on the second platform.
And a switching unit 805, configured to switch the state of the target mode on the second platform according to a state switching manner.
It should be noted that the acquiring unit 801 in this embodiment may be used to perform step S202 in the embodiment of the present application, the determining unit 803 in this embodiment may be used to perform step S204 in the embodiment of the present application, and the switching unit 805 in this embodiment may be used to perform step S206 in the embodiment of the present application.
It should be noted that the above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above embodiments. It should be noted that the above modules may be implemented in software or hardware as a part of the apparatus in the hardware environment shown in fig. 1.
Through the module, the server acquires the configuration information of the target commodity in the first platform, determines the state switching mode of the target mode in the multiple modes according to the configuration information, and switches the state of the target mode on the second platform according to the state switching mode.
Optionally, the determining unit is further operable to: determining a first mode in which the plurality of modes are currently located, and determining a first state switching mode of the first mode according to configuration information, wherein the target mode comprises the first mode, and the first state switching mode is used for indicating that the first mode is switched from a closed state to an open state; and determining a first mode in which the plurality of modes are currently located, and determining a second state switching mode of the first mode according to the configuration information, wherein the second state switching mode is used for indicating that the first mode is switched from an on state to an off state.
Optionally, the determining unit may be further configured to perform at least one of:
determining a switching mode of the first mode as a first state switching mode under the condition that the configuration information indicates that the stock quantity of the target commodity is changed from a first quantity to a second quantity, wherein the first quantity is smaller than a preset threshold value, the second quantity is not smaller than the preset threshold value, and the preset threshold value is the minimum quantity allowed to be exchanged;
under the condition that the current time reaches the configuration time of the first time period indicated by the configuration information and the stock quantity of the target commodity in the first time period is not smaller than a preset threshold value, determining that the switching mode of the first mode is a first state switching mode, wherein the configuration time is not earlier than the starting time of the first time period;
And under the condition that the current time reaches the configuration time of the first time period indicated by the configuration information and the stock quantity of the target commodity in the second time period is not smaller than a preset threshold value, determining the switching mode of the first mode as a first state switching mode, wherein the second time period is a time period after the first time period.
Optionally, the determining unit may be further configured to determine that the switching mode of the first mode is the second state switching mode when the configuration information indicates that the inventory amount of the target commodity is changed from the third amount to the fourth amount, where the fourth amount is smaller than a preset threshold, the third amount is not smaller than the preset threshold, and the preset threshold is a minimum amount allowed to be exchanged.
Optionally, the determining unit may be further configured to determine a second mode to be switched to and a first mode currently in the multiple modes according to the configuration information, and determine a second state switching mode of the first mode and a third state switching mode of the second mode, where the target mode includes the first mode and the second mode, the second state switching mode is used for indicating that the first mode is switched from an on state to an off state, and the third state switching mode is used for indicating that the second mode is switched from the off state to the on state.
Optionally, the determining unit may be further configured to determine, in a case where the inventory amount in the third time period indicated by the configuration information is not less than the preset threshold and the inventory amount in the fourth time period is not less than the preset threshold, that a mode to be switched to among the multiple modes is a second mode, where the fourth time period is a time period after the third time period, the first mode is used to indicate that the target commodity is reserved in the third time period approximately, and the second mode is used to indicate that the target commodity is exchanged in the third time period first and then reserved in the fourth time period.
Optionally, the switching unit may be further configured to switch, after the state of the target mode is switched on the second platform according to the state switching manner, the current mode according to the instruction of the switching instruction when the switching instruction is received.
It should be noted that the above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above embodiments. It should be noted that the above modules may be implemented in software or in hardware as part of the apparatus shown in fig. 1, where the hardware environment includes a network environment.
According to another aspect of the embodiments of the present application, there is also provided a server or a terminal for implementing the method for switching a mode state described above.
Fig. 9 is a block diagram of a terminal according to an embodiment of the present application, and as shown in fig. 9, the terminal may include: one or more (only one is shown in fig. 9) processors 901, memory 903, and transmission means 905, as shown in fig. 9, which may also include input output devices 907.
The memory 903 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for switching a mode state in the embodiments of the present application, and the processor 901 executes the software programs and modules stored in the memory 903, thereby executing various functional applications and data processing, that is, implementing the method for switching a mode state described above. Memory 903 may include high speed random access memory, but may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 903 may further include memory located remotely from the processor 901, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 905 is used for receiving or transmitting data via a network, and may also be used for data transmission between a processor and a memory. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission apparatus 905 includes a network adapter (Network Interface Controller, NIC) that may be connected to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 905 is a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In particular, the memory 903 is used to store applications.
The processor 901 may call an application stored in the memory 903 via the transmission device 905 to perform the following steps:
acquiring configuration information of a target commodity in a first platform, wherein a first resource amount is allowed to be different from a second resource amount, the first resource amount is used for exchanging virtual resources used by the target commodity at a first time, the second resource amount is used for exchanging virtual resources used by the target commodity at a second time, and the second time is different from the first time;
Determining a state switching mode of a target mode in a plurality of modes according to the configuration information, wherein the modes in the plurality of modes are used for representing a mode used when the virtual resource is used for exchanging the target commodity on the second platform;
and switching the state of the target mode on the second platform according to a state switching mode.
The processor 901 is further configured to perform the steps of:
determining a switching mode of the first mode as a first state switching mode under the condition that the configuration information indicates that the stock quantity of the target commodity is changed from a first quantity to a second quantity, wherein the first quantity is smaller than a preset threshold value, the second quantity is not smaller than the preset threshold value, and the preset threshold value is the minimum quantity allowed to be exchanged;
under the condition that the current time reaches the configuration time of the first time period indicated by the configuration information and the stock quantity of the target commodity in the first time period is not smaller than a preset threshold value, determining that the switching mode of the first mode is a first state switching mode, wherein the configuration time is not earlier than the starting time of the first time period;
and under the condition that the current time reaches the configuration time of the first time period indicated by the configuration information and the stock quantity of the target commodity in the second time period is not smaller than a preset threshold value, determining the switching mode of the first mode as a first state switching mode, wherein the second time period is a time period after the first time period.
According to the technical scheme, a set of solution is provided for the scene of changeable inventory, the modes of daily regular selling, daily reservation selling, reservation allowance selling and the like are realized under the condition of meeting regular inventory selling, the manual switching mode flexible in operation is supported, the staged inventory of each mode is adjusted, the function of automatic switching mode is realized to a certain extent, and the effect of adapting to the actual selling condition of commodities to the maximum limit and attaching to the third party inventory which is frequently and temporarily changed is achieved.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is only illustrative, and the terminal may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 9 is not limited to the structure of the electronic device. For example, the terminal may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in fig. 9, or have a different configuration than shown in fig. 9.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
Embodiments of the present application also provide a storage medium. Alternatively, in the present embodiment, the above-described storage medium may be used for executing the program code of the switching method of the mode state.
Alternatively, in this embodiment, the storage medium may be located on at least one network device of the plurality of network devices in the network shown in the above embodiment.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of:
acquiring configuration information of a target commodity in a first platform, wherein a first resource amount is allowed to be different from a second resource amount, the first resource amount is used for exchanging virtual resources used by the target commodity at a first time, the second resource amount is used for exchanging virtual resources used by the target commodity at a second time, and the second time is different from the first time;
Determining a state switching mode of a target mode in a plurality of modes according to the configuration information, wherein the modes in the plurality of modes are used for representing a mode used when the virtual resource is used for exchanging the target commodity on the second platform;
and switching the state of the target mode on the second platform according to a state switching mode.
Optionally, the storage medium is further arranged to store program code for performing the steps of:
determining a switching mode of the first mode as a first state switching mode under the condition that the configuration information indicates that the stock quantity of the target commodity is changed from a first quantity to a second quantity, wherein the first quantity is smaller than a preset threshold value, the second quantity is not smaller than the preset threshold value, and the preset threshold value is the minimum quantity allowed to be exchanged;
under the condition that the current time reaches the configuration time of the first time period indicated by the configuration information and the stock quantity of the target commodity in the first time period is not smaller than a preset threshold value, determining that the switching mode of the first mode is a first state switching mode, wherein the configuration time is not earlier than the starting time of the first time period;
and under the condition that the current time reaches the configuration time of the first time period indicated by the configuration information and the stock quantity of the target commodity in the second time period is not smaller than a preset threshold value, determining the switching mode of the first mode as a first state switching mode, wherein the second time period is a time period after the first time period.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.