{"id":10006436,"date":"2022-09-08T08:13:51","date_gmt":"2022-09-08T00:13:51","guid":{"rendered":"https:\/\/ityet.com\/?p=10006436"},"modified":"2022-09-08T08:13:51","modified_gmt":"2022-09-08T00:13:51","slug":"%e3%80%90faq%e3%80%91%e6%8e%a5%e5%85%a5%e5%8d%8e%e4%b8%ba%e5%ba%94%e7%94%a8%e5%86%85%e6%94%af%e4%bb%98%e6%9c%8d%e5%8a%a1%e5%b8%b8%e8%a7%81%e9%97%ae%e9%a2%98%e8%a7%a3%e7%ad%94","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10006436","title":{"rendered":"\u3010FAQ\u3011\u63a5\u5165\u534e\u4e3a\u5e94\u7528\u5185\u652f\u4ed8\u670d\u52a1\u5e38\u89c1\u95ee\u9898\u89e3\u7b54"},"content":{"rendered":"<p>HMS Core<a href=\"https:\/\/link.segmentfault.com\/?enc=PIKUcvqJt2Orf0ha72twmg%3D%3D.99CJrn0Q5hOq9SK7S%2FSGS%2FR9cWUmYsneM0A8cmdG9Nitec4%2F6WkwrLBTfqUl2mUnDD1zWBU37EotVyuab9R%2F1%2BmTWzoqJmOVp%2BMyQeT9e9A%3D\" rel=\"nofollow\">\u5e94\u7528\u5185\u652f\u4ed8\u670d\u52a1<\/a>\uff08In-App Purchases\uff0cIAP\uff09\u4e3a\u5e94\u7528\u63d0\u4f9b\u4fbf\u6377\u7684\u5e94\u7528\u5185\u652f\u4ed8\u4f53\u9a8c\u548c\u7b80\u4fbf\u7684\u63a5\u5165\u6d41\u7a0b\u3002\u5f00\u53d1\u8005\u7684\u5e94\u7528\u96c6\u6210IAP SDK\u540e\uff0c\u8c03\u7528IAP SDK\u63a5\u53e3\uff0c\u542f\u52a8IAP\u6536\u94f6\u53f0\uff0c\u5373\u53ef\u5b9e\u73b0\u5e94\u7528\u5185\u652f\u4ed8\u3002<\/p>\n<p>\u901a\u8fc7<a href=\"https:\/\/link.segmentfault.com\/?enc=TcTZhCn0CjFHX%2FwAe0I6mg%3D%3D.poBxCCeI5buwsZyL9D7tgB8KmxuW2%2B0V0UH5PKEyKxKUN8SXEAUjuf3NF4nsIZaH8sGOBgmHl73up3CKzxRPfXOLqx5XTY8%2FYRSR1R60fyE%3D\" rel=\"nofollow\">\u5e94\u7528\u5185\u652f\u4ed8\u670d\u52a1<\/a>\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u5e94\u7528\u5185\u8d2d\u4e70\u5404\u79cd\u7c7b\u578b\u7684\u865a\u62df\u5546\u54c1\uff0c\u5305\u62ec\u4e00\u6b21\u6027\u5546\u54c1\uff08\u5305\u62ec\u6d88\u8017\u578b\u5546\u54c1\u548c\u975e\u6d88\u8017\u578b\u5546\u54c1\uff09\u548c\u8ba2\u9605\u578b\u5546\u54c1\u3002\u5c0f\u7f16\u5c06\u8fd9\u6bb5\u65f6\u95f4\u5f00\u53d1\u8005\u4eec\u8f83\u4e3a\u5173\u6ce8\u7684\u4e00\u4e9b\u96c6\u6210\u5e94\u7528\u5185\u652f\u4ed8\u670d\u52a1\u8fc7\u7a0b\u4e2d\u7684\u95ee\u9898\u8fdb\u884c\u4e86\u6c47\u603b\uff0c\u5e76\u7ed9\u51fa\u4e86\u89e3\u51b3\u65b9\u6cd5\uff0c\u5927\u5bb6\u6309\u9700\u53d6\u7528\u3002<\/p>\n<h3>\u95ee\u9898\u4e00\u3001\u540c\u4e00\u8ba2\u9605\u7ec4\uff0c\u8fde\u7eed\u5305\u6708\u672a\u5230\u671f\uff0c\u5207\u6362\u5230\u8fde\u7eed\u5305\u5e74\uff0c\u5728\u534e\u4e3a\u5e10\u53f7\u4e2d\u5fc3\u7ba1\u7406\u8ba2\u9605\u9875\u9762\u4e2d\u53d6\u6d88\u8ba2\u9605\u8fde\u7eed\u5305\u6708\uff0c\u4e3a\u4f55\u8fde\u7eed\u5305\u5e74\u8ba2\u9605\u4e5f\u4f1a\u88ab\u4e00\u540c\u53d6\u6d88\uff1f<\/h3>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2fz8\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p><strong>\u539f\u56e0\u5206\u6790\uff1a<\/strong><\/p>\n<p>\u4ece\u8fde\u7eed\u5305\u6708\u5207\u6362\u81f3\u8fde\u7eed\u5305\u5e74\u540e\uff0c\u4ea7\u54c1\u5904\u4e8e\u672a\uff08\u5f85\uff09\u751f\u6548\u72b6\u6001\uff0c\u5982\u679c\u6b64\u65f6\u53d6\u6d88\u6389\u8fde\u7eed\u5305\u6708\u4ea7\u54c1\uff0c\u90a3\u4e48\u4f1a\u53d1\u9001\u8fde\u7eed\u5305\u6708\u8ba2\u9605\u53d6\u6d88\u901a\u77e5\u4e8b\u4ef6\uff0c\u7531\u4e8e\u6b64\u65f6\u5305\u5e74\u672a\u751f\u6548\uff0c\u6682\u4e0d\u4f1a\u53d1\u9001\u8fde\u7eed\u5305\u5e74\u7684\u53d6\u6d88\u8ba2\u9605\u4e8b\u4ef6\u3002<\/p>\n<h3>\u95ee\u9898\u4e8c\u3001\u5728\u534e\u4e3a\u667a\u80fd\u624b\u8868\u4e0a,\u8c03\u7528\u6536\u94f6\u53f0\u63a5\u53e3\uff0c\u63d0\u793a\u201c\u6b64\u5e94\u7528\u9700\u5b89\u88c5HMS Core\u76f8\u5173\u7ec4\u4ef6\u7684\u66f4\u9ad8\u7248\u672c\u624d\u80fd\u4f7f\u7528\u3002\u662f\u5426\u7acb\u5373\u66f4\u65b0\u201d\uff0c\u70b9\u51fb\u66f4\u65b0\uff0c\u63d0\u793a\u66f4\u65b0\u5931\u8d25\uff0c\u9519\u8bef102\u3002<\/h3>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2fz9\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p><strong>\u539f\u56e0\u5206\u6790\uff1a<\/strong><\/p>\n<p>\u8be5\u9519\u8bef\u7801\u4e00\u822c\u8868\u793a\u5b50Kit\u9700\u8981\u5347\u7ea7\uff0c\u4f46\u662f\u624b\u8868\u5e94\u7528\u5e02\u573a\u6ca1\u6709\u76f8\u5173\u7684\u5b50\u5e94\u7528\u4e0a\u67b6\uff0c\u6240\u4ee5\u627e\u4e0d\u5230\u5b89\u88c5\u5305\u3002\u5728\u534e\u4e3a\u667a\u80fd\u624b\u8868\u4e0a\u96c6\u6210JS SDK\uff0c\u9700\u8981\u5347\u7ea7\u7684\u4e3b\u8981\u4e24\u4e2a\u5b50Kit\u5206\u522b\u662fJSB Kit\uff0cIAP Kit\u3002\u76ee\u524dJSB Kit\u5df2\u4e0a\u67b6\u5230\u5e94\u7528\u5e02\u573a\uff0cIAP Kit\u5c1a\u5728\u4e0a\u67b6\u6392\u671f\u4e2d\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong><\/p>\n<p>\u5982\u679c\u9047\u5230\u8be5\u63d0\u793a\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u89c4\u907f\u65b9\u6848\uff0c\u5373\u63d0\u793a\u7528\u6237\u53bb\u624b\u52a8\u5230\u624b\u8868\u5e94\u7528\u5e02\u573a\u4e0b\u8f7d\u6700\u65b0\u7684HMS Core APK\uff0c\u6839\u636e\u8fd4\u56de\u7684<a href=\"https:\/\/link.segmentfault.com\/?enc=vZZulCbMaOjNL8g9iNXXqA%3D%3D.B61sTDLgGGTvSWJw%2BVAhhMbqshFfAtNbYli9yUWk%2FG0r9r8WVsHxREVFBOQ85YXeb3gAx06ZKXgpOwty%2BjTr%2BSPoKdvkOfVPaZOcWABCMonRyrFfHjbBiqTKa%2FNLa2s2UE5YMNygMrSQvn4kD1FkBX4eaXBGH3lOFaKmYJkA9hCM8Qee%2B7VyQDQhRQmCYldL\" rel=\"nofollow\">700111\u9519\u8bef\u7801<\/a>\u8fdb\u884c\u5904\u7406\u3002<\/p>\n<h3>\u95ee\u9898\u4e09\u3001\u5e94\u7528\u5185\u652f\u4ed8\u670d\u52a1\u63d0\u4f9bAndroid\u548cHarmonyOS SDK\uff0c\u652f\u6301\u7684\u529f\u80fd\u548c\u8bbe\u5907\u6709\u4ec0\u4e48\u533a\u522b\uff1f<\/h3>\n<p>App\u901a\u8fc7\u96c6\u6210IAP SDK\uff0c\u518d\u8c03\u7528IAP SDK\u63a5\u53e3\u542f\u52a8IAP\u6536\u94f6\u53f0\uff0c\u5373\u53ef\u5b9e\u73b0\u5e94\u7528\u5185\u652f\u4ed8\u3002Android\u548cHarmonyOS SDK\u90fd\u63d0\u4f9b\u57fa\u7840\u7684\u5e94\u7528\u5185\u652f\u4ed8\u670d\u52a1\uff0c\u5305\u62ec\u8ba2\u5355\u7ba1\u7406\u3001\u8ba2\u9605\u3001\u67e5\u770b\u5386\u53f2\u8d2d\u4e70\u8bb0\u5f55\u7b49\uff1b\u4f46HarmonyOS SDK\u76ee\u524d\u4e0d\u652f\u6301\u975ePMS\u652f\u4ed8\u548c\u5ef6\u8fdf\u4ed8\u6b3e\u652f\u4ed8\u3002\u5728\u652f\u6301\u7684\u8bbe\u5907\u65b9\u9762\uff0cHarmonyOS SDK\u652f\u6301\u534e\u4e3a\u624b\u673a\u3001\u534e\u4e3a\u624b\u8868\u548c\u534e\u4e3a\u5e73\u677f\uff1bAndroid SDK\u9664\u4e86\u534e\u4e3a\u8bbe\u5907\u4ee5\u5916\uff0c\u8fd8\u652f\u6301\u975e\u534e\u4e3a\u624b\u673a\u548c\u8f66\u673a\u3002<\/p>\n<p>\u5177\u4f53\u53ef\u53c2\u8003\u4e0b\u8868\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2fAa\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h3>\u95ee\u9898\u56db\u3001\u4e3a\u4ec0\u4e48\u5e94\u7528\u5185\u652f\u4ed84.0\u4ee5\u4e0a\u7248\u672cSDK \u63a5\u53e3obtainOwnedPurchasesRecord \u65e0\u6cd5\u67e5\u8be2\u52302.0 sdk \u63a5\u53e3productPay\u8d2d\u4e70\u7684PMS\u975e\u6d88\u8017\u6027\u5546\u54c1\u8ba2\u5355\uff1f<\/h3>\n<p><strong>\u539f\u56e0\u5206\u6790\uff1a<\/strong><\/p>\n<p>\u5e94\u7528\u5185\u652f\u4ed84.0\u4ee5\u4e0a\u7248\u672c\u548c2.0\u7248\u672c\u6570\u636e\u4e0d\u5728\u540c\u4e00\u4e2a\u6570\u636e\u5e93\u4e0a\uff0c\u4e14\u6682\u65f6\u65e0\u6cd5\u5408\u5e76\uff0c\u6240\u4ee5\u4f7f\u7528\u65b0\u63a5\u53e3\u7684\u65e0\u6cd5\u67e5\u8be2\u5230\u4e4b\u524d\u7684\u8ba2\u5355\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong><\/p>\n<ol>\n<li>\u5982\u679c\u5e94\u7528\u4e0a\u6709\u5c55\u793a\u5386\u53f2\u6570\u636e\u7684\u9700\u6c42\uff0c\u53ef\u4ee5\u4ec5\u5c55\u793a\u96c6\u62104.0\u4e4b\u540e\u7248\u672c sdk\u7684\u6570\u636e\uff0c\u598222\u5e741\u6708\u4efd\u96c6\u6210\u66f4\u65b0\uff0c\u5219\u53ef\u63d0\u793a\u672c\u9875\u9762\u53ea\u53ef\u67e5\u8be222\u5e741\u6708\u4efd\u4e4b\u540e\u7684\u8d2d\u4e70\u6570\u636e\u3002\uff08\u53c2\u8003\uff09<\/li>\n<li>\u5f00\u53d1\u8005\u53ef\u5c06\u4e4b\u524d2.x\u7248\u672c\u4e0b\u5355\u7684\u8d2d\u4e70\u6570\u636e\uff08\u4ece\u5e94\u7528\u670d\u52a1\u4fa7\u83b7\u53d6\uff09\u548c 4.0\u4e4b\u540e\u7248\u672csdk\uff08\u4eceIAP SDK\u63a5\u53e3\uff09\u83b7\u53d6\u5230\u7684\u6570\u636e\u8fdb\u884c\u6574\u5408\u5904\u7406\u3002\uff08\u63a8\u8350\uff09<\/li>\n<\/ol>\n<h3>\u95ee\u9898\u4e94\u3001 \u534e\u4e3a\u667a\u6167\u624b\u8868\u4e0a\uff0c\u5df2\u7ecf\u8fdb\u5165\u5230\u6c99\u76d2\u6d4b\u8bd5\u73af\u5883\u4e2d\uff0c\u62c9\u8d77\u6536\u94f6\u53f0\u540e\u652f\u4ed8\u4e8c\u7ef4\u7801\u4e0d\u663e\u793a\uff0c\u63d0\u793a\u8bf7\u6c42\u53c2\u6570\u9519\u8bef\u3002<\/h3>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2fAb\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p><strong>\u539f\u56e0\u5206\u6790\uff1a<\/strong><\/p>\n<p>\u76ee\u524d\u626b\u7801\u7c7b\u7684\u652f\u4ed8\u65b9\u5f0f\u90fd\u6682\u65f6\u4e0d\u652f\u6301\u6c99\u76d2\u6d4b\u8bd5\uff0c\u6bd4\u5982\u624b\u8868\uff0c\u667a\u6167\u5c4f\u7b49\u90fd\u662f\u901a\u8fc7\u626b\u7801\u65b9\u5f0f\u8fdb\u884c\u652f\u4ed8\u7684\uff0c\u6240\u4ee5\u4f1a\u51fa\u73b0\u76f8\u5e94\u9519\u8bef\u63d0\u793a\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong><\/p>\n<p>\u767b\u5f55\u975e\u6c99\u76d2\u5e10\u53f7\uff08\u6216\u8005\u5220\u9664\u6c99\u76d2\u5e10\u53f7\uff09\uff0c\u89e6\u53d1\u73b0\u7f51\u73af\u5883\u8fdb\u884c\u6d4b\u8bd5\u3002<\/p>\n<p><strong>\u4e86\u89e3\u66f4\u591a\u8be6\u60c5&gt;&gt;<\/strong><\/p>\n<p>\u8bbf\u95ee<a href=\"https:\/\/link.segmentfault.com\/?enc=p%2F%2By4PQOPEEwmf7zVHzSEQ%3D%3D.FIVxMo9M9nzvqQV2XXb5q9ViXCfYMKZpQsDyRYrtglYDdSCUXJ46I6jnEl70Dm6c%2FHozUC0gqX3SUunUg%2BHGPg%3D%3D\" rel=\"nofollow\">\u534e\u4e3a\u5f00\u53d1\u8005\u8054\u76df\u5b98\u7f51<\/a>  <br \/>\u83b7\u53d6<a href=\"https:\/\/link.segmentfault.com\/?enc=OjHPlUDtWSltglNOAF21eA%3D%3D.ySpxVXbI5ytgAiyrUviMrTBaLnkXPrsenqHigJoqR4lo9X%2BuymsZczFLrg54gYl4U4t1uUb5PmOmAFFsmpAPcNz1UqLzeneeQ1M5vTttGZ8%3D\" rel=\"nofollow\">\u5f00\u53d1\u6307\u5bfc\u6587\u6863<\/a>  <br \/>\u534e\u4e3a\u79fb\u52a8\u670d\u52a1\u5f00\u6e90\u4ed3\u5e93\u5730\u5740\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=cxqGHaNjyt4l1nu4CIQplQ%3D%3D.pSA4ehc28ryI9m8FLorEisBFYQc1d%2Fadm0b30ljSIxA%3D\" rel=\"nofollow\">GitHub<\/a>\u3001<a href=\"https:\/\/link.segmentfault.com\/?enc=H8AJr9hYjmKUozp9vAXrlg%3D%3D.EA0KV8uTTYXL%2FkYtJ735Vi58L%2Fvx0HPfhFZKbj4Ga3U%3D\" rel=\"nofollow\">Gitee<\/a><\/p>\n<p><strong>\u5173\u6ce8\u6211\u4eec\uff0c\u7b2c\u4e00\u65f6\u95f4\u4e86\u89e3 HMS Core \u6700\u65b0\u6280\u672f\u8d44\u8baf~<\/strong><\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000042443218\">https:\/\/segmentfault.com\/a\/1190000042443218<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>HMS Core\u5e94\u7528\u5185\u652f\u4ed8\u670d\u52a1\uff08In-App Purchases\uff0cIAP\uff09\u4e3a\u5e94\u7528\u63d0\u4f9b\u4fbf\u6377\u7684\u5e94\u7528\u5185\u652f\u4ed8\u4f53\u9a8c\u548c\u7b80\u4fbf [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-10006436","post","type-post","status-publish","format-standard","hentry"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10006436"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006436\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10006436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10006436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10006436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}