完成购买功能

Signed-off-by: Meathill <meathill@gmail.com>