// // KBAPI.h // 统一管理所有接口路径的宏,避免在代码中散落硬编码字符串。 // 注意:这里的路径为相对 KB_BASE_URL 的“相对路径”,可带或不带开头的斜杠。 // #ifndef KBAPI_h #define KBAPI_h //#ifndef SUCCESS_CODE //#define SUCCESS_CODE 200 //#endif //#ifndef ERROR_CODE //#define ERROR_CODE 500 //#endif // 兼容旧命名(如有使用 API_APPLE_LOGIN 的位置,映射到统一命名) #define API_APPLE_LOGIN @"/user/appleLogin" // Apple 登录 #define API_LOGOUT @"/user/logout" // 退出登录 #define KB_API_CHARACTER_LIST @"/character/list" // 排行榜角色列表 // 应用配置 #ifndef KB_API_APP_CONFIG #define KB_API_APP_CONFIG @"app/config" // 获取 App 配置 #endif #ifndef KB_API_IAP_VERIFY #define KB_API_IAP_VERIFY @"/payment/apple/verify" // Apple IAP 验签(示例路径,请按后端实际修改) #endif #endif /* KBAPI_h */