{"id":1761,"date":"2023-03-26T21:40:33","date_gmt":"2023-03-26T13:40:33","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1761"},"modified":"2023-04-23T21:24:50","modified_gmt":"2023-04-23T13:24:50","slug":"umeng-push-api-access-records","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/26\/umeng-push-api-access-records\/","title":{"rendered":"\u53cb\u76df\u63a8\u9001API\u63a5\u5165\u91c7\u5751\u8bb0\u5f55"},"content":{"rendered":"<h2>\u6d88\u606f\u8fc7\u671f\u65f6\u95f4<\/h2>\n<p>\u6d88\u606f\u8fc7\u671f\u65f6\u95f4\uff0c\u5176\u503c\u4e0d\u53ef\u5c0f\u4e8e\u53d1\u9001\u65f6\u95f4\u6216\u8005start_time\uff0c\u5426\u5219HTTP\u8bf7\u6c42\u8fd4\u56de400<\/p>\n<p>\u5982\u679c\u670d\u52a1\u5668\u65f6\u533a\u662fUTC\u65f6\u533a\u6216\u5176\u5b83\u975e\u5317\u4eac\u65f6\u533a\uff0c\u9700\u8981\u6ce8\u610f\u65f6\u533a\u5904\u7406<\/p>\n<p><!-- more --><\/p>\n<pre><code class=\"language-java\">private AndroidPolicy getAndroidPolicy(String outBizNo) {\n    AndroidPolicy policy = new AndroidPolicy();\n    DateTimeFormatter formatter = DateTimeFormatter.ofPattern(&quot;yyyy-MM-dd HH:mm:ss&quot;);\n    LocalDateTime localDateTime = LocalDateTime.now(ZoneId.of(&quot;UTC+8&quot;));\n    LocalDateTime dueDateTime = localDateTime.plus(1, ChronoUnit.HOURS);\n    policy.setExpireTime(dueDateTime.format(formatter));\n    policy.setOutBizNo(outBizNo);\n    return policy;\n}<\/code><\/pre>\n<h2>production_mode<\/h2>\n<p>\u5728iOS\u4e2d\u5982\u679c\u8bbe\u7f6e\u5b57\u7b26\u4e32<code>&quot;true&quot;\/&quot;false&quot;<\/code>\u503c\u53d1\u9001\u4e0d\u6210\u529f\uff0c\u90a3\u4e48\u4f7f\u7528Boolean\u7c7b\u578b<code>true\/false<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6d88\u606f\u8fc7\u671f\u65f6\u95f4 \u6d88\u606f\u8fc7\u671f\u65f6\u95f4\uff0c\u5176\u503c\u4e0d\u53ef\u5c0f\u4e8e\u53d1\u9001\u65f6\u95f4\u6216\u8005start_time\uff0c\u5426\u5219HTTP\u8bf7\u6c42\u8fd4\u56de400 \u5982\u679c\u670d\u52a1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[97],"tags":[322],"class_list":["post-1761","post","type-post","status-publish","format-standard","hentry","category-tools-skills","tag-322"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1761"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1761\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}