|
@@ -12,6 +12,8 @@
|
|
|
#include "IAPCtlShop.hpp"
|
|
|
#include "IAPDefine.hpp"
|
|
|
|
|
|
+#include "IAPUserData.hpp"
|
|
|
+
|
|
|
USING_NS_CC;
|
|
|
|
|
|
Scene* TestScene::createScene(){
|
|
@@ -84,7 +86,8 @@ void TestScene::onNotifyDevelopment(const redutils::ReboltNotifyData& data){
|
|
|
_iapShop->showInNode(this, shopRequirement);
|
|
|
}else if(data.notify == "点击重置"){
|
|
|
_iapShop->setDeviceLevel(1);
|
|
|
- log("重置为低等级设备");
|
|
|
+ iap::IAPUserData::getInstance()->clearBuyInfo();
|
|
|
+ log("重置为低等级设备,且清除用户购买信息");
|
|
|
}
|
|
|
}
|
|
|
|