制作我们自己的Ebay(拍卖系统)(2)

2016-01-29 17:21 2 1 收藏

制作我们自己的Ebay(拍卖系统)(2),制作我们自己的Ebay(拍卖系统)(2)

【 tulaoshi.com - ASP 】

  Chris Payne

September 11, 2000

Before we go jumping into code and databases, let's take a moment and examine the needs and strategies, as
well as the different types of auctions.

First of all, there are many different types of auctions (which we'll discuss in the next section), so
you'll have to decide what your needs are, and adjust accordingly. I'll outline the needs for our auction
here, and we'll reference these as we progress. First, let's get some definitions out of the way:


Buyer/Bidder - The person who places a bid, and wants to buy an item.
Item/Lot - One listing in the auction (can be several actual items, but will be represented by one
listing).
Proxy bidding - A buyer places a maximum bid to never be exceeded. The actual bid then is simply the last
highest winning bid plus the minimum increment. The actual bid will be increased automatically when outbid
until the max is reached.
Seller - The person who listed the item to be sold.
Winning bid - The price a buyer pays to win an item.
And now our assumptions:

"Second Price auction:" Bidders may place proxy bids. The winners will then end up paying the lowest
winning bid for the item(s).
We will only allow single lots to be sold. This means we will not allow groups of lots to be sold together
(you won't be able to sell items A and B together). However, you can sell a bunch of items as one lot
(i.e. 100 pencils in lot A).
Once an auction is over, it is over. In some auctions, if a bid is placed within a certain amount of time
(i.e. 5 seconds) before the end of an auction, the auction is extended for some time. We will not do that
here.
Number of items. In the case that two people bid the same thing, the person who bid for more items will
win, regardless of who bid first. If both buyers bid for the same number of items, the earliest bid will
win.
Proxy bidding rounds. One round will be defined as when the auction engine cycles through all users and
adjusts bids accordingly, based on the current high bid and the buyer's maximum bid. A round will commence
once a buyer places a bid on a lot, and will proceed in the order the bids were placed. If at the end of
the round, a resolution is not achieved, we will start over from the beginning.
There are also two other types of auctions that we will not use here, but may be good for reference.


Winning Bid Auction - The winning buyer gets the requested lots for the price they bid. If there are
multiple winners, everyone gets the price they bid.
Clear Price Auction - The winning buyers get the requested lots for the lowest winning bid.
Now that we've outlined our needs, let's take a look at the database structure behind the auction.



 

来源:https://www.tulaoshi.com/n/20160129/1501071.html

延伸阅读
标签: 脱毛
问答 图钉提问: 夏天最好的脱毛方法是什么??哪位达人帮忙解决一下 图老师解答: 病情分析:       您好,最好是采用激光脱毛,激光脱毛方式具有一定的高科技含量和强大的物理学基础,主要原理是应用了一个物理学的概念,即某一颜色的物质,一定对某一特殊波长的光吸收率最强。     &nbs...
标签: windows系统
Win8怎样自己制作系统主题?   Windows 8主题是一组由图片和声音定制而成的桌面元素集合,可以给人们以视听享受。我们可以通过自定义主题的方式来实现你的要求。 右击桌面空白处,选择快捷菜单中的个(图老师整理)性化命令。 在弹出的个性化窗口中,任意选择一组主题。选择之后,下面的桌面背景相应就变成了该主题所使用...
婴儿期心理发育 1、2个月婴儿心理发育     这个时期的孩子与外界接触很少,是以自我为中心地生活着,只关心自己的满足。当他们的生活需求得到满足时,就非常平静,而当饥饿、消化不良或疲劳的刺激时,就会不停地啼哭。孩子的注意力有了一定的发展,发亮的或彩色鲜艳的物体出现在视野内时,他会发出愉...
标签: 美容 美容方法
你是否有过这些苦恼,是否遭遇过这些尴尬,是否无奈?是否无助? 别急,图老师图老师小编虽然不能带你拯救地球,但可以教你如何去拯救自己的肌肤。 在一次匆忙的上眉毛油之后,你突然发现眼睫毛卷在一起了 解决:在化妆清洁器上滴一滴挥发清洁剂,在快干的时候,将睫毛上的粘质擦拭掉(在下睫毛下面放置折叠的纸接掉下的残渣)...
夏天腿肿多喝红豆汤 红豆又称赤豆、赤小豆等,它的药用保健作用自古以来就为医家广泛应用。李时珍称其为“心之谷”;《神农本草论》中认为红豆是食物药;《神农本草经》上则介绍,红豆具有消肿、轻身的功效。 湖北省中医院消化内科叶松教授介绍,红豆性平、味甘酸,有健脾利水、清热除湿、消肿解毒的功效。由于红豆性善下行 ,通利水道,古...

经验教程

489

收藏

88
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部