// // IAPDelegate.cpp // TileManor // // Created by 徐炼新 on 2024/9/30. // #include "IAPDelegate.hpp" #include "IAPUserData.hpp" IAPDelegate* IAPDelegate::create(){ IAPDelegate* delegate = new IAPDelegate(); return delegate; } void IAPDelegate::onUserBuySuccess(std::string commodityID){ // 添加购买信息 iap::IAPUserData::getInstance()->addBuyInfo(commodityID); }