It is a kind of to put the intelligent auction system for clapping net
Technical field
The present invention relates to a kind of intelligent auction system for putting and clapping and netting, belong to technical field of electronic commerce.
Background technology
Traditional auction has following limitation and pain spot:(1) spend big, auction company, which holds traditional auction, can will rent field
Ground is, it is necessary to which convention expense, security food and drink expense, communication fee etc., costly.(2) efficiency is low, and traditional auction can an auction
Teacher can only be absorbed in the scene hosting of an auction, inefficiency.(3) bidder vie for purchase it is costly, by time, region etc.
Influence, bidder participates in traditional auction meeting, to arrange time, travel, lodging etc. properly, and expense can increase bidder and vie for purchase cost.
(4) malice is competed, and malice string mark, traditional live auction meeting, bidder can see each other, is easily asked in the presence of malice competition, string mark
Topic.The limitation and pain spot of some traditional auction, may all bring interests to lose to trustee, bidder, auction company above.
In recent years, network auction is a kind of auction pattern risen on the premise of internet speed raising.Network auction is deposited
Not limited by place, confidentiality is high, can realize remote control, it is convenient and swift the advantages of, by bidder, auction side etc.
Like.
In existing some network auctions, user click on to have permission participate in auction target, the page directly set up and
The Http length connection of Node information broadcast service devices.There is the certain hidden danger of safety in this scheme, attacker from web page source code or
Carry out after packet capturing analysis, obtain port, address and the communication packet form of Node services, just directly can be with Node servers
Connection is set up, and forges association requests and is sent to server, what interference or destruction were bidded is normally carried out.
When target is more, and it is many to participate in the bidder of auction, is the pass of multi-to-multi between target and auction people
System, if carrying out priority assignation of vying for purchase to each target, workload is very big, is unfavorable for improving the turnover of target, reduction
Probability of transaction.
In legacy network auction, after some user bid or other events generations of bidding, other are participating in the use of auction
Family obtains latest news by the automatic flush mechanism of the page, and this scheme has two defects:1st, page periodic refreshing, such as often
Refresh once within two seconds, page info is obtained not in time.The stronger trade at competitive price system of correspondence real-time, Consumer's Experience is very
Difference.2nd, User Page periodic refreshing, each user's request is required for reading database, when concurrent user is more, can be brought to system
Very big pressure.
The content of the invention
In view of the shortcomings of the prior art, the invention provides a kind of intelligent auction system for putting and clapping and netting;
Term is explained:
Target_id, target ID;
The technical scheme is that:
A kind of intelligent auction system for putting bat net, including step are as follows:
A, log in:Bidder/auction Shi Denglu, including step are as follows:
(1) judge whether bidder/auction teacher registered, step (2) is entered if being, otherwise, bidder advances certainly
Row registration, auction teacher carries out account establishment by auction company keeper;
(2) bidder/auction teacher inputs user name, password, initiates auction/auction request, and auction request includes
Target_id, i.e. bidder/auction Shi Yixiang vies for purchase/ID for the target auctioned, auction backstage receives the auction/auction please
After asking, one Token code of bidder/auction teacher is returned,
(3) bidder/auction teacher connects Node with the Token codes, long connection is set up, according in auction/auction request
Target_id, adds the corresponding room of the target_id, i.e. bidder/auction Shi Yixiang vies for purchase/where the target auctioned
room;Point is clapped in net, and each target corresponds to a room, is participated in the bidder of this target auction, auction teacher and is all added this
Equivalent to one chatroom of Room in room, Node, the message that bidder, auction teacher operate is wide in real time all in this room
Broadcast, message, which will not be broadcast to, gives other unrelated users, so that, the people that bids bids, every other bidder and auction teacher's energy
Newest quotation is obtained in real time.
B, auction:
(4) bidder initiates bidding request, and bidding request includes bidder ID, the number plate for participating in this auction, bid gold
Volume, the target ID currently participated in, auction backstage are received after the bidding request, access oracle database, carry out logic judgment,
If bidder offers successfully, bidder's bid successful information is returned, into step (5), otherwise, then bidder's bid is returned to
Failure information;
(5) auction backstage sends a message to Node, message include bidder vie for purchase the target_id of target, event type,
Bidder's bid amount, event type is bid;
(6) Node finds corresponding room according to the target_id for target of vying for purchase, and message broadcast is carried out in real time and is pushed, extensively
Broadcast message issue with this room except auction backstage in addition to other all connectionists, including other bidders, auction teacher,
The page where other all connectionists shows latest news in real time;
(7) return after bidder's bid successful information, automatically prolong the time of vying for purchase, and start the computation delay time, to reach
The extension time of setting and in this section of delay time without new successful quotes, last time successful bid person strikes a bargain, end of bidding.
According to currently preferred, the delay time is 5 minutes.
Within then countdown enters 5 minutes, as long as there is bidder to offer successfully, then auction automatic time delay 5 minutes.
According to currently preferred, participate in auction and carry out authentication, including step is as follows:
A, bidder/auction teacher are initiated after Node connection requests by webpage, and auction backstage generates a token code, will
The Token codes return to webpage, and web cache is in Hidden field, at the same time, and token codes are also sent to by auction backstage
The Token codes are saved in Redis memory databases by Node, Node, and set the effective time ts of the Token codes, mistake
After ts, Redis memory databases can be automatically deleted the Token codes;T span is 5-15;
The page where b, bidder/auction teacher connects Node using the Token codes in effective time ts, sets up long connect
Connect, Node searches the Token codes in Redis memory databases, and is matched, and the match is successful, then allow connection, otherwise,
It fails to match, then refusal connection.
The advantage designed herein is, prevents Token codes from losing, intercepted or arbitrarily generation Token codes carry out backstage company
The malicious attack connect.
According to currently preferred, t=10.
According to currently preferred, target group is auctioned, the target group includes two or more targets, setting
Target group has n target, and serial number is carried out to each target in target group, and setting numbering is followed successively by 1,2 ... i ... n;To ginseng
Authority of vying for purchase, i.e., the quantity for the target vied for purchase to each bidder setting, when this are set with the bidder of the auction target group
When the target that bidder vies for purchase reaches the quantity of its corresponding target vied for purchase, then the target group can not be vied for purchase again;
The quantity for participating in setting the target vied for purchase of the bidder of each participation auction target group before auction is 0, including:
By step B, number in sequence, auction is carried out to the target in target group successively, during each completion of an auction, sentenced
Whether the disconnected quantity vied for purchase to the target vied for purchase of the bidder of the target is more than the quantity of the target vied for purchase set, such as
Fruit is more than, and carries out auction to the target again, otherwise, the quantity vied for purchase to the target vied for purchase of the bidder of the target plus 1,
Judge whether the numbering of the target of next auction is more than n, more than then terminating, otherwise, continue to carry out the target of Next Serial Number competing
Clap.
The advantage designed herein is, in auction process, and a target auction is finished, and auction teacher, bidder participate in target
List refreshes automatically, the target that currently preside over or participate in, and is listed in the Section 1 of list.It is user-friendly.Along bat target group
When target is a lot, participation auction people is more, between target and auction people it is the relation of multi-to-multi, if vied for purchase to each target
Priority assignation, workload is very big, conclusion of the business target quantity can be limited along target group is clapped, facilitate the setting of auction company,
The extensive work time is saved;For bidder, it can participate in, along all target auctions in target group are clapped, improving target
Auction number is participated in, is conducive to improving the turnover and probability of transaction of target.
According to currently preferred, the intelligent auction system of the point bat net, before logging in, in addition to newly-increased target,
Specific steps include:Auction company creates target information, including target title, type, auction technique, target industry, target figure
Piece, target auction teacher, auction technique includes advance price auction, price reduction auction, and the target information is stored in into oracle database
In.
Target can select to preside over auction teacher of this target auction, and the auction Shi Caineng only specified presides over this target.Can
One can be selected in the picture of target association, the picture of upload for front cover to upload.
According to currently preferred, the step (4), before auction, auction is set to each auction people for the logic judgment
Authority, including common bidder, privilege people, for a target, system is provided as target addition bidder's authority
Function, only added the account for authority of vying for purchase, and can participate in the auction of this target.To giving priority to purchasing people, it can also set excellent
First authority, current system can set 1-9 grades of authorities, and 9 grades are highest authority.Privilege is also known as preemption, refers to specific
People is according to legal provisions or contract engagement, when supplier betrays subject matter in the third party, enjoy equal conditions prior to
The right of third party's purchase.Privilege people is usually the creditor of target.It is as follows including step:
When being bidded between common bidder, bid before not terminating, i.e., in the time and in delay time of freely bidding
Interior, if present bidding is higher than target present price, (if bidding for the first time, then present bidding have to be larger than to be equal to and start auction
Valency), and the time of bidding was more than bid time last time, then it is assumed that bid successfully, target present price is updated to present bidding, no
Then, bid failure;
When being bidded between privilege people and common bidder, if the artificial privilege of present bidding
People, and the artificial common bidder of current highest quotation, present bidding people refer to that submission of quotation is handled by system, not bid also
Before success;Current highest quotation people refers to the current price bid winner of target price, when privilege people's bid price is big
When equal to target present price, bid successfully, otherwise, bid failure;
When being bidded between privilege people and privilege people, if present bidding people and current highest report
Valency is per capita privilege people, and present bidding people authority is higher than current highest quotation people, and bid price is more than or equal to current
Price, then present bidding people bid successfully, otherwise, bid failure.
Beneficial effects of the present invention are:
1st, the present invention carries out real-time messages broadcast using clog-free Node servers, significantly reduces service server
Pressure, information arrival rate is fast, improves system availability and Consumer's Experience.
2nd, user of the present invention must enter system with user name, password login, after logining successfully, if it is competing to participate in some target
Clap, initiate after request, system background distributes unique token information, and within this token information 10 seconds effectively, user
When setting up long be connected with the application of Node servers, this subsidiary token.This token is just invalid within more than 10 seconds, prevents token quilts
Intercept or malice is cracked.
3rd, point claps the network auction trading service platform that intelligent auction system of the net based on internet provides O2O, user
As long as auction can just be participated in by possessing a PC that can be surfed the Net, auction can be just participated in even with smart mobile phone.Point claps net base
In internet+intelligent auction system provide O2O network auction trading service platform.Whoso, no matter where, only
Can surf the Net can just participate in auction, or even can just be participated in mobile phone.Also save time, traffic, lodging etc. it is many into
This.Bidder without geographical restrictions, does not use scene, it is ensured that the fairness of user's bid, privacy, bid process discloses,
It is fair, just, it is to avoid the problems such as malice string mark.
4th, for traditional auction efficiency it is low the problem of, point of use claps the intelligence service of bidding that the intelligent auction system of net is provided,
Auction teacher can preside over multiple auctions simultaneously, and auction teacher need to only click on mouse, start auction, supervise bid process, whole
Individual auction's bid process is carried out by meeting Auction Law logic automatically, until End of Auction.End of Auction, system can be pointed out automatically
Target user in current.
5th, in bidder's bid process, each bidder distributes different number plates, and bidder is used as mark using different number plates
Know participation to bid, number plate not external disclosure, whom can not be known by only auctioning between the corresponding bidder of Shi Zhidao number plates, bidder
Auction is participated in, also just can not maliciously be obstructed, malice string mark.
6th, for auction company, the intelligent auction system of net is clapped using, the cost for meeting of auctioning is substantially reduced, target
Probability of transaction, premium rate increases, and is conducive to the development of corporate business.
7th, for trustee, the intelligent auction system of net is clapped using, prison bat can be carried out to auction in real time;Target strikes a bargain
Rate, premium rate is increased, and the interests of trustee are improved.
Brief description of the drawings
Fig. 1 is auction Authentication mechanism schematic diagram;
Fig. 2 claps the intelligent auction system schematic flow sheet of net for present invention point;
Embodiment
The present invention is further qualified with reference to Figure of description and embodiment, but not limited to this.
Embodiment
A kind of intelligent auction system for putting bat net, including step are as follows:
A, log in:Bidder/auction Shi Denglu, including step are as follows:
(1) judge whether bidder/auction teacher registered, step (2) is entered if being, otherwise, bidder advances certainly
Row registration, auction teacher carries out account establishment by auction company keeper;
(2) bidder/auction teacher inputs user name, password, initiates auction/auction request, and auction request includes
Target_id, i.e. bidder/auction Shi Yixiang vies for purchase/ID for the target auctioned, it is competing that auction spooler receives this
After bat/auction request, one Token code of bidder/auction teacher is returned;
(3) bidder/auction teacher connects Node with the Token codes, long connection is set up, according in auction/auction request
Target_id, adds the corresponding room of the target_id, i.e. bidder/auction Shi Yixiang vies for purchase/where the target auctioned
room;Point is clapped in net, and each target corresponds to a room, is participated in the bidder of this target auction, auction teacher and is all added this
Equivalent to one chatroom of Room in room, Node, the message that bidder, auction teacher operate is wide in real time all in this room
Broadcast, message, which will not be broadcast to, gives other unrelated users, so that, the people that bids bids, every other bidder and auction teacher's energy
Newest quotation is obtained in real time.
B, auction:
(4) bidder initiates bidding request, and bidding request includes bidder ID, the number plate for participating in this auction, bid gold
Volume, the target ID currently participated in, auction spooler are received after the bidding request, access oracle database, are carried out
Logic judgment, if bidder offers successfully, returns to bidder's bid successful information, into step (5), otherwise, then returns
Bidder's bid failure information;
(5) auction spooler sends a message to Node, message include bidder vie for purchase target target_id,
Event type, bidder's bid amount, event type are bid;
(6) Node finds corresponding room according to the target_id for target of vying for purchase, and message broadcast is carried out in real time and is pushed, extensively
Broadcast message issue with this room in addition to auctioning spooler other all connectionists, including others vie for purchase
People, auction teacher, the page where other all connectionists show latest news in real time;
(7) return after bidder's bid successful information, automatically prolong the time of vying for purchase, and start the computation delay time, to reach
The extension time of setting and in this section of delay time without new successful quotes, last time successful bid person strikes a bargain, end of bidding.
Delay time is 5 minutes.
The present embodiment point claps the intelligent auction system schematic flow sheet of net as shown in Fig. 2 in Fig. 2, Step1, user participate in
Auction;Step2, return user's Token codes;Step3, with Token codes Node is connected, set up long connection, and add target correspondence
Room;Step4, user initiate auction bid event;Step5, message broadcast are notified;Step6, message broadcast, are broadcasted adding
All clients broadcasted.
In step (3), participate in auction and carry out authentication, as shown in figure 1, as follows including step:
A, bidder/auction teacher are initiated after Node connection requests by webpage, and auction spooler generates one
Token codes, return to webpage, web cache is in Hidden field, at the same time by the Token codes, and auction spooler is also
Token codes are sent to Node, the Token codes are saved in Redis memory databases by Node, and set the Token codes
Effective time ts, crossed after ts, Redis memory databases can be automatically deleted the Token codes;T value is 10;
The page where b, bidder/auction teacher connects Node using the Token codes in effective time ts, sets up long connect
Connect, Node searches the Token codes in Redis memory databases, and is matched, and the match is successful, then allow connection, otherwise,
It fails to match, then refusal connection.
The advantage designed herein is, prevents Token codes from losing, intercepted or arbitrarily generation Token codes carry out backstage company
The malicious attack connect.
Target group is auctioned, target group includes two or more targets, and setting target group has n target, to mark
Group in each target carry out serial number, setting numbering be followed successively by 1,2 ... i ... n;To participation auction, the target group is vied for purchase
People sets authority of vying for purchase, i.e., the quantity for the target vied for purchase is set to each bidder, when the target that the bidder vies for purchase reaches
During the quantity of its corresponding target vied for purchase, then the target group can not be vied for purchase again;Participate in setting each ginseng before auction
Quantity with the target vied for purchase of the bidder of the auction target group is 0, including:
By step B, number in sequence, auction is carried out to the target in target group successively, during each completion of an auction, sentenced
Whether the disconnected quantity vied for purchase to the target vied for purchase of the bidder of the target is more than the quantity of the target vied for purchase set, such as
Fruit is more than, and carries out auction to the target again, otherwise, the quantity vied for purchase to the target vied for purchase of the bidder of the target plus 1,
Judge whether the numbering of the target of next auction is more than n, more than then terminating, otherwise, continue to carry out the target of Next Serial Number competing
Clap.
The advantage designed herein is, in auction process, and a target auction is finished, and auction teacher, bidder participate in target
List refreshes automatically, the target that currently preside over or participate in, and is listed in the Section 1 of list.It is user-friendly.Along bat target group
When target is a lot, participation auction people is more, between target and auction people it is the relation of multi-to-multi, if vied for purchase to each target
Priority assignation, workload is very big, conclusion of the business target quantity can be limited along target group is clapped, facilitate the setting of auction company,
The extensive work time is saved;For bidder, it can participate in, along all target auctions in target group are clapped, improving target
Auction number is participated in, is conducive to improving the turnover and probability of transaction of target.
Point claps the intelligent auction system of net, before logging in, in addition to newly-increased target, and specific steps include:Auction company
Create target information, including target title, type, auction technique, target industry, target picture, target auction teacher, auction technique
Including advance price auction, price reduction auction, and the target information is stored in oracle database.
Target can select to preside over auction teacher of this target auction, and the auction Shi Caineng only specified presides over this target.Can
One can be selected in the picture of target association, the picture of upload for front cover to upload.
The step (4), the logic judgment before auction, sets auction authority, including commonly vie for purchase to each auction people
People, privilege people, for a target, system is provided as the function that target adds bidder's authority, only adds competing
The account of call option limit, can participate in the auction of this target.To giving priority to purchasing people, limit priority can also be set, and current system can
To set 1-9 grades of authorities, 9 grades are highest authority.Privilege is also known as preemption, refers to particular person according to legal provisions or conjunction
With agreement, when supplier betrays subject matter in the third party, the right bought in equal conditions prior to the third party enjoyed.It is excellent
First purchase right people is usually the creditor of target.It is as follows including step:
When being bidded between common bidder, bid before not terminating, i.e., in the time and in delay time of freely bidding
Interior, if present bidding is higher than target present price, (if bidding for the first time, then present bidding have to be larger than to be equal to and start auction
Valency), and the time of bidding was more than bid time last time, then it is assumed that bid successfully, target present price is updated to present bidding, no
Then, bid failure;
When being bidded between privilege people and common bidder, if the artificial privilege of present bidding
People, and the artificial common bidder of current highest quotation, present bidding people refer to that submission of quotation is handled by system, not bid also
Before success;Current highest quotation people refers to the current price bid winner of target price, when privilege people's bid price is big
When equal to target present price, bid successfully, otherwise, bid failure;
When being bidded between privilege people and privilege people, if present bidding people and current highest report
Valency is per capita privilege people, and present bidding people authority is higher than current highest quotation people, and bid price is more than or equal to current
Price, then present bidding people bid successfully, otherwise, bid failure.