12345678910111213141516171819202122 |
- //
- // IAPDelegateImpl.cpp
- // demo
- //
- // Created by Red_mini on 2024/10/30.
- //
- #include "IAPDelegateImpl.hpp"
- IAPDelegateImpl* IAPDelegateImpl::createWith(){
- IAPDelegateImpl* ret = new IAPDelegateImpl();
-
- return ret;
- }
- // 用户成功购买通知
- void IAPDelegateImpl::onUserBuySuccess(std::map<std::string, string> buyInfos){
- for(const auto& buyInfo : buyInfos){
- printf("道具名称: %s , 道具数量: %d\n", buyInfo.first.c_str(), stoi(buyInfo.second));
- }
- }
|