diff --git a/@types/jsb.d.ts b/@types/jsb.d.ts index 1beb6314ad5..79d5c167f05 100644 --- a/@types/jsb.d.ts +++ b/@types/jsb.d.ts @@ -538,7 +538,7 @@ declare namespace jsb { * @en To string * @zh 转换成字符串 */ - toStr(): string; + toString(): string; /** * @en The offer details of an one-time purchase product. * @zh 代表一次性购买产品的报价详情。 diff --git a/native/vendor/google/billing/JniBilling.cpp b/native/vendor/google/billing/JniBilling.cpp index e8906c5f372..95441860f51 100644 --- a/native/vendor/google/billing/JniBilling.cpp +++ b/native/vendor/google/billing/JniBilling.cpp @@ -198,7 +198,6 @@ cc::ProductDetails* JniBilling::toProductDetail(JNIEnv* env, jobject productObj) jclass listClazz = env->GetObjectClass(listObj); jmethodID listGetMethod = env->GetMethodID(listClazz, "get", "(I)Ljava/lang/Object;"); int size = callIntMethod(env, listClazz, listObj, "size"); - std::vector details; for (int i = 0; i < size; ++i) { jobject subscriptionOfferDetailsObj = env->CallObjectMethod(listObj, listGetMethod, i); cc::ProductDetails::SubscriptionOfferDetails* detail = toSubscriptionOfferDetails(env, subscriptionOfferDetailsObj); diff --git a/vendor/google/billing/billing.ts b/vendor/google/billing/billing.ts index a875fe1054d..76dd8354b3f 100644 --- a/vendor/google/billing/billing.ts +++ b/vendor/google/billing/billing.ts @@ -95,6 +95,7 @@ export declare namespace google { export namespace BillingClient { export type Builder = jsb.BillingClientBuilder; + export type ConnectionState = jsb.ConnectionState; } export type BillingClient = jsb.BillingClient; export namespace BillingFlowParams {