The method and system of trade company's state automatic feedback
Technical field
The invention belongs to O2O (Online To Offline, under line on line) e-commerce field, it relates to the method and system of a kind of trade company state automatic feedback.
Background technology
At present, client sends order to trade company by taking out platform, and trade company selects accept an order or refuse according to business circumstance, and order is rejected rear client can only select businessman else.If businessman is now due to self reason, and be not suitable for order, but it is not put up the shutter again in time (not expecting maybe can not operating), therefore can cause and constantly have client to be refused by this trade company, while trade company is bothered, its trade company's prestige is also affected and Customer Experience degree is also poor.
Visible, the business status of trade company is not fed back to user in time in existing e-commerce platform, all bring very large inconvenience to trade company and client.
Summary of the invention
The technical problem to be solved in the present invention the business status of trade company is not fed back in time user and the defect that all brings very large inconvenience to trade company and client to overcome e-commerce platform of the prior art, provides the method and system of a kind of trade company state automatic feedback.
The present invention is solved the problems of the technologies described above by following technical proposals:
The method of a kind of trade company state automatic feedback, its feature is, one first feedback command and one second feedback command that are provided with for refusing the request of accepting an order are held by trade company, described first feedback command and a described second feedback command corresponding class trade company state respectively, trade company's end provides for described first feedback command the counter that an initial value is 0, said method comprising the steps of:
S
1, trade company's end receives the order request that client sends, and obtains the content of described order request;
S
2, trade company end judge whether to accept described order request according to the content of described order request, if, trade company's end sends one for characterizing the instruction process ends that accept described order request to the client sending described order request, if not, trade company's end selects the client to sending described order request to send described first feedback command or described second feedback command, if select described first feedback command, then enter step S
3if select described second feedback command, then enter step S
4;
S
3, described counter holds trade company the number of times of described first feedback command sent count and make the count value of described counter add 1, and enters step S
5;
S
4, trade company end to server send one second Status Change request, trade company's end is set to the trade company state corresponding with described second feedback command by server after receiving described second Status Change request, and trade company's status information corresponding for described second feedback command residing for trade company's end is pushed to all clients, and process ends;
S
5, trade company end judge whether the count value of described counter in a special time period or in a preset duration reaches a frequency threshold value, and when judged result is for being to server transmission one first Status Change request;
S
6, trade company's end is set to the trade company state corresponding with described first feedback command by server after receiving described first Status Change request, and trade company's status information corresponding to described first feedback command residing for trade company being held pushes to all clients.
In this programme, trade company's end only can count the number of times of transmission first feedback command, the content representation subjective trade company end of the first feedback command is in busy state, as " no one send ", " being too busy to do it " etc., when reaching frequency threshold value for similar reason for rejection, then corresponding trade company's Status Change is " busy state ".And the content representation of the second feedback command objectively trade company's end cannot for customer service, as trade company's end is in the state of putting up the shutter that is about to, closes state, or trade company's end estimates that commodity also cannot be sent at short notice, therefore, the Status Change that trade company can directly hold by server is " non-business status ", and without the need to counting the number of times of the second feedback command.
Wherein, special time period refers to the time period formed between two moment, monitored by the actual conditions of holding trade company, to the selection of times counting of the instruction of trade company's end refusal order request, thus trade company held current residing virtual condition to feed back to all clients in time, therefore can not make troubles to trade company's end and client, it also avoid because of trade company's end cannot accept an order request time other client of causing still constantly send order, trade company's end also frequently refusal order and the low Experience Degree defect that causes.
Preferably, step S
5comprise:
S
51, trade company end judge whether the count value of described counter in described special time period or in described preset duration reaches described frequency threshold value, if so, to server transmission described first Status Change request after enter step S
6, if not, enter step S
52;
S
52, the count value of described counter reset and returns step S
1.
Preferably, step S
6comprise afterwards:
S
71, judge whether the duration that trade company's end is in trade company's state corresponding to described first feedback command reaches a duration, and when judged result is for being, trade company's end is switched to normal condition from trade company's state that described first feedback command is corresponding, and the count value of described counter resets.
Wherein, trade company's end may be currently cannot to accept an order in a short time, therefore, after this duration, trade company's end-grain cutting is changed to normal condition, normally to receive the order request that client sends, thus the interactive experience between trade company's end and client can not be affected.
Preferably, step S
6when middle trade company end is in trade company's state corresponding to described first feedback command, server tackles the order request that all clients send automatically.
Preferably, step S
6comprise afterwards:
S
72, judge whether the duration that trade company's end is in trade company's state corresponding to described first feedback command reaches a duration, and when judged result is for being, trade company's end is switched to normal condition from trade company's state that described first feedback command is corresponding, and invoking server cancels the automatic interception to the order request that all clients send, the count value of described counter resets.
The present invention also provides the system of a kind of trade company state automatic feedback, and its feature is, it utilizes method as above, and described system comprises trade company's end, server and client side;
Trade company holds the order request for receiving client transmission and obtains the content of described order request;
Trade company's end is also for judging whether to accept described order request according to the content of described order request, if, trade company's end sends one for characterizing the instruction accepting described order request to the client sending described order request, if not, trade company's end selects the client to sending described order request to send described first feedback command or described second feedback command, if select described first feedback command, then call described counter; If select the second feedback command, trade company's end sends one second Status Change request to server,
The number of times that described counter is used for sending trade company's end described first feedback command counts;
Described server is used for, after receiving described second Status Change request, trade company's end is set to the trade company state corresponding with described second feedback command, and trade company's status information corresponding for described second feedback command residing for trade company's end is pushed to all clients;
Described trade company end also for judging whether the count value of described counter in a special time period or in a preset duration reaches a frequency threshold value, and sends one first Status Change request when judged result is for being to server;
Trade company's status information corresponding for described first feedback command residing for trade company's end also for trade company's end being set to the trade company state corresponding with described first feedback command after receiving described first Status Change request, and is pushed to all clients by described server.
Preferably, described trade company end is also for resetting the count value of described counter when in described special time period or in described preset duration, the count value of described counter does not reach described frequency threshold value.
Preferably, when described trade company end is also for reaching a duration in the duration being in trade company's state corresponding to described first feedback command, automatically switches to normal condition from trade company's state that described first feedback command is corresponding, and the count value of described counter is reset.
Preferably, server also for when trade company's end is in trade company's state corresponding to described first feedback command, the order request that sends of all clients of interception automatically.
Preferably, when described trade company end is also for reaching a duration in the duration being in trade company's state corresponding to described first feedback command, automatically normal condition is switched to from trade company's state that described first feedback command is corresponding, and the count value of described counter reset, and invoking server cancels the automatic interception to the order request that all clients send.
Positive progressive effect of the present invention is: the present invention is by holding the number of times of the first feedback command sent to count to trade company, trade company's end is set to the trade company state corresponding with this first feedback command when meeting frequency threshold value, directly trade company's end is set to the trade company state corresponding with this second feedback command when sending the second feedback command, therefore, trade company's feedback of status residing for can trade company being held in time is to all clients, bring great convenience to trade company's end and client, other client that it also avoid because causing when trade company's end cannot be accepted an order and be asked still constantly sends order, the low Experience Degree defect that trade company's end is also frequently refused order and caused.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of trade company's state automatic feedback of the embodiment of the present invention 1.
Fig. 2 is the method flow diagram of trade company's state automatic feedback of the embodiment of the present invention 2.
Embodiment
Mode below by embodiment further illustrates the present invention, but does not therefore limit the present invention among described scope of embodiments.
Embodiment 1
The present embodiment provides the method for a kind of trade company state automatic feedback, one first feedback command and one second feedback command that are provided with for refusing the request of accepting an order are held by trade company, described first feedback command and a described second feedback command corresponding class trade company state respectively, trade company's end provides for described first feedback command the counter that an initial value is 0.
Particularly, the content of the first feedback command can be: " no one send ", " being too busy to do it ", the content of the second feedback command can be: " in rest ", " being about to close ", trade company's state that first feedback command is corresponding is: " busy state ", and trade company's state corresponding to the second instruction is: " non-business status ".
As shown in Figure 1, said method comprising the steps of:
Step 101, trade company's end receive the order request that client sends, and obtain the content of described order request.
Wherein, the content of order request can be food, clothes, daily necessities etc., as long as the article that can be undertaken placing an order by e-commerce platform all can be used as the content of order request.Suppose that the content of order request is herein food.
Step 102, trade company's end judge whether to accept described order request according to the content of described order request, if, trade company's end sends one for characterizing the instruction process ends that accept described order request to the client sending described order request, if not, trade company's end selects the client to sending described order request to send described first feedback command or described second feedback command, if select described first feedback command, then enter step 103, if select described second feedback command, then enter step 104.
Wherein, trade company end according in order request client order food variety and quantity number, and trade company holds current employee's busy state, current food materials supply amount etc. to determine whether accepting an order, now because trade company's end is busier, this order request cannot be accepted, therefore, trade company's end sends to the client sending described order request the first feedback command that content is " no one send ".
Step 103, described counter hold the number of times of described first feedback command sent count and make the count value of described counter add 1 to trade company, and enter step 1051.
Step 104, trade company's end send one second Status Change request to server, trade company's end is set to the trade company state corresponding with described second feedback command by server after receiving described second Status Change request, and trade company's status information corresponding for described second feedback command residing for trade company's end is pushed to all clients, and process ends.
Also be, trade company end to send described order request client send content be second feedback command of " in rest " time, this trade company end just changes to " non-business status " by server, and current for this trade company end residing trade company's state is pushed to all clients.
Step 1051, trade company's end judge whether the count value of described counter in a preset duration reaches described frequency threshold value, if so, after server sends described first Status Change request, enter step 106, if not, enter step 1052.
Step 1052, the count value of described counter reset and returns step 101.
Trade company's end is set to the trade company state corresponding with described first feedback command by step 106, server after receiving described first Status Change request, and trade company's status information corresponding for described first feedback command residing for trade company's end is pushed to all clients.
Wherein, suppose that preset duration is set to 30 minutes, frequency threshold value is set to 2 times, in 2 hours, trade company's end is due to busy, constantly have rejected the order request that multiple client sends, wherein, the number of times being " no one send " for the first feedback command has reached 2 times, therefore, the state that trade company holds is set to " busy state " by server, and this trade company's state is pushed to all clients.
All clients are just known trade company's end and are now in busy state, therefore can not send order to trade company's end again, all bring great convenience to trade company's end and client.
Wherein, when trade company's end is for the order request sent apart from far client, the instruction of content for " too far away " can be sent to client to inform client, but the measure of any change trade company state can not be taked.
The present embodiment also provides the system of a kind of trade company state automatic feedback, and it utilizes the method described in the present embodiment, and described system comprises trade company's end, server and client side.
Trade company holds the order request for receiving client transmission and obtains the content of described order request;
Trade company's end is also for judging whether to accept described order request according to the content of described order request, if, trade company's end sends one for characterizing the instruction accepting described order request to the client sending described order request, if not, trade company's end selects the client to sending described order request to send described first feedback command or described second feedback command, if select described first feedback command, then call described counter; If select the second feedback command, trade company's end sends one second Status Change request to server,
The number of times that described counter is used for sending trade company's end described first feedback command counts;
Described server is used for, after receiving described second Status Change request, trade company's end is set to the trade company state corresponding with described second feedback command, and trade company's status information corresponding for described second feedback command residing for trade company's end is pushed to all clients;
Described trade company end is also for judging whether the count value of described counter in a preset duration reaches a frequency threshold value, and send one first Status Change request when judged result is for being to server, when judged result is no, the count value of described counter is reset;
Trade company's status information corresponding for described first feedback command residing for trade company's end also for trade company's end being set to the trade company state corresponding with described first feedback command after receiving described first Status Change request, and is pushed to all clients by described server.
Visible, counted by situation selectivity trade company's end being sent to feedback command, trade company is made to hold the timely feedback can making trade company's Status Change to all clients, trade company is held, interactive experience between server and client side three is more smooth and easy, avoid because of trade company's end cannot accept an order request time the low Experience Degree defect that other client still constantly sends order, trade company's end is also frequently refused order and caused that causes.
Embodiment 2
The present embodiment provides the method for a kind of trade company state automatic feedback, as shown in Figure 2, the present embodiment is with the difference of the method for embodiment 1: when in step 106, trade company holds and is in trade company's state corresponding to described first feedback command, server tackles the order request that all clients send automatically, comprises after step 106:
Step 107, judge whether the duration that trade company's end is in trade company's state corresponding to described first feedback command reaches a duration, and when judged result is for being, trade company's end is switched to normal condition from trade company's state that described first feedback command is corresponding, and invoking server cancels the automatic interception to the order request that all clients send, the count value of described counter resets.
Suppose that described duration is also set to 30 minutes, also, after the duration that trade company's end is in described " busy state " reaches 30 minutes, can normal condition be returned to, with the order request sent after receiving client.
The present embodiment can also promote the interactive experience between trade company's end, server and client further while the effect reaching embodiment 1.
Although the foregoing describe the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is defined by the appended claims.Those skilled in the art, under the prerequisite not deviating from principle of the present invention and essence, can make various changes or modifications to these embodiments, but these change and amendment all falls into protection scope of the present invention.