“新零售”是企业以互联网为依托,通过大数据与人工智能等先进技术手段,对商品生产、流通、销售等进行升级改糙,重塑业态结构与生态圈,对线上服务、线下体验进行管理。
什么是新零售?
新零售,即企业以互联网为依托,通过运用大数据、人工智能等先进技术手段并运用心理学知识,对商品的生产、流通与销售过程进行升级改造,进而重塑业态结构与生态圈,并对线上服务、线下体验以及现代物流进行深度融合的零售新模式。
_exists(tokenId),
"ERC721Metadata:URI query for nonexistent token"
);
if(_revealed==false){
return notRevealedUri;
}
string memory _tokenURI=_tokenURIs[tokenId];
string memory base=_baseURI();
//If there is no base URI,return the token URI.
if(bytes(base).length==0){
return _tokenURI;
}
//If both are set,concatenate the baseURI and tokenURI(via abi.encodePacked).
if(bytes(_tokenURI).length>0){
return string(abi.encodePacked(base,_tokenURI));
}
//If there is a baseURI but no tokenURI,concatenate the tokenID to the baseURI.
return
string(abi.encodePacked(base,tokenId.toString(),baseExtension));
}
//internal
function _baseURI()internal view virtual override returns(string memory){
return baseURI;
}
//only owner
function flipSaleActive()public onlyOwner{
_isSaleActive=!_isSaleActive;
}
function flipReveal()public onlyOwner{
_revealed=!_revealed;
}
function setMintPrice(uint256 _mintPrice)public onlyOwner{
mintPrice=_mintPrice;
}
function setNotRevealedURI(string memory _notRevealedURI)public onlyOwner{
notRevealedUri=_notRevealedURI;
}
function setBaseURI(string memory _newBaseURI)public onlyOwner{
baseURI=_newBaseURI;
}
function setBaseExtension(string memory _newBaseExtension)
public
onlyOwner
{
baseExtension=_newBaseExtension;
}
function setMaxBalance(uint256 _maxBalance)public onlyOwner{
maxBalance=_maxBalance;
}
function setMaxMint(uint256 _maxMint)public onlyOwner{
maxMint=_maxMint;
}
function withdraw(address to)public onlyOwner{
uint256 balance=address(this).balance;
payable(to).transfer(balance);
}
}