local function checkCCStore()
if not cc.Store then
– print(“framework.cc.sdk.Store - cc.Store not exists.”)
print(“framework.cc.sdk.Store - cc.Store not exists.”)
return false
end
return true
end
大概原因就是CCStore没用绑定成功,我再AppDelegate.cpp里边也注册了
//绑定IOS官网支付
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
luaopen_cocos2dx_extra_ios_iap_luabinding(L);
luaopen_cocos2dx_extra_luabinding(L);
#endif
但是就是一直输出framework.cc.sdk.Store - cc.Store not exists,救命啊