当前位置:网站首页>Development of digital Tibetan product system NFT digital Tibetan product system exception handling source code sharing

Development of digital Tibetan product system NFT digital Tibetan product system exception handling source code sharing

2022-06-24 14:18:00 weixin_ two billion forty-seven million six hundred and seventy

If someone with 6900 An electronic pattern consisting of a stack of pixels is sold for $million , Don't you think this is an illusion ? If you don't understand what you're saying , Today we are going to help you popularize the popular NFT. Full name Non-fungible token, Chinese name is non-fungible token, Also called irreplaceable . token .

 
  One . Selling pixel paintings is no longer a myth

  Digital artist Mike · Winckelmann (Mike Winkelman) A pure digital art work “ Every day : front 5,000 God ” With 69,346,250 Sold in dollars , It has recently become a hot topic in the art world .

  Along with pure digital art works, there are also “NFT”, That is, the irreplaceable token , They are our main characters today . As a new digital art model ,NFT It provides a way for creators to get appropriate compensation . Interestingly , Many large purchases NFT Are pixel art created by algorithm .

Two 、 Collections in blockchain NFT

So what is NFT
NFT It is a legend about how artists get rich overnight by selling electronic artworks . It revolves around blockchain , Closely linked to art and collectibles
For art and collectibles , Scarcity has always been an important factor in determining the value of collections . A heterogeneous token is a cryptocurrency , But the assets it represents are the only . They can be digital assets , It can also be a symbolic form of physical assets . because NFT Is irreplaceable , Therefore, they can be used as proof of authenticity and ownership in the digital field

Compared with non replaceability , Interchangeability means that the units of an asset can be replaced with each other , And there's no way to distinguish . It's like legal tender , a sheet 10 Dollar bills can be compared with any other 10 Change into US dollar bills . Currency interchangeability is a desirable attribute . Because of this property , It can be freely exchanged , We don't have to worry about who is this 10 The first owner of a dollar bill
However , This feature is not a useful attribute for collectibles . for example , If you give a friend a true copy of Leonardo da Vinci , You certainly don't want your friend to exchange this true copy with you . therefore ,NFT It is a form of electronic ownership , This means that you are the owner of the art


3、 ... and .Beeple, An important figure in pixel art
Next , Let's talk about Beeple, Formerly known as Mike Winckelmann , He plays a decisive role in the field of pixel art . He is NFT Cutting edge innovative digital artists . His masterpiece is what we mentioned at the beginning “ Every day : front 5000 God ”, the 39 A year old man was born in Wisconsin . He is the father of two children , His wife is a teacher .BiP Graduated from the computer department of Purdue University . He has no artistic training . In my career , I have helped enterprises design web pages in a short time . I heard that an English artist is famous for drawing every day . since 2007 year 5 Since the month , He has been devoted to collecting computer animation 《 every single day 》.2018 year , It began to attract Internet attention , Except every day : front 5000 Days by Christie's auction .

《 crossroads 》

2020 year 10 month , The collector Rodriguez Freire used 66,666 element 6 horn 6 I bought it for dollars Beeple The works of 《 crossroads 》. This is just 10 Second video and audio works in 2021 year 2 At the end of the month 660 Million dollars for resale , The value has doubled in just a few months 100 times . Bipu is widely respected by the new generation . He was in Instagram There are 180 Thousands of fans . His works have been exhibited in two Super Bowl midfield shows and Justin Bieber's concerts .

Four 、 A cloud sucking cat that sells its master at sky high prices

Electronic pets are familiar to everyone , The cloud sucking cat has also become the spiritual sustenance of many young people , But bidding up to hundreds of thousands of dollars to buy an electronic pet cat may be an amazing thing for many people .

This amazing website is called CryptoKitties.co, It has just been launched and has attracted a lot of attention . Users can buy virtual cats on this website , And trade with other players through the platform . Each virtual cat is unique , Completely personal , They cannot be copied 、 Cannot delete , Nor can it be stolen . The encryption cat uses NFT technology , They give each cat a special tag number , Make it a unique cat .

You have an encrypted cat , You have digital ownership of it , Players can also use their own cats to mate with other cats , Eventually a brand new cat will be born . According to the developers , Every cat has 256 Genome of loci , Some genes are dominant , Some are hidden . Giving birth to a new kitten will randomly inherit the genes of both parents . The rarer your cat is , Can be sold on Ethereum at a higher price .

NFT Digital Tibetan product system development part of the core code sharing :

<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2019 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <[email protected]>
// +----------------------------------------------------------------------

namespace app;

use think\db\exception\DataNotFoundException;
use think\db\exception\ModelNotFoundException;
use think\exception\Handle;
use think\exception\HttpException;
use think\exception\HttpResponseException;
use think\exception\ValidateException;
use think\Response;
use Throwable;

/**
 *  Apply exception handling classes 
 */
class ExceptionHandle extends Handle
{
    /**
     *  There is no need to record information ( journal ) List of exception classes for 
     * @var array
     */
    protected $ignoreReport = [
        HttpException::class,
        HttpResponseException::class,
        ModelNotFoundException::class,
        DataNotFoundException::class,
        ValidateException::class,
    ];

    /**
     *  Record abnormal information ( Including logging or other means of recording )
     *
     * @access public
     * @param  Throwable $exception
     * @return void
     */
    public function report(Throwable $exception): void
    {
        //  Use the built-in method to log exceptions 
        parent::report($exception);
    }

    /**
     * Render an exception into an HTTP response.
     *
     * @access public
     * @param \think\Request   $request
     * @param Throwable $e
     * @return Response
     */
    public function render($request, Throwable $e): Response
    {
        //  Add custom exception handling mechanism 

        //  Other errors are handled by the system 
        return parent::render($request, $e);
    }
}

原网站

版权声明
本文为[weixin_ two billion forty-seven million six hundred and seventy]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206241201446753.html