{"id":105600,"date":"2026-09-15T17:24:37","date_gmt":"2026-09-15T09:24:37","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/105600.html"},"modified":"2026-09-15T17:24:37","modified_gmt":"2026-09-15T09:24:37","slug":"harmonyos-7-%e6%96%b0%e7%89%b9%e6%80%a7%ef%bc%88%e4%b8%83%e5%8d%81%e4%b9%9d%ef%bc%89%ef%bd%9c%e6%89%a9%e5%b1%95%e5%85%83%e6%95%b0%e6%8d%ae%e5%af%b9%e8%b1%a1%ef%bc%9a%e8%83%bd%e5%8a%9b%e6%9f%a5","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/105600.html","title":{"rendered":"HarmonyOS 7 \u65b0\u7279\u6027\uff08\u4e03\u5341\u4e5d\uff09\uff5c\u6269\u5c55\u5143\u6570\u636e\u5bf9\u8c61\uff1a\u80fd\u529b\u67e5\u8be2\u4e0e\u5e27\u5173\u8054"},"content":{"rendered":"<p>HarmonyOS 7 \u5df2\u8fdb\u5165 26.0.0 Release \u9636\u6bb5\u3002Camera Kit \u7684\u672c\u6b21\u80fd\u529b\u9002\u5408\u89e3\u51b3\u201c\u4e13\u4e1a\u76f8\u673a\u5e94\u7528\u9700\u8981\u6d88\u8d39\u5382\u5546\u6216\u7b97\u6cd5\u6269\u5c55\u7684\u5143\u6570\u636e\u8f85\u52a9\u66dd\u5149\u4e0e\u8d28\u91cf\u8bca\u65ad\u201d\u8fd9\u4e00\u7c7b\u771f\u5b9e\u95ee\u9898&#xff0c;\u4f46\u9ad8\u8d28\u91cf\u63a5\u5165\u7edd\u4e0d\u662f\u590d\u5236\u4e00\u6bb5 API \u8c03\u7528&#xff1a;\u8fd8\u8981\u8865\u9f50\u80fd\u529b\u95e8\u7981\u3001\u9886\u57df\u5951\u7ea6\u3001\u72b6\u6001\u673a\u3001\u5f02\u5e38\u6062\u590d\u3001\u5b89\u5168\u9690\u79c1\u3001\u6027\u80fd\u9884\u7b97\u4e0e\u771f\u673a\u9a8c\u6536\u3002<\/p>\n<p>\u672c\u6587\u56f4\u7ed5 \u6269\u5c55\u5143\u6570\u636e\u5bf9\u8c61&#xff1a;\u80fd\u529b\u67e5\u8be2\u4e0e\u5e27\u5173\u8054 \u7ed9\u51fa\u4e00\u5957\u5de5\u7a0b\u5316\u65b9\u6848\u3002\u4ee3\u7801\u4ee5\u5e94\u7528\u5c42\u62bd\u8c61\u4e3a\u4e3b&#xff0c;\u771f\u5b9e\u7cfb\u7edf\u63a5\u53e3\u540d\u79f0\u3001\u679a\u4e3e\u548c\u503c\u57df\u5fc5\u987b\u4ee5\u5f53\u524d 26.0.0 SDK \u7684 d.ts\/\u5934\u6587\u4ef6\u53ca\u5b98\u65b9\u6307\u5357\u4e3a\u51c6\u3002<\/p>\n<h3>\u4e00\u3001\u5148\u5398\u6e05\u7248\u672c\u4e0e\u80fd\u529b\u8fb9\u754c<\/h3>\n<p>26.0.0 Beta2 \u9636\u6bb5\u7684 Camera Kit C API \u65b0\u589e\u5143\u6570\u636e\u5bf9\u8c61\u6269\u5c55\u6982\u5ff5\u58f0\u660e&#xff0c;\u5177\u4f53\u7ed3\u6784\u4ee5 Release \u5934\u6587\u4ef6\u4e3a\u51c6\u3002<\/p>\n<p>\u201c\u51fa\u73b0\u5728\u7248\u672c\u8bf4\u660e\u91cc\u201d\u4e0d\u7b49\u4e8e\u6240\u6709\u8bbe\u5907\u3001\u5730\u533a\u3001\u5e94\u7528\u5f62\u6001\u90fd\u65e0\u6761\u4ef6\u652f\u6301\u3002\u6b63\u5f0f\u5f00\u53d1\u524d\u8981\u8bb0\u5f55 DevEco Studio\u3001SDK\u3001\u7cfb\u7edf\u5c0f\u7248\u672c\u3001\u8bbe\u5907\u578b\u53f7\u548c\u7b7e\u540d\u914d\u7f6e&#xff0c;\u5e76\u901a\u8fc7\u7cfb\u7edf\u80fd\u529b\u3001\u6743\u9650\u4e0e\u8fd0\u884c\u65f6\u63a2\u6d4b\u51b3\u5b9a\u5165\u53e3\u662f\u5426\u53ef\u7528\u3002Beta \u9636\u6bb5\u5f15\u5165\u7684\u80fd\u529b\u8fd8\u8981\u518d\u6b21\u6838\u5bf9 Release \u662f\u5426\u6539\u540d\u3001\u8c03\u6574\u53c2\u6570\u6216\u6539\u53d8\u9519\u8bef\u7801\u3002<\/p>\n<p><span class=\"token keyword\">interface<\/span> <span class=\"token class-name\">CapabilitySnapshot<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  apiVersion<span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span><br \/>\n  releaseVersion<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><br \/>\n  systemCapability<span class=\"token operator\">:<\/span> <span class=\"token builtin\">boolean<\/span><br \/>\n  permissionGranted<span class=\"token operator\">:<\/span> <span class=\"token builtin\">boolean<\/span><br \/>\n  deviceEligible<span class=\"token operator\">:<\/span> <span class=\"token builtin\">boolean<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">function<\/span> <span class=\"token function\">isReady<\/span><span class=\"token punctuation\">(<\/span>value<span class=\"token operator\">:<\/span> CapabilitySnapshot<span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">boolean<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token keyword\">return<\/span> value<span class=\"token punctuation\">.<\/span>apiVersion <span class=\"token operator\">&gt;&#061;<\/span> <span class=\"token number\">26<\/span> <span class=\"token operator\">&amp;&amp;<\/span> value<span class=\"token punctuation\">.<\/span>systemCapability <span class=\"token operator\">&amp;&amp;<\/span><br \/>\n    value<span class=\"token punctuation\">.<\/span>permissionGranted <span class=\"token operator\">&amp;&amp;<\/span> value<span class=\"token punctuation\">.<\/span>deviceEligible<br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u4e0d\u652f\u6301\u3001\u6743\u9650\u62d2\u7edd\u3001\u7b56\u7565\u7981\u6b62\u548c\u4e34\u65f6\u5931\u8d25\u8981\u5206\u522b\u8868\u8fbe\u3002\u7528\u6237\u5e94\u770b\u5230\u771f\u5b9e\u539f\u56e0\u4e0e\u66ff\u4ee3\u8def\u5f84&#xff0c;\u800c\u4e0d\u662f\u7edf\u4e00\u7684\u201c\u64cd\u4f5c\u5931\u8d25\u201d\u3002<\/p>\n<h3>\u4e8c\u3001\u4ece\u4e1a\u52a1\u4efb\u52a1\u5361\u5b9a\u4e49\u6210\u529f<\/h3>\n<p>\u672c\u6587\u4e1a\u52a1\u573a\u666f\u662f&#xff1a;\u4e13\u4e1a\u76f8\u673a\u5e94\u7528\u9700\u8981\u6d88\u8d39\u5382\u5546\u6216\u7b97\u6cd5\u6269\u5c55\u7684\u5143\u6570\u636e\u8f85\u52a9\u66dd\u5149\u4e0e\u8d28\u91cf\u8bca\u65ad\u3002\u4e3b\u64cd\u4f5c\u4e3a\u201c\u89e3\u6790\u76f8\u673a\u6269\u5c55\u5143\u6570\u636e\u5e76\u4e0e\u5bf9\u5e94\u7167\u7247\u6216\u89c6\u9891\u5e27\u7ed1\u5b9a\u201d\u3002\u6210\u529f\u6807\u51c6\u81f3\u5c11\u5305\u62ec&#xff1a;\u76ee\u6807\u7ed3\u679c\u6b63\u786e\u3001\u7528\u6237\u53ef\u53d6\u6d88\u3001\u8fdb\u7a0b\u91cd\u542f\u53ef\u6062\u590d\u3001\u91cd\u590d\u56de\u8c03\u4e0d\u7834\u574f\u7ec8\u6001\u3001\u6027\u80fd\u6307\u6807\u53ef\u5ea6\u91cf\u3001\u9690\u79c1\u6570\u636e\u672a\u8d8a\u754c\u3002<\/p>\n<p><span class=\"token keyword\">interface<\/span> <span class=\"token class-name\">CameraMetadataPacketSpec<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  captureId<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><br \/>\n  frameNumber<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><br \/>\n  metadataType<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><br \/>\n  timestampNs<span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span><br \/>\n  requestId<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><br \/>\n  createdAt<span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">interface<\/span> <span class=\"token class-name\">DomainResult<span class=\"token operator\">&lt;<\/span><span class=\"token constant\">T<\/span><span class=\"token operator\">&gt;<\/span><\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  ok<span class=\"token operator\">:<\/span> <span class=\"token builtin\">boolean<\/span><br \/>\n  value<span class=\"token operator\">?<\/span><span class=\"token operator\">:<\/span> <span class=\"token constant\">T<\/span><br \/>\n  errorCode<span class=\"token operator\">?<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><br \/>\n  retryable<span class=\"token operator\">:<\/span> <span class=\"token builtin\">boolean<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u975e\u76ee\u6807\u4e5f\u8981\u5199\u6e05&#xff1a;\u4e0d\u7ed5\u8fc7\u7cfb\u7edf\u6743\u9650&#xff0c;\u4e0d\u5728\u4e0d\u652f\u6301\u8bbe\u5907\u4f2a\u9020\u6210\u529f&#xff0c;\u4e0d\u628a\u5e73\u53f0\u5bf9\u8c61\u76f4\u63a5\u66b4\u9732\u7ed9\u9875\u9762&#xff0c;\u4e0d\u7528\u7528\u6237\u539f\u59cb\u6570\u636e\u6362\u53d6\u66f4\u65b9\u4fbf\u7684\u8c03\u8bd5\u3002<\/p>\n<h3>\u4e09\u3001\u9886\u57df\u5c42\u9694\u79bb\u7cfb\u7edf API \u53d8\u5316<\/h3>\n<p>\u9875\u9762\u53ea\u4f9d\u8d56\u7a33\u5b9a\u7684\u9886\u57df\u7aef\u53e3&#xff0c;\u5e73\u53f0\u9002\u914d\u5668\u8d1f\u8d23\u80fd\u529b\u67e5\u8be2\u3001\u6743\u9650\u3001\u7cfb\u7edf API\u3001\u9519\u8bef\u7801\u7ffb\u8bd1\u548c\u8d44\u6e90\u91ca\u653e\u3002\u8fd9\u6837 SDK \u5c0f\u7248\u672c\u53d8\u5316\u65f6&#xff0c;\u4e0d\u5fc5\u4fee\u6539\u6240\u6709\u4e1a\u52a1\u9875\u9762\u3002<\/p>\n<p><span class=\"token keyword\">interface<\/span> <span class=\"token class-name\">CameraMetadataPacketPort<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token function\">probe<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">Promise<\/span><span class=\"token operator\">&lt;<\/span>CapabilitySnapshot<span class=\"token operator\">&gt;<\/span><br \/>\n  <span class=\"token function\">start<\/span><span class=\"token punctuation\">(<\/span>spec<span class=\"token operator\">:<\/span> CameraMetadataPacketSpec<span class=\"token punctuation\">,<\/span> signal<span class=\"token operator\">:<\/span> AbortSignal<span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">Promise<\/span><span class=\"token operator\">&lt;<\/span>DomainResult<span class=\"token operator\">&lt;<\/span><span class=\"token builtin\">string<\/span><span class=\"token operator\">&gt;&gt;<\/span><br \/>\n  <span class=\"token function\">stop<\/span><span class=\"token punctuation\">(<\/span>sessionId<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><span class=\"token punctuation\">,<\/span> reason<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">Promise<\/span><span class=\"token operator\">&lt;<\/span><span class=\"token keyword\">void<\/span><span class=\"token operator\">&gt;<\/span><br \/>\n  <span class=\"token function\">release<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">Promise<\/span><span class=\"token operator\">&lt;<\/span><span class=\"token keyword\">void<\/span><span class=\"token operator\">&gt;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">class<\/span> <span class=\"token class-name\">UnsupportedCameraMetadataPacketPort<\/span> <span class=\"token keyword\">implements<\/span> <span class=\"token class-name\">CameraMetadataPacketPort<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token keyword\">async<\/span> <span class=\"token function\">probe<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">Promise<\/span><span class=\"token operator\">&lt;<\/span>CapabilitySnapshot<span class=\"token operator\">&gt;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token punctuation\">{<\/span> apiVersion<span class=\"token operator\">:<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">,<\/span> releaseVersion<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;unknown&#039;<\/span><span class=\"token punctuation\">,<\/span> systemCapability<span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      permissionGranted<span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span><span class=\"token punctuation\">,<\/span> deviceEligible<span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span> <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token keyword\">async<\/span> <span class=\"token function\">start<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">Promise<\/span><span class=\"token operator\">&lt;<\/span>DomainResult<span class=\"token operator\">&lt;<\/span><span class=\"token builtin\">string<\/span><span class=\"token operator\">&gt;&gt;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token punctuation\">{<\/span> ok<span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span><span class=\"token punctuation\">,<\/span> errorCode<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;UNSUPPORTED&#039;<\/span><span class=\"token punctuation\">,<\/span> retryable<span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span> <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token keyword\">async<\/span> <span class=\"token function\">stop<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">Promise<\/span><span class=\"token operator\">&lt;<\/span><span class=\"token keyword\">void<\/span><span class=\"token operator\">&gt;<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token keyword\">async<\/span> <span class=\"token function\">release<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">Promise<\/span><span class=\"token operator\">&lt;<\/span><span class=\"token keyword\">void<\/span><span class=\"token operator\">&gt;<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u9002\u914d\u5668\u5fc5\u987b\u5c0f\u800c\u53ef\u66ff\u6362\u3002\u4e0d\u8981\u628a UI \u6587\u6848\u3001\u7f51\u7edc\u8bf7\u6c42\u3001\u6301\u4e45\u5316\u548c\u7cfb\u7edf\u56de\u8c03\u5168\u90e8\u585e\u8fdb\u4e00\u4e2a\u201cManager\u201d\u7c7b&#xff0c;\u5426\u5219\u5f02\u5e38\u6062\u590d\u4e0e\u6d4b\u8bd5\u90fd\u4f1a\u53d8\u5f97\u56f0\u96be\u3002<\/p>\n<h3>\u56db\u3001\u7528\u663e\u5f0f\u72b6\u6001\u673a\u7ea6\u675f\u5f02\u6b65\u6d41\u7a0b<\/h3>\n<p>Camera Kit \u7684\u8c03\u7528\u53ef\u80fd\u8de8\u7ebf\u7a0b\u3001\u8de8\u8fdb\u7a0b\u6216\u8de8\u8bbe\u5907&#xff0c;\u56de\u8c03\u53ef\u80fd\u91cd\u590d\u3001\u4e71\u5e8f&#xff0c;\u751a\u81f3\u5728\u9875\u9762\u9500\u6bc1\u540e\u624d\u5230\u8fbe\u3002\u72b6\u6001\u673a\u8981\u660e\u786e\u5141\u8bb8\u7684\u8fc1\u79fb\u3001\u7ec8\u6001\u548c\u6062\u590d\u70b9\u3002<\/p>\n<p><span class=\"token keyword\">type<\/span> <span class=\"token class-name\">CameraMetadataPacketState<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#039;PROBING&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token string\">&#039;CONFIGURED&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token string\">&#039;CAPTURING&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token string\">&#039;MATCHING&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token string\">&#039;DELIVERED&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token string\">&#039;DROPPED&#039;<\/span><\/p>\n<p><span class=\"token keyword\">interface<\/span> <span class=\"token class-name\">SessionSnapshot<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  state<span class=\"token operator\">:<\/span> CameraMetadataPacketState<br \/>\n  revision<span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span><br \/>\n  requestId<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><br \/>\n  updatedAt<span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span><br \/>\n  errorCode<span class=\"token operator\">?<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">function<\/span> <span class=\"token function\">accepts<\/span><span class=\"token punctuation\">(<\/span>current<span class=\"token operator\">:<\/span> SessionSnapshot<span class=\"token punctuation\">,<\/span> incomingRevision<span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">boolean<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token keyword\">return<\/span> incomingRevision <span class=\"token operator\">&gt;<\/span> current<span class=\"token punctuation\">.<\/span>revision<br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u7ec8\u6001\u53ea\u80fd\u63d0\u4ea4\u4e00\u6b21\u3002\u7528\u6237\u53d6\u6d88\u540e&#xff0c;\u665a\u5230\u7684\u6210\u529f\u56de\u8c03\u4e0d\u5f97\u91cd\u65b0\u6fc0\u6d3b\u4f1a\u8bdd&#xff1b;\u65e7 revision \u4e0d\u5f97\u8986\u76d6\u65b0\u72b6\u6001\u3002\u6bcf\u6b21\u8fc1\u79fb\u8bb0\u5f55\u539f\u56e0&#xff0c;\u624d\u80fd\u533a\u5206\u7528\u6237\u53d6\u6d88\u3001\u7cfb\u7edf\u62d2\u7edd\u3001\u8d85\u65f6\u4e0e\u8d44\u6e90\u538b\u529b\u3002<\/p>\n<h3>\u4e94\u3001\u5e42\u7b49\u53f0\u8d26\u9632\u6b62\u91cd\u590d\u526f\u4f5c\u7528<\/h3>\n<p>\u8bbe\u5907\u8fde\u63a5\u3001\u6587\u4ef6\u5199\u5165\u3001\u7f51\u7edc\u91cd\u8bd5\u4e0e\u7cfb\u7edf\u670d\u52a1\u90fd\u6709\u91cd\u590d\u8c03\u7528\u7684\u53ef\u80fd\u3002\u7a33\u5b9a requestId \u7528\u4e8e\u67e5\u627e\u5df2\u5b8c\u6210\u7ed3\u679c&#xff1b;\u9700\u8981\u6062\u590d\u7684\u6700\u5c0f\u72b6\u6001\u6301\u4e45\u5316&#xff0c;\u5e76\u8bbe\u7f6e\u660e\u786e\u8fc7\u671f\u65f6\u95f4\u3002<\/p>\n<p><span class=\"token keyword\">class<\/span> <span class=\"token class-name\">IdempotencyLedger<span class=\"token operator\">&lt;<\/span><span class=\"token constant\">T<\/span><span class=\"token operator\">&gt;<\/span><\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token keyword\">private<\/span> values <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token class-name\">Map<span class=\"token operator\">&lt;<\/span><span class=\"token builtin\">string<\/span><span class=\"token punctuation\">,<\/span> DomainResult<span class=\"token operator\">&lt;<\/span><span class=\"token constant\">T<\/span><span class=\"token operator\">&gt;&gt;<\/span><\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>  <span class=\"token function\">lookup<\/span><span class=\"token punctuation\">(<\/span>requestId<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> DomainResult<span class=\"token operator\">&lt;<\/span><span class=\"token constant\">T<\/span><span class=\"token operator\">&gt;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token keyword\">undefined<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>values<span class=\"token punctuation\">.<\/span><span class=\"token function\">get<\/span><span class=\"token punctuation\">(<\/span>requestId<span class=\"token punctuation\">)<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><\/p>\n<p>  <span class=\"token function\">commit<\/span><span class=\"token punctuation\">(<\/span>requestId<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><span class=\"token punctuation\">,<\/span> result<span class=\"token operator\">:<\/span> DomainResult<span class=\"token operator\">&lt;<\/span><span class=\"token constant\">T<\/span><span class=\"token operator\">&gt;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> <span class=\"token keyword\">void<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token operator\">!<\/span><span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>values<span class=\"token punctuation\">.<\/span><span class=\"token function\">has<\/span><span class=\"token punctuation\">(<\/span>requestId<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>values<span class=\"token punctuation\">.<\/span><span class=\"token function\">set<\/span><span class=\"token punctuation\">(<\/span>requestId<span class=\"token punctuation\">,<\/span> result<span class=\"token punctuation\">)<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u8d26\u53f7\u9000\u51fa\u3001\u4e1a\u52a1\u5bf9\u8c61\u5220\u9664\u3001\u6388\u6743\u64a4\u56de\u540e&#xff0c;\u5e94\u6e05\u7406\u5bf9\u5e94\u6062\u590d\u4ee4\u724c\u3002\u53f0\u8d26\u4e0d\u80fd\u6210\u4e3a\u65e0\u9650\u589e\u957f\u7684\u5f71\u5b50\u6570\u636e\u5e93\u3002<\/p>\n<h3>\u516d\u3001\u53d6\u6d88\u3001\u8d85\u65f6\u4e0e\u91ca\u653e\u5fc5\u987b\u6210\u5bf9<\/h3>\n<p>\u6700\u5927\u5de5\u7a0b\u98ce\u9669\u662f&#xff1a;\u6309\u56fa\u5b9a\u504f\u79fb\u89e3\u6790\u672a\u77e5\u5143\u6570\u636e\u4f1a\u8d8a\u754c&#xff0c;\u5143\u6570\u636e\u65f6\u95f4\u6233\u548c\u56fe\u50cf\u5e27\u4e0d\u4e00\u81f4\u4f1a\u9020\u6210\u9519\u8bef\u5224\u65ad\u3002\u56e0\u6b64\u6bcf\u4e2a\u957f\u4efb\u52a1\u90fd\u8981\u7ed1\u5b9a\u53d6\u6d88\u4fe1\u53f7\u3001\u8d85\u65f6\u3001\u8d44\u6e90\u6240\u6709\u8005\u548c finally \u6e05\u7406&#xff1b;\u9875\u9762\u751f\u547d\u5468\u671f\u53ea\u662f\u53d6\u6d88\u6765\u6e90\u4e4b\u4e00&#xff0c;\u4e0d\u80fd\u4ee3\u66ff\u5e95\u5c42\u8d44\u6e90\u7ba1\u7406\u3002<\/p>\n<p><span class=\"token keyword\">async<\/span> <span class=\"token keyword\">function<\/span> <span class=\"token generic-function\"><span class=\"token function\">withTimeout<\/span><span class=\"token generic class-name\"><span class=\"token operator\">&lt;<\/span><span class=\"token constant\">T<\/span><span class=\"token operator\">&gt;<\/span><\/span><\/span><span class=\"token punctuation\">(<\/span><br \/>\n  timeoutMs<span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token function-variable function\">task<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">(<\/span>signal<span class=\"token operator\">:<\/span> AbortSignal<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token builtin\">Promise<\/span><span class=\"token operator\">&lt;<\/span><span class=\"token constant\">T<\/span><span class=\"token operator\">&gt;<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">Promise<\/span><span class=\"token operator\">&lt;<\/span><span class=\"token constant\">T<\/span><span class=\"token operator\">&gt;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token keyword\">const<\/span> controller <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token class-name\">AbortController<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n  <span class=\"token keyword\">const<\/span> timer <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">setTimeout<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&gt;<\/span> controller<span class=\"token punctuation\">.<\/span><span class=\"token function\">abort<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;TIMEOUT&#039;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> timeoutMs<span class=\"token punctuation\">)<\/span><br \/>\n  <span class=\"token keyword\">try<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token keyword\">await<\/span> <span class=\"token function\">task<\/span><span class=\"token punctuation\">(<\/span>controller<span class=\"token punctuation\">.<\/span>signal<span class=\"token punctuation\">)<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">finally<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token function\">clearTimeout<\/span><span class=\"token punctuation\">(<\/span>timer<span class=\"token punctuation\">)<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u6587\u4ef6\u53e5\u67c4\u3001\u8ba2\u9605\u3001\u7f13\u51b2\u533a\u3001\u7eb9\u7406\u3001\u4f1a\u8bdd\u548c\u56de\u8c03\u6ce8\u518c\u90fd\u8981\u6210\u5bf9\u91ca\u653e\u3002\u540e\u53f0\u5207\u6362\u3001\u7a97\u53e3\u5173\u95ed\u548c\u8fdb\u7a0b\u6062\u590d\u9700\u8981\u5355\u72ec\u6d4b\u8bd5\u3002<\/p>\n<h3>\u4e03\u3001\u9519\u8bef\u5206\u7c7b\u51b3\u5b9a\u6062\u590d\u7b56\u7565<\/h3>\n<p>\u53c2\u6570\u9519\u8bef\u4e0d\u80fd\u76f2\u76ee\u91cd\u8bd5&#xff1b;\u8d44\u6e90\u538b\u529b\u9700\u8981\u964d\u7ea7&#xff1b;\u7f51\u7edc\u6216\u8bbe\u5907\u77ac\u65f6\u6545\u969c\u53ef\u4ee5\u6307\u6570\u9000\u907f&#xff1b;\u6743\u9650\u62d2\u7edd\u5e94\u4ea4\u8fd8\u7528\u6237\u51b3\u7b56\u3002\u6240\u6709\u91cd\u8bd5\u90fd\u8981\u6709\u6b21\u6570\u4e0a\u9650\u548c\u968f\u673a\u6296\u52a8\u3002<\/p>\n<p><span class=\"token keyword\">type<\/span> <span class=\"token class-name\">FailureKind<\/span> <span class=\"token operator\">&#061;<\/span><br \/>\n  <span class=\"token operator\">|<\/span> <span class=\"token string\">&#039;INVALID_INPUT&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token string\">&#039;UNSUPPORTED&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token string\">&#039;PERMISSION_DENIED&#039;<\/span><br \/>\n  <span class=\"token operator\">|<\/span> <span class=\"token string\">&#039;TRANSIENT&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token string\">&#039;RESOURCE_PRESSURE&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token string\">&#039;POLICY_BLOCKED&#039;<\/span><\/p>\n<p><span class=\"token keyword\">function<\/span> <span class=\"token function\">retryDelay<\/span><span class=\"token punctuation\">(<\/span>attempt<span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token keyword\">const<\/span> base <span class=\"token operator\">&#061;<\/span> Math<span class=\"token punctuation\">.<\/span><span class=\"token function\">min<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">30_000<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">500<\/span> <span class=\"token operator\">*<\/span> <span class=\"token number\">2<\/span> <span class=\"token operator\">**<\/span> attempt<span class=\"token punctuation\">)<\/span><br \/>\n  <span class=\"token keyword\">return<\/span> base <span class=\"token operator\">&#043;<\/span> Math<span class=\"token punctuation\">.<\/span><span class=\"token function\">floor<\/span><span class=\"token punctuation\">(<\/span>Math<span class=\"token punctuation\">.<\/span><span class=\"token function\">random<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">*<\/span> <span class=\"token number\">250<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u6062\u590d\u524d\u91cd\u65b0\u67e5\u8be2\u80fd\u529b\u3001\u6743\u9650\u548c\u4e1a\u52a1\u5bf9\u8c61\u65b0\u9c9c\u5ea6&#xff0c;\u4e0d\u80fd\u590d\u7528\u65e7\u7cfb\u7edf\u53e5\u67c4\u3002\u8fbe\u5230\u91cd\u8bd5\u4e0a\u9650\u540e\u505c\u6b62\u540e\u53f0\u6d88\u8017&#xff0c;\u5c55\u793a\u4eba\u5de5\u6062\u590d\u5165\u53e3\u3002<\/p>\n<h3>\u516b\u3001\u5b89\u5168\u4e0e\u9690\u79c1\u6700\u5c0f\u5316<\/h3>\n<p>\u65e5\u5fd7\u53ea\u8bb0\u5f55\u54c8\u5e0c\u6807\u8bc6\u3001\u72b6\u6001\u3001\u7248\u672c\u3001\u9519\u8bef\u7801\u548c\u8017\u65f6\u3002Cookie\u3001\u6587\u4ef6\u5185\u5bb9\u3001\u8054\u7cfb\u4eba\u3001\u8d26\u53f7\u3001\u7f51\u7edc\u4e94\u5143\u7ec4\u3001\u97f3\u89c6\u9891\u3001\u539f\u59cb\u8bbe\u5907\u6807\u8bc6\u7b49\u654f\u611f\u6570\u636e\u4e0d\u80fd\u8fdb\u5165\u666e\u901a\u65e5\u5fd7\u3001URL \u53c2\u6570\u3001\u5d29\u6e83\u9644\u4ef6\u6216\u622a\u56fe\u3002<\/p>\n<p><span class=\"token keyword\">interface<\/span> <span class=\"token class-name\">SafeAuditEvent<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  eventName<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><br \/>\n  resourceHash<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><br \/>\n  revision<span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span><br \/>\n  state<span class=\"token operator\">:<\/span> CameraMetadataPacketState<br \/>\n  durationMs<span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span><br \/>\n  errorCode<span class=\"token operator\">?<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><br \/>\n  buildId<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">function<\/span> <span class=\"token function\">shouldPersist<\/span><span class=\"token punctuation\">(<\/span>event<span class=\"token operator\">:<\/span> SafeAuditEvent<span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">boolean<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token keyword\">return<\/span> event<span class=\"token punctuation\">.<\/span>resourceHash<span class=\"token punctuation\">.<\/span>length <span class=\"token operator\">&gt;<\/span> <span class=\"token number\">0<\/span> <span class=\"token operator\">&amp;&amp;<\/span> event<span class=\"token punctuation\">.<\/span>durationMs <span class=\"token operator\">&gt;&#061;<\/span> <span class=\"token number\">0<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u8bca\u65ad\u5305\u5fc5\u987b\u7531\u7528\u6237\u6216\u7ba1\u7406\u5458\u4e3b\u52a8\u5bfc\u51fa&#xff0c;\u5e76\u8bbe\u6709\u6548\u671f\u3002\u9ad8\u98ce\u9669\u64cd\u4f5c\u7684\u786e\u8ba4\u6587\u6848\u548c\u6700\u7ec8\u63d0\u4ea4\u5185\u5bb9\u5e94\u6765\u81ea\u540c\u4e00\u4efd\u4e0d\u53ef\u53d8\u6458\u8981&#xff0c;\u9632\u6b62\u201c\u786e\u8ba4 A\u3001\u6267\u884c B\u201d\u3002<\/p>\n<h3>\u4e5d\u3001\u6027\u80fd\u8981\u770b\u5206\u4f4d\u6570\u548c\u526f\u4f5c\u7528<\/h3>\n<p>\u672c\u6587\u4e3b\u6307\u6807\u662f camera_metadata_match_rate\u3002\u540c\u65f6\u8bb0\u5f55\u6210\u529f\u7387\u3001\u53d6\u6d88\u7387\u3001\u8d85\u65f6\u7387\u3001\u5185\u5b58\/\u663e\u5b58\u5cf0\u503c\u3001I\/O\u3001\u8017\u7535\u3001\u6e29\u5347\u548c\u964d\u7ea7\u7387\u3002\u5e73\u5747\u503c\u4e0d\u80fd\u4ee3\u8868\u5c3e\u90e8\u4f53\u9a8c&#xff0c;\u81f3\u5c11\u8ba1\u7b97 P50\u3001P90\u3001P99\u3002<\/p>\n<p><span class=\"token keyword\">interface<\/span> <span class=\"token class-name\">MetricPoint<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  name<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;camera_metadata_match_rate&#039;<\/span><br \/>\n  value<span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span><br \/>\n  deviceClass<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><br \/>\n  osVersion<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><br \/>\n  sdkVersion<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><br \/>\n  buildId<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><br \/>\n  degraded<span class=\"token operator\">:<\/span> <span class=\"token builtin\">boolean<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">function<\/span> <span class=\"token function\">percentile<\/span><span class=\"token punctuation\">(<\/span>values<span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span><span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> ratio<span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token keyword\">const<\/span> sorted <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token operator\">&#8230;<\/span>values<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">sort<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">,<\/span> b<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&gt;<\/span> a <span class=\"token operator\">&#8211;<\/span> b<span class=\"token punctuation\">)<\/span><br \/>\n  <span class=\"token keyword\">const<\/span> index <span class=\"token operator\">&#061;<\/span> Math<span class=\"token punctuation\">.<\/span><span class=\"token function\">min<\/span><span class=\"token punctuation\">(<\/span>sorted<span class=\"token punctuation\">.<\/span>length <span class=\"token operator\">&#8211;<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span> Math<span class=\"token punctuation\">.<\/span><span class=\"token function\">floor<\/span><span class=\"token punctuation\">(<\/span>sorted<span class=\"token punctuation\">.<\/span>length <span class=\"token operator\">*<\/span> ratio<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n  <span class=\"token keyword\">return<\/span> sorted<span class=\"token punctuation\">[<\/span>index<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">??<\/span> <span class=\"token number\">0<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u5bf9\u7167\u5b9e\u9a8c\u4f7f\u7528\u76f8\u540c\u8bbe\u5907\u3001\u6570\u636e\u548c\u811a\u672c&#xff0c;\u4e00\u6b21\u53ea\u6539\u4e00\u4e2a\u4e3b\u8981\u53d8\u91cf\u3002\u5ef6\u8fdf\u4e0b\u964d\u4f46\u9519\u8bef\u3001\u8017\u7535\u6216\u6e29\u5347\u6076\u5316\u65f6&#xff0c;\u4e0d\u5e94\u76f4\u63a5\u6269\u5927\u7070\u5ea6\u3002<\/p>\n<h3>\u5341\u3001UI \u6295\u5f71\u5fc5\u987b\u5fe0\u4e8e\u9886\u57df\u72b6\u6001<\/h3>\n<p>UI \u4e0d\u62e5\u6709\u4efb\u52a1&#xff0c;\u53ea\u6295\u5f71\u9886\u57df\u5feb\u7167\u3002\u52a0\u8f7d\u6001\u5e94\u8bf4\u660e\u5f53\u524d\u9636\u6bb5\u5e76\u5141\u8bb8\u53d6\u6d88&#xff1b;\u9519\u8bef\u6001\u533a\u5206\u53ef\u91cd\u8bd5\u548c\u4e0d\u53ef\u91cd\u8bd5&#xff1b;\u7ec8\u6001\u5c55\u793a\u53ef\u6838\u9a8c\u7ed3\u679c\u3002\u4e0d\u8981\u63d0\u524d\u663e\u793a 100%&#xff0c;\u4e5f\u4e0d\u8981\u8ba9\u65e7\u9875\u9762\u56de\u8c03\u8986\u76d6\u65b0\u4efb\u52a1\u3002<\/p>\n<p><span class=\"token keyword\">interface<\/span> <span class=\"token class-name\">UiState<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  title<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><br \/>\n  detail<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><br \/>\n  progress<span class=\"token operator\">?<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span><br \/>\n  action<span class=\"token operator\">?<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;RETRY&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token string\">&#039;CANCEL&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token string\">&#039;OPEN_SETTINGS&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token string\">&#039;USE_FALLBACK&#039;<\/span><br \/>\n  terminal<span class=\"token operator\">:<\/span> <span class=\"token builtin\">boolean<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">function<\/span> <span class=\"token function\">projectUi<\/span><span class=\"token punctuation\">(<\/span>snapshot<span class=\"token operator\">:<\/span> SessionSnapshot<span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> UiState <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token keyword\">return<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    title<span class=\"token operator\">:<\/span> <span class=\"token function\">String<\/span><span class=\"token punctuation\">(<\/span>snapshot<span class=\"token punctuation\">.<\/span>state<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    detail<span class=\"token operator\">:<\/span> snapshot<span class=\"token punctuation\">.<\/span>errorCode <span class=\"token operator\">??<\/span> <span class=\"token string\">&#039;\u4efb\u52a1\u5904\u7406\u4e2d&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    terminal<span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u72b6\u6001\u53d8\u5316\u8981\u80fd\u88ab\u8bfb\u5c4f\u611f\u77e5&#xff0c;\u989c\u8272\u4e0d\u80fd\u6210\u4e3a\u552f\u4e00\u4fe1\u53f7\u3002\u8de8\u7a97\u53e3\u3001\u9501\u5c4f\u3001\u901a\u77e5\u548c\u8de8\u8bbe\u5907\u5165\u53e3\u5171\u4eab\u540c\u4e00\u4e1a\u52a1\u72b6\u6001\u6e90\u3002<\/p>\n<h3>\u5341\u4e00\u3001\u964d\u7ea7\u662f\u4e00\u6761\u6b63\u5f0f\u4ea7\u54c1\u8def\u5f84<\/h3>\n<p>\u4e3b\u80fd\u529b\u4e0d\u53ef\u7528\u65f6&#xff0c;\u5e94\u4fdd\u7559\u80fd\u5b8c\u6210\u6838\u5fc3\u76ee\u6807\u7684\u7a33\u5b9a\u8def\u5f84&#xff0c;\u4f8b\u5982\u51cf\u5c11\u6548\u679c\u3001\u6539\u7528\u672c\u5730\u5904\u7406\u3001\u8ba9\u7528\u6237\u7a0d\u540e\u91cd\u8bd5\u6216\u8f6c\u4e3a\u624b\u52a8\u64cd\u4f5c\u3002\u964d\u7ea7\u8981\u6709\u660e\u786e\u89e6\u53d1\u6761\u4ef6\u3001\u7528\u6237\u8bf4\u660e\u548c\u6062\u590d\u6761\u4ef6\u3002<\/p>\n<p><span class=\"token keyword\">interface<\/span> <span class=\"token class-name\">DegradeDecision<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  reason<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;UNSUPPORTED&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token string\">&#039;PERMISSION&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token string\">&#039;TIMEOUT&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token string\">&#039;PRESSURE&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token string\">&#039;POLICY&#039;<\/span><br \/>\n  preserveUserWork<span class=\"token operator\">:<\/span> <span class=\"token builtin\">boolean<\/span><br \/>\n  retryAfterMs<span class=\"token operator\">?<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span><br \/>\n  userMessageKey<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">function<\/span> <span class=\"token function\">safeFallback<\/span><span class=\"token punctuation\">(<\/span>reason<span class=\"token operator\">:<\/span> DegradeDecision<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;reason&#039;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> DegradeDecision <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token keyword\">return<\/span> <span class=\"token punctuation\">{<\/span> reason<span class=\"token punctuation\">,<\/span> preserveUserWork<span class=\"token operator\">:<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">,<\/span> userMessageKey<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;feature_degraded&#039;<\/span> <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u964d\u7ea7\u540e\u4fdd\u5b58\u7528\u6237\u8f93\u5165&#xff0c;\u907f\u514d\u91cd\u590d\u52b3\u52a8&#xff1b;\u6062\u590d\u4e3b\u80fd\u529b\u65f6\u91cd\u65b0\u5efa\u7acb\u4f1a\u8bdd&#xff0c;\u4e0d\u80fd\u6cbf\u7528\u5df2\u91ca\u653e\u8d44\u6e90\u3002<\/p>\n<h3>\u5341\u4e8c\u3001\u6d4b\u8bd5\u77e9\u9635\u4e0e\u8bc1\u636e<\/h3>\n<ul>\n<li>\u5143\u6570\u636e\u7f3a\u5931&#xff1a;\u51bb\u7ed3\u524d\u7f6e\u72b6\u6001&#xff0c;\u6267\u884c\u786e\u5b9a\u6b65\u9aa4&#xff0c;\u8bb0\u5f55\u671f\u671b\u8fc1\u79fb\u3001\u9519\u8bef\u7801\u3001\u8d44\u6e90\u91ca\u653e\u548c\u622a\u56fe\/\u65e5\u5fd7\u8bc1\u636e\u3002<\/li>\n<li>\u672a\u77e5\u7c7b\u578b&#xff1a;\u51bb\u7ed3\u524d\u7f6e\u72b6\u6001&#xff0c;\u6267\u884c\u786e\u5b9a\u6b65\u9aa4&#xff0c;\u8bb0\u5f55\u671f\u671b\u8fc1\u79fb\u3001\u9519\u8bef\u7801\u3001\u8d44\u6e90\u91ca\u653e\u548c\u622a\u56fe\/\u65e5\u5fd7\u8bc1\u636e\u3002<\/li>\n<li>\u8fde\u62cd\u4e71\u5e8f&#xff1a;\u51bb\u7ed3\u524d\u7f6e\u72b6\u6001&#xff0c;\u6267\u884c\u786e\u5b9a\u6b65\u9aa4&#xff0c;\u8bb0\u5f55\u671f\u671b\u8fc1\u79fb\u3001\u9519\u8bef\u7801\u3001\u8d44\u6e90\u91ca\u653e\u548c\u622a\u56fe\/\u65e5\u5fd7\u8bc1\u636e\u3002<\/li>\n<li>\u6298\u53e0\u6001\u5207\u6362&#xff1a;\u51bb\u7ed3\u524d\u7f6e\u72b6\u6001&#xff0c;\u6267\u884c\u786e\u5b9a\u6b65\u9aa4&#xff0c;\u8bb0\u5f55\u671f\u671b\u8fc1\u79fb\u3001\u9519\u8bef\u7801\u3001\u8d44\u6e90\u91ca\u653e\u548c\u622a\u56fe\/\u65e5\u5fd7\u8bc1\u636e\u3002<\/li>\n<li>\u4f1a\u8bdd\u91cd\u5efa&#xff1a;\u51bb\u7ed3\u524d\u7f6e\u72b6\u6001&#xff0c;\u6267\u884c\u786e\u5b9a\u6b65\u9aa4&#xff0c;\u8bb0\u5f55\u671f\u671b\u8fc1\u79fb\u3001\u9519\u8bef\u7801\u3001\u8d44\u6e90\u91ca\u653e\u548c\u622a\u56fe\/\u65e5\u5fd7\u8bc1\u636e\u3002<\/li>\n<\/ul>\n<p><span class=\"token keyword\">const<\/span> evidence <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  articleNo<span class=\"token operator\">:<\/span> <span class=\"token number\">79<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  kit<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;Camera Kit&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  release<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;26.0.0&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  buildId<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;replace-with-real-build-id&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  deviceModel<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;replace-with-real-device&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  scenarios<span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;\u5143\u6570\u636e\u7f3a\u5931&#034;<\/span><span class=\"token punctuation\">,<\/span><span class=\"token string\">&#034;\u672a\u77e5\u7c7b\u578b&#034;<\/span><span class=\"token punctuation\">,<\/span><span class=\"token string\">&#034;\u8fde\u62cd\u4e71\u5e8f&#034;<\/span><span class=\"token punctuation\">,<\/span><span class=\"token string\">&#034;\u6298\u53e0\u6001\u5207\u6362&#034;<\/span><span class=\"token punctuation\">,<\/span><span class=\"token string\">&#034;\u4f1a\u8bdd\u91cd\u5efa&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  status<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;PENDING_REAL_DEVICE&#039;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u9884\u89c8\u5668\u3001\u6a21\u62df\u5668\u3001\u4e91\u771f\u673a\u548c\u7269\u7406\u8bbe\u5907\u8bc1\u636e\u8981\u5206\u522b\u8bb0\u5f55\u3002\u6ca1\u6709\u771f\u5b9e\u8bbe\u5907\u8bc1\u636e\u65f6&#xff0c;\u53ea\u80fd\u8bf4\u6784\u5efa\u6216\u964d\u7ea7\u8def\u5f84\u901a\u8fc7&#xff0c;\u4e0d\u80fd\u5ba3\u79f0\u786c\u4ef6\u80fd\u529b\u5df2\u7ecf\u9a8c\u6536\u3002<\/p>\n<h3>\u5341\u4e09\u3001\u7070\u5ea6\u4e0e\u56de\u6eda\u95e8\u7981<\/h3>\n<p>\u7070\u5ea6\u7ef4\u5ea6\u5305\u62ec\u8bbe\u5907\u578b\u53f7\u3001\u7cfb\u7edf\u5c0f\u7248\u672c\u3001\u5730\u533a\u3001\u5e94\u7528\u7248\u672c\u548c\u4e1a\u52a1\u573a\u666f\u3002\u5f00\u5173\u9ed8\u8ba4\u5173\u95ed&#xff1b;\u5173\u952e\u9519\u8bef\u3001P99\u3001\u529f\u8017\u6216\u6e29\u5347\u8d8a\u7ebf\u5c31\u505c\u6b62\u6269\u5927&#xff0c;\u5e76\u80fd\u4e00\u952e\u56de\u9000\u7a33\u5b9a\u8def\u5f84\u3002<\/p>\n<p><span class=\"token keyword\">interface<\/span> <span class=\"token class-name\">RolloutGate<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  sampleSize<span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span><br \/>\n  successRate<span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span><br \/>\n  p99Ms<span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span><br \/>\n  criticalErrors<span class=\"token operator\">:<\/span> <span class=\"token builtin\">number<\/span><br \/>\n  rollbackReady<span class=\"token operator\">:<\/span> <span class=\"token builtin\">boolean<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">function<\/span> <span class=\"token function\">canExpand<\/span><span class=\"token punctuation\">(<\/span>gate<span class=\"token operator\">:<\/span> RolloutGate<span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">boolean<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token keyword\">return<\/span> gate<span class=\"token punctuation\">.<\/span>sampleSize <span class=\"token operator\">&gt;&#061;<\/span> <span class=\"token number\">500<\/span> <span class=\"token operator\">&amp;&amp;<\/span> gate<span class=\"token punctuation\">.<\/span>successRate <span class=\"token operator\">&gt;&#061;<\/span> <span class=\"token number\">0.98<\/span> <span class=\"token operator\">&amp;&amp;<\/span><br \/>\n    gate<span class=\"token punctuation\">.<\/span>criticalErrors <span class=\"token operator\">&#061;&#061;&#061;<\/span> <span class=\"token number\">0<\/span> <span class=\"token operator\">&amp;&amp;<\/span> gate<span class=\"token punctuation\">.<\/span>rollbackReady<br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u4e0a\u7ebf\u8bf4\u660e\u5199\u6e05\u5df2\u9a8c\u8bc1\u8303\u56f4\u3001\u672a\u9a8c\u8bc1\u8bbe\u5907\u3001\u7248\u672c\u8fb9\u754c\u3001\u964d\u7ea7\u5165\u53e3\u548c\u8d23\u4efb\u4eba\u3002\u6240\u6709\u6570\u636e\u7ed1\u5b9a buildId&#xff0c;\u907f\u514d\u4e0d\u540c\u7248\u672c\u6837\u672c\u6df7\u7b97\u3002<\/p>\n<h3>\u5341\u56db\u3001\u4e0a\u7ebf\u68c0\u67e5\u6e05\u5355<\/h3>\n<ul>\n<li>\u5df2\u56fa\u5b9a 26.0.0 SDK\u3001IDE\u3001\u6784\u5efa\u548c\u8bbe\u5907\u4fe1\u606f&#xff1b;<\/li>\n<li>\u5df2\u6838\u5bf9 Camera Kit \u5f53\u524d d.ts\/\u5934\u6587\u4ef6\u3001\u6743\u9650\u4e0e\u7cfb\u7edf\u80fd\u529b&#xff1b;<\/li>\n<li>\u9875\u9762\u53ea\u4f9d\u8d56 CameraMetadataPacket \u9886\u57df\u5951\u7ea6&#xff1b;<\/li>\n<li>\u72b6\u6001\u673a\u8986\u76d6\u53d6\u6d88\u3001\u8d85\u65f6\u3001\u4e71\u5e8f\u3001\u91cd\u8bd5\u548c\u7ec8\u6001&#xff1b;<\/li>\n<li>\u89e3\u6790\u76f8\u673a\u6269\u5c55\u5143\u6570\u636e\u5e76\u4e0e\u5bf9\u5e94\u7167\u7247\u6216\u89c6\u9891\u5e27\u7ed1\u5b9a \u4f7f\u7528\u7a33\u5b9a requestId \u4e0e revision&#xff1b;<\/li>\n<li>\u654f\u611f\u539f\u59cb\u6570\u636e\u672a\u8fdb\u5165\u666e\u901a\u65e5\u5fd7\u548c\u57cb\u70b9&#xff1b;<\/li>\n<li>\u6307\u6807 camera_metadata_match_rate \u5305\u542b P50\/P90\/P99 \u4e0e\u5931\u8d25\u6837\u672c&#xff1b;<\/li>\n<li>\u4e3b\u80fd\u529b\u4e0d\u53ef\u7528\u65f6\u6709\u53ef\u7406\u89e3\u3001\u53ef\u6062\u590d\u7684\u964d\u7ea7&#xff1b;<\/li>\n<li>\u81ea\u52a8\u5316\u3001\u6a21\u62df\u73af\u5883\u548c\u771f\u673a\u8bc1\u636e\u5206\u522b\u5f52\u6863&#xff1b;<\/li>\n<li>\u7070\u5ea6\u5f00\u5173\u3001\u76d1\u63a7\u9608\u503c\u548c\u56de\u6eda\u8d1f\u8d23\u4eba\u5df2\u7ecf\u660e\u786e\u3002<\/li>\n<\/ul>\n<h3>\u7ed3\u8bed<\/h3>\n<p>\u6269\u5c55\u5143\u6570\u636e\u5bf9\u8c61&#xff1a;\u80fd\u529b\u67e5\u8be2\u4e0e\u5e27\u5173\u8054 \u7684\u771f\u6b63\u96be\u70b9\u4e0d\u5728\u8c03\u7528\u63a5\u53e3&#xff0c;\u800c\u5728\u8ba9\u80fd\u529b\u5728\u771f\u5b9e\u751f\u547d\u5468\u671f\u4e2d\u4fdd\u6301\u6b63\u786e\u3002\u56f4\u7ed5\u201c\u4e13\u4e1a\u76f8\u673a\u5e94\u7528\u9700\u8981\u6d88\u8d39\u5382\u5546\u6216\u7b97\u6cd5\u6269\u5c55\u7684\u5143\u6570\u636e\u8f85\u52a9\u66dd\u5149\u4e0e\u8d28\u91cf\u8bca\u65ad\u201d\u5efa\u7acb\u80fd\u529b\u95e8\u7981\u3001\u9886\u57df\u9694\u79bb\u3001\u5e42\u7b49\u72b6\u6001\u673a\u3001\u8d44\u6e90\u91ca\u653e\u3001\u9690\u79c1\u6700\u5c0f\u5316\u548c\u8bc1\u636e\u5316\u9a8c\u6536&#xff0c;\u624d\u80fd\u628a HarmonyOS 7 \u65b0\u80fd\u529b\u4ece\u6f14\u793a\u63a8\u8fdb\u5230\u53ef\u7ef4\u62a4\u3001\u53ef\u56de\u6eda\u3001\u53ef\u4ea4\u4ed8\u7684\u4ea7\u54c1\u3002<\/p>\n<h3>\u5b98\u65b9\u53c2\u8003<\/h3>\n<ul>\n<li>HarmonyOS 7&#xff08;26.0.0&#xff09;\u65b0\u589e\u548c\u589e\u5f3a\u7279\u6027&#xff1a;https:\/\/developer.huawei.com\/consumer\/cn\/doc\/doccenter-release-notes\/os-new-feature-2600<\/li>\n<li>HarmonyOS 7&#xff08;26.0.0&#xff09;API \u53d8\u66f4\u6e05\u5355&#xff1a;https:\/\/developer.huawei.com\/consumer\/cn\/doc\/doccenter-release-notes\/apidiff<\/li>\n<li>HarmonyOS SDK \u80fd\u529b\u76ee\u5f55&#xff1a;https:\/\/developer.huawei.com\/consumer\/cn\/sdk\/<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260915092434-6aa90ed24bbfa.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260915092435-6aa90ed362888.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260915092435-6aa90ed3e13e6.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>HarmonyOS 7 \u5df2\u8fdb\u5165 26.0.0 Release \u9636\u6bb5\u3002Camera Kit \u7684\u672c\u6b21\u80fd\u529b\u9002\u5408\u89e3\u51b3\u201c\u4e13\u4e1a\u76f8\u673a\u5e94\u7528\u9700\u8981\u6d88\u8d39\u5382\u5546\u6216\u7b97\u6cd5\u6269\u5c55\u7684\u5143\u6570\u636e\u8f85\u52a9\u66dd\u5149\u4e0e\u8d28\u91cf\u8bca\u65ad\u201d\u8fd9\u4e00\u7c7b\u771f\u5b9e\u95ee\u9898&#xff0c;\u4f46\u9ad8\u8d28\u91cf\u63a5\u5165\u7edd\u4e0d\u662f\u590d\u5236\u4e00\u6bb5 API \u8c03\u7528&#xff1a;\u8fd8\u8981\u8865\u9f50\u80fd\u529b\u95e8\u7981\u3001\u9886\u57df\u5951\u7ea6\u3001\u72b6\u6001\u673a\u3001\u5f02\u5e38\u6062\u590d\u3001\u5b89\u5168\u9690\u79c1\u3001\u6027\u80fd\u9884\u7b97\u4e0e\u771f\u673a\u9a8c\u6536\u3002<br \/>\n\u672c\u6587\u56f4\u7ed5 \u6269\u5c55\u5143\u6570\u636e\u5bf9\u8c61&#xff1a;\u80fd\u529b\u67e5\u8be2\u4e0e\u5e27\u5173\u8054 \u7ed9\u51fa\u4e00\u5957\u5de5\u7a0b\u5316\u65b9\u6848\u3002\u4ee3\u7801\u4ee5\u5e94\u7528\u5c42\u62bd\u8c61\u4e3a\u4e3b&#xff0c;\u771f\u5b9e\u7cfb\u7edf\u63a5\u53e3\u540d\u79f0\u3001\u679a\u4e3e\u548c\u503c\u57df\u5fc5<\/p>\n","protected":false},"author":2,"featured_media":105597,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[280,67,5557],"topic":[],"class_list":["post-105600","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-harmonyos","tag-67","tag-5557"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>HarmonyOS 7 \u65b0\u7279\u6027\uff08\u4e03\u5341\u4e5d\uff09\uff5c\u6269\u5c55\u5143\u6570\u636e\u5bf9\u8c61\uff1a\u80fd\u529b\u67e5\u8be2\u4e0e\u5e27\u5173\u8054 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/105600.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HarmonyOS 7 \u65b0\u7279\u6027\uff08\u4e03\u5341\u4e5d\uff09\uff5c\u6269\u5c55\u5143\u6570\u636e\u5bf9\u8c61\uff1a\u80fd\u529b\u67e5\u8be2\u4e0e\u5e27\u5173\u8054 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"HarmonyOS 7 \u5df2\u8fdb\u5165 26.0.0 Release \u9636\u6bb5\u3002Camera Kit \u7684\u672c\u6b21\u80fd\u529b\u9002\u5408\u89e3\u51b3\u201c\u4e13\u4e1a\u76f8\u673a\u5e94\u7528\u9700\u8981\u6d88\u8d39\u5382\u5546\u6216\u7b97\u6cd5\u6269\u5c55\u7684\u5143\u6570\u636e\u8f85\u52a9\u66dd\u5149\u4e0e\u8d28\u91cf\u8bca\u65ad\u201d\u8fd9\u4e00\u7c7b\u771f\u5b9e\u95ee\u9898&#xff0c;\u4f46\u9ad8\u8d28\u91cf\u63a5\u5165\u7edd\u4e0d\u662f\u590d\u5236\u4e00\u6bb5 API \u8c03\u7528&#xff1a;\u8fd8\u8981\u8865\u9f50\u80fd\u529b\u95e8\u7981\u3001\u9886\u57df\u5951\u7ea6\u3001\u72b6\u6001\u673a\u3001\u5f02\u5e38\u6062\u590d\u3001\u5b89\u5168\u9690\u79c1\u3001\u6027\u80fd\u9884\u7b97\u4e0e\u771f\u673a\u9a8c\u6536\u3002 \u672c\u6587\u56f4\u7ed5 \u6269\u5c55\u5143\u6570\u636e\u5bf9\u8c61&#xff1a;\u80fd\u529b\u67e5\u8be2\u4e0e\u5e27\u5173\u8054 \u7ed9\u51fa\u4e00\u5957\u5de5\u7a0b\u5316\u65b9\u6848\u3002\u4ee3\u7801\u4ee5\u5e94\u7528\u5c42\u62bd\u8c61\u4e3a\u4e3b&#xff0c;\u771f\u5b9e\u7cfb\u7edf\u63a5\u53e3\u540d\u79f0\u3001\u679a\u4e3e\u548c\u503c\u57df\u5fc5\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/105600.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-15T09:24:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260915092434-6aa90ed24bbfa.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/105600.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/105600.html\",\"name\":\"HarmonyOS 7 \u65b0\u7279\u6027\uff08\u4e03\u5341\u4e5d\uff09\uff5c\u6269\u5c55\u5143\u6570\u636e\u5bf9\u8c61\uff1a\u80fd\u529b\u67e5\u8be2\u4e0e\u5e27\u5173\u8054 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-15T09:24:37+00:00\",\"dateModified\":\"2026-09-15T09:24:37+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/105600.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/105600.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/105600.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HarmonyOS 7 \u65b0\u7279\u6027\uff08\u4e03\u5341\u4e5d\uff09\uff5c\u6269\u5c55\u5143\u6570\u636e\u5bf9\u8c61\uff1a\u80fd\u529b\u67e5\u8be2\u4e0e\u5e27\u5173\u8054\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HarmonyOS 7 \u65b0\u7279\u6027\uff08\u4e03\u5341\u4e5d\uff09\uff5c\u6269\u5c55\u5143\u6570\u636e\u5bf9\u8c61\uff1a\u80fd\u529b\u67e5\u8be2\u4e0e\u5e27\u5173\u8054 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/105600.html","og_locale":"zh_CN","og_type":"article","og_title":"HarmonyOS 7 \u65b0\u7279\u6027\uff08\u4e03\u5341\u4e5d\uff09\uff5c\u6269\u5c55\u5143\u6570\u636e\u5bf9\u8c61\uff1a\u80fd\u529b\u67e5\u8be2\u4e0e\u5e27\u5173\u8054 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"HarmonyOS 7 \u5df2\u8fdb\u5165 26.0.0 Release \u9636\u6bb5\u3002Camera Kit \u7684\u672c\u6b21\u80fd\u529b\u9002\u5408\u89e3\u51b3\u201c\u4e13\u4e1a\u76f8\u673a\u5e94\u7528\u9700\u8981\u6d88\u8d39\u5382\u5546\u6216\u7b97\u6cd5\u6269\u5c55\u7684\u5143\u6570\u636e\u8f85\u52a9\u66dd\u5149\u4e0e\u8d28\u91cf\u8bca\u65ad\u201d\u8fd9\u4e00\u7c7b\u771f\u5b9e\u95ee\u9898&#xff0c;\u4f46\u9ad8\u8d28\u91cf\u63a5\u5165\u7edd\u4e0d\u662f\u590d\u5236\u4e00\u6bb5 API \u8c03\u7528&#xff1a;\u8fd8\u8981\u8865\u9f50\u80fd\u529b\u95e8\u7981\u3001\u9886\u57df\u5951\u7ea6\u3001\u72b6\u6001\u673a\u3001\u5f02\u5e38\u6062\u590d\u3001\u5b89\u5168\u9690\u79c1\u3001\u6027\u80fd\u9884\u7b97\u4e0e\u771f\u673a\u9a8c\u6536\u3002 \u672c\u6587\u56f4\u7ed5 \u6269\u5c55\u5143\u6570\u636e\u5bf9\u8c61&#xff1a;\u80fd\u529b\u67e5\u8be2\u4e0e\u5e27\u5173\u8054 \u7ed9\u51fa\u4e00\u5957\u5de5\u7a0b\u5316\u65b9\u6848\u3002\u4ee3\u7801\u4ee5\u5e94\u7528\u5c42\u62bd\u8c61\u4e3a\u4e3b&#xff0c;\u771f\u5b9e\u7cfb\u7edf\u63a5\u53e3\u540d\u79f0\u3001\u679a\u4e3e\u548c\u503c\u57df\u5fc5","og_url":"https:\/\/www.wsisp.com\/helps\/105600.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-15T09:24:37+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260915092434-6aa90ed24bbfa.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/105600.html","url":"https:\/\/www.wsisp.com\/helps\/105600.html","name":"HarmonyOS 7 \u65b0\u7279\u6027\uff08\u4e03\u5341\u4e5d\uff09\uff5c\u6269\u5c55\u5143\u6570\u636e\u5bf9\u8c61\uff1a\u80fd\u529b\u67e5\u8be2\u4e0e\u5e27\u5173\u8054 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-15T09:24:37+00:00","dateModified":"2026-09-15T09:24:37+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/105600.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/105600.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/105600.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"HarmonyOS 7 \u65b0\u7279\u6027\uff08\u4e03\u5341\u4e5d\uff09\uff5c\u6269\u5c55\u5143\u6570\u636e\u5bf9\u8c61\uff1a\u80fd\u529b\u67e5\u8be2\u4e0e\u5e27\u5173\u8054"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/105600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=105600"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/105600\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/105597"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=105600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=105600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=105600"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=105600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}