IAPDelegate.cpp 397 B

1234567891011121314151617181920
  1. //
  2. // IAPDelegate.cpp
  3. // TileManor
  4. //
  5. // Created by 徐炼新 on 2024/9/30.
  6. //
  7. #include "IAPDelegate.hpp"
  8. #include "IAPUserData.hpp"
  9. IAPDelegate* IAPDelegate::create(){
  10. IAPDelegate* delegate = new IAPDelegate();
  11. return delegate;
  12. }
  13. void IAPDelegate::onUserBuySuccess(std::string commodityID){
  14. // 添加购买信息
  15. iap::IAPUserData::getInstance()->addBuyInfo(commodityID);
  16. }