A kind of point claps the intelligent auction system of net
Technical field
The present invention relates to the intelligent auction systems that a kind of point claps net, belong to technical field of electronic commerce.
Background technique
Traditional auction has following limitation and pain spot: (1) spending greatly, auction company, which holds traditional auction, can will rent field
Ground needs convention expense, security food and drink expense, communication fee etc., costly.(2) low efficiency, traditional auction can an auctions
The scene that teacher can only be absorbed in an auction is presided over, and working efficiency is low.(3) bidder vies for purchase costly, by time, region etc.
It influences, bidder participates in traditional auction meeting, to arrange time, travel, lodging etc. properly, and expense will increase bidder and vie for purchase cost.
(4) malice competition, malice string mark, traditional live auction meeting, bidder can see each other, be easy to ask in the presence of malice competition, string mark
Topic.The limitation and pain spot of above some traditional auctions may all bring interests to lose to trustee, bidder, auction company.
In recent years, network auction is a kind of auction mode risen under the premise of internet speed raising.Network auction is deposited
The advantages that not limited by place, confidentiality is high, remote control may be implemented, is convenient and efficient, by bidder, auction side etc.
Like.
In existing certain network auctions, user click to have permission participate in auction target, the page directly establishes and
The Http long connection of Node information broadcast service device.There is the certain hidden danger of safety in this scheme, attacker from web page source code or
After carrying out packet capturing analysis, port, address and the communication packet format of Node service are obtained, it just directly can be with Node server
Connection is established, and forges association requests and is sent to server, what interference or destruction were bidded is normally carried out.
When target is more, and there are many bidder for participating in auction, are 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, reduce
Probability of transaction.
In traditional 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 there are two defects for this scheme: 1, page periodic refreshing, such as often
Refresh within two seconds once, page info obtains not in time.The corresponding stronger trade at competitive price system of real-time, user experience is very
Difference.2, User Page periodic refreshing, each user's request require reading database, when concurrent user is more, can bring to system
Very big pressure.
Summary of the invention
In view of the deficiencies of the prior art, the present invention provides the intelligent auction systems that a kind of point claps net;
Term is explained:
Target_id, target ID;
The technical solution of the present invention is as follows:
A kind of point claps the intelligent auction system of net, comprises the following steps that
A, log in: bidder/auction Shi Denglu comprises the following steps that
(1) judge whether bidder/auction teacher registered, enter step (2) if being, otherwise, bidder advances certainly
Row registration, auction teacher carry out account creation by auction company administrator;
(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, which receives the auction/auction, to be asked
After asking, one Token code of bidder/auction teacher is returned,
(3) bidder/auction teacher connects Node with the Token code, long connection is established, according in auction/auction request
The corresponding room of the target_id, i.e. bidder/auction Shi Yixiang vies for purchase/is added where the target auctioned in target_id
room;Point is clapped in net, and each target corresponds to a room, participates in the bidder of this target auction, this is added in auction teacher
Room in room, Node is equivalent to a chatroom, and bidder, the message of auction teacher's operation are wide in real time all in this room
It broadcasts, message, which will not be broadcast to, gives other unrelated users, thus, 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 access oracle database after auction backstage receives the bidding request, carry out logic judgment,
If bidder offers successfully, bidder's bid successful information is returned, (5) are entered step, otherwise, then returns to bidder's bid
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 are bid;
(6) Node finds corresponding room according to the target_id for target of vying for purchase, and the broadcast of real-time perfoming message pushes, extensively
Message is broadcast to issue with other all connectionists other than auctioning backstage in this room, including other bidders, auction teacher,
Page real-time display latest news where other all connectionists;
(7) it after returning to bidder's bid successful information, automatically prolongs the time of vying for purchase, and start the computation delay time, reaches
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.
Preferred according to the present invention, the delay time is 5 minutes.
Within then countdown enters 5 minutes, as long as there is bidder to offer successfully, auction automatic time delay 5 minutes.
It is preferred according to the present invention, it participates in auction and carries out authentication, comprise the following steps that
A, after bidder/auction teacher initiates Node connection request by webpage, auction backstage generates a token code, will
The Token code returns to webpage, and web cache is in Hidden field, and at the same time, auction backstage also sends token code to
The Token code is saved in Redis memory database by Node, Node, and the effective time ts of the Token code, mistake is arranged
After ts, Redis memory database can be automatically deleted the Token code;The value range of t is 5-15;
B, the page where bidder/auction teacher connects Node using the Token code in effective time ts, establishes long connect
It connecing, Node searches the Token code in Redis memory database, and is matched, successful match, then allow to connect, otherwise,
It fails to match, then refuses to connect.
The advantage designed herein is, prevents Token code from losing, intercepted or arbitrarily generation Token code progress backstage connects
The malicious attack connect.
It is preferred according to the present invention, t=10.
It is preferred according to the present invention, target group is auctioned, the target group includes two or more target, setting
Target group has n target, carries out serial number to each target in target group, setting number is followed successively by 1,2 ... i ... n;To ginseng
Bidder's setting with the auction target group is vied for purchase permission, i.e., the quantity for the target vied for purchase to each bidder setting, when this
When the target that bidder vies for purchase reaches the quantity of its corresponding target vied for purchase, then it cannot vie for purchase again to the target group;
The quantity that the target of each bidder for participating in the auction target group vied for purchase is arranged before participation auction is 0, comprising:
It by step B, numbers in sequence, auction successively is carried out to the target in target group, when each completion of an auction, sentence
It is disconnected vie for purchase to the target bidder the target vied for purchase quantity whether be greater than setting the target vied for purchase quantity, such as
Fruit is greater than, and carries out auction to the target again, and otherwise, the quantity of the target vied for purchase of bidder vied for purchase to the target adds 1,
Judge whether the number of the target of next auction is greater than n, greater than then terminating, otherwise, continues to carry out the target of Next Serial Number competing
It claps.
The advantage designed herein is, in auction process, a target auction is finished, and auction teacher, bidder participate in target
List refreshes automatically, and the target that currently preside over or participate in is listed in the first item of list.It is user-friendly.Along bat target group
When there are many target, participation auction people is more, between target and auction people it is the relationship of multi-to-multi, if vied for purchase to each target
Priority assignation, workload is very big, can limit conclusion of the business target quantity along target group is clapped, facilitate the setting of auction company,
The extensive work time is saved;For bidder, it can participate in improving target along all target auctions in target group are clapped
Auction number is participated in, the turnover and probability of transaction that improve target are conducive to.
Preferred according to the present invention, the point claps the intelligent auction system of net, further includes newly-increased target before logging in,
Specific steps include: auction company creation target information, including target title, type, auction technique, target industry, target figure
Piece, target auction teacher, and auction technique includes advance price auction, price reduction auction, and by the target information preservation in oracle database
In.
Target can choose auction teacher for presiding over the auction of this target, and only specified auction Shi Caineng presides over this target.It can
To upload the associated picture of target, one can choose in the picture of upload as cover.
Preferred according to the present invention, the step (4), the logic judgment before auction, sets auction to each auction people
Permission, including common bidder, privilege people, for a target, system is provided as target addition bidder's permission
Function only added the account for permission of vying for purchase, and can participate in the auction of this target.To people is given priority to purchasing, can also be arranged excellent
First permission, 1-9 grades of permissions can be set in system at present, and 9 grades are highest authority.Privilege is also known as preemption, refers to specific
People betrays subject matter when the third party according to legal provisions or contract engagement, in supplier, enjoy equal conditions prior to
The right of third party's purchase.Privilege people is usually the creditor of target.It comprises the following steps that
It when bidding between common bidder, bids before being not finished, i.e., in the time and in delay time of freely bidding
It is interior, if present bidding is higher than target present price, (bid if it is first time, then present bidding has to be larger than to be equal to and start auction
Valence), and the time of bidding bid the time greater than last time, then it is assumed that it bids successfully, target present price is updated to present bidding, no
Then, bid failure;
When bidding between privilege people and common bidder, if the artificial privilege of present bidding
People, and artificially common bidder, present bidding people refer to that submission of quotation is handled by system, do not bid also current highest quotation
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 being equal to target present price, bid successfully, otherwise, bid failure;
When bidding between privilege people and privilege people, if present bidding people and current highest report
Valence is privilege people per capita, and present bidding human rights limit is higher than current highest quotation people, and bid price is more than or equal to current
Price, then present bidding people bids successfully, otherwise, bid failure.
The invention has the benefit that
1, the present invention carries out real-time messages broadcast using clog-free Node server, significantly reduces service server
Pressure, information arrival rate is fast, improves system availability and user experience.
2, user of the present invention must be with user name, and password login is into system, after logining successfully, if it is competing to participate in some target
It claps, after initiating request, system background distributes unique token information, and within this token information 10 seconds effectively, user
When establishing long connection with Node server application, this subsidiary token.It is invalid by more than 10 seconds this token, prevents token quilt
It intercepts or malice cracks.
3, point claps net intelligent auction system Internet-based and provides the network auction trading service platform of O2O, user
As long as possessing the PC that one can surf the Internet participates in auction, auction can be participated in even with smart phone.Point claps net base
In internet+intelligent auction system provide the network auction trading service platform of O2O.Whoso, no matter where, only
Auction can be participated in by wanting to surf the Internet, or even can be participated in mobile phone.Also save time, traffic, lodging etc. it is many at
This.Bidder without geographical restrictions, does not use scene, ensure that the fairness of user's bid, privacy, bid process discloses,
It is fair, just, avoid the problems such as malice string is marked.
4, aiming at the problem that traditional auction low efficiency, point of use claps the intelligence service of bidding that intelligent auction system provides of netting,
Auction teacher can preside over multiple auctions simultaneously, and auction teacher need to only click mouse, and bid process is supervised in starting auction, whole
A auction's bid process is carried out automatically by meeting Auction Law logic, until End of Auction.End of Auction, system can automatic prompts
Target user in current.
5, in bidder's bid process, each bidder distributes different number plates, and bidder is using different number plates as mark
Know and participate in bidding, whom number plate not external disclosure, only auction Shi Zhidao number plate corresponding bidder can not know between bidder
Auction is participated in, also just can not maliciously be obstructed, malice string mark.
6, it for auction company, is clapped using and nets intelligent auction system, the cost for meeting of auctioning substantially reduces, target
Probability of transaction, premium rate increase, and are conducive to the development of corporate business.
7, it for trustee, is clapped using and nets intelligent auction system, prison bat can be carried out to auction in real time;Target strikes a bargain
Rate, premium rate increase, and the interests of trustee are improved.
Detailed description of the invention
Fig. 1 is auction Authentication mechanism schematic diagram;
Fig. 2 is the intelligent auction system flow diagram that present invention point claps net;
Specific embodiment
The present invention is further qualified with embodiment with reference to the accompanying drawings of the specification, but not limited to this.
Embodiment
A kind of point claps the intelligent auction system of net, comprises the following steps that
A, log in: bidder/auction Shi Denglu comprises the following steps that
(1) judge whether bidder/auction teacher registered, enter step (2) if being, otherwise, bidder advances certainly
Row registration, auction teacher carry out account creation by auction company administrator;
(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 code, long connection is established, according in auction/auction request
The corresponding room of the target_id, i.e. bidder/auction Shi Yixiang vies for purchase/is added where the target auctioned in target_id
room;Point is clapped in net, and each target corresponds to a room, participates in the bidder of this target auction, this is added in auction teacher
Room in room, Node is equivalent to a chatroom, and bidder, the message of auction teacher's operation are wide in real time all in this room
It broadcasts, message, which will not be broadcast to, gives other unrelated users, thus, 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 access oracle database after auction spooler receives the bidding request, carry out
Logic judgment returns to bidder's bid successful information, enters step (5), otherwise, then return if bidder offers successfully
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 the broadcast of real-time perfoming message pushes, extensively
It broadcasts message and issues and vie for purchase with other all connectionists other than auctioning spooler in this room, including others
People, auction teacher, page real-time display latest news where other all connectionists;
(7) it after returning to bidder's bid successful information, automatically prolongs the time of vying for purchase, and start the computation delay time, reaches
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 flow diagram of net as shown in Fig. 2, in Fig. 2, and Step1, user participate in
Auction;Step2, user Token code is returned;Step3, Node is connected with Token code, establishes long connection, and it is corresponding that target is added
Room;Step4, user initiate auction bid event;Step5, message broadcast notice;Step6, message broadcast, are broadcasted being added
All clients broadcasted.
In step (3), participates in auction and carry out authentication, as shown in Figure 1, comprising the following steps that
A, after bidder/auction teacher initiates Node connection request by webpage, auction spooler generates one
The Token code is returned to webpage by token code, and web cache is in Hidden field, and at the same time, auction spooler is also
Node is sent by token code, which is saved in Redis memory database by Node, and the Token code is arranged
Effective time ts, after having crossed ts, Redis memory database can be automatically deleted the Token code;The value of t is 10;
B, the page where bidder/auction teacher connects Node using the Token code in effective time ts, establishes long connect
It connecing, Node searches the Token code in Redis memory database, and is matched, successful match, then allow to connect, otherwise,
It fails to match, then refuses to connect.
The advantage designed herein is, prevents Token code from losing, intercepted or arbitrarily generation Token code progress backstage connects
The malicious attack connect.
Target group is auctioned, target group includes two or more target, and setting target group has n target, to mark
Group in each target carry out serial number, setting number be followed successively by 1,2 ... i ... n;It vies for purchase to the auction target group is participated in
Permission of vying for purchase, i.e., the quantity for the target vied for purchase to each bidder setting, when the target that the bidder vies for purchase reaches is arranged in people
When the quantity of its corresponding target vied for purchase, then it cannot vie for purchase again to the target group;Each ginseng is set before participating in auction
Quantity with the target of the bidder of the auction target group vied for purchase is 0, comprising:
It by step B, numbers in sequence, auction successively is carried out to the target in target group, when each completion of an auction, sentence
It is disconnected vie for purchase to the target bidder the target vied for purchase quantity whether be greater than setting the target vied for purchase quantity, such as
Fruit is greater than, and carries out auction to the target again, and otherwise, the quantity of the target vied for purchase of bidder vied for purchase to the target adds 1,
Judge whether the number of the target of next auction is greater than n, greater than then terminating, otherwise, continues to carry out the target of Next Serial Number competing
It claps.
The advantage designed herein is, in auction process, a target auction is finished, and auction teacher, bidder participate in target
List refreshes automatically, and the target that currently preside over or participate in is listed in the first item of list.It is user-friendly.Along bat target group
When there are many target, participation auction people is more, between target and auction people it is the relationship of multi-to-multi, if vied for purchase to each target
Priority assignation, workload is very big, can limit conclusion of the business target quantity along target group is clapped, facilitate the setting of auction company,
The extensive work time is saved;For bidder, it can participate in improving target along all target auctions in target group are clapped
Auction number is participated in, the turnover and probability of transaction that improve target are conducive to.
Point claps the intelligent auction system of net, further includes newly-increased target, specific steps include: auction company before logging in
Target information is created, including target title, type, auction technique, target industry, target picture, target auction teacher, auction technique
Including advance price auction, price reduction auction, and by the target information preservation in oracle database.
Target can choose auction teacher for presiding over the auction of this target, and only specified auction Shi Caineng presides over this target.It can
To upload the associated picture of target, one can choose in the picture of upload as cover.
The step (4), the logic judgment before auction, set auction permission to each auction people, including commonly vie for purchase
People, privilege people, for a target, system is provided as the function of target addition bidder's permission, only adds competing
The account of call option limit, can participate in the auction of this target.To people is given priority to purchasing, limit priority can also be set, and system can at present
1-9 grades of permissions are arranged, 9 grades are highest authority.Privilege is also known as preemption, refers to particular person according to legal provisions or conjunction
With agreement, subject matter is betrayed when the third party in supplier, 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 comprises the following steps that
It when bidding between common bidder, bids before being not finished, i.e., in the time and in delay time of freely bidding
It is interior, if present bidding is higher than target present price, (bid if it is first time, then present bidding has to be larger than to be equal to and start auction
Valence), and the time of bidding bid the time greater than last time, then it is assumed that it bids successfully, target present price is updated to present bidding, no
Then, bid failure;
When bidding between privilege people and common bidder, if the artificial privilege of present bidding
People, and artificially common bidder, present bidding people refer to that submission of quotation is handled by system, do not bid also current highest quotation
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 being equal to target present price, bid successfully, otherwise, bid failure;
When bidding between privilege people and privilege people, if present bidding people and current highest report
Valence is privilege people per capita, and present bidding human rights limit is higher than current highest quotation people, and bid price is more than or equal to current
Price, then present bidding people bids successfully, otherwise, bid failure.