{"id":910,"date":"2015-07-23T11:36:07","date_gmt":"2015-07-23T03:36:07","guid":{"rendered":"https:\/\/ai.zhousir.top\/?p=910"},"modified":"2015-07-23T11:47:41","modified_gmt":"2015-07-23T03:47:41","slug":"android%e9%80%9a%e7%9f%a5notification","status":"publish","type":"post","link":"https:\/\/ai.zhousir.top\/?p=910","title":{"rendered":"Android\u901a\u77e5Notification"},"content":{"rendered":"<p>Notification\u662f\u4e00\u79cd\u5728\u4f60APP\u5e38\u89c4UI\u5916\u7528\u6765\u6307\u793a\u67d0\u4e2a\u4e8b\u4ef6\u53d1\u751f\u7684\u7528\u6237\u4ea4\u4e92\u5143\u7d20\u3002\u7528\u6237\u53ef\u4ee5\u5728\u4f7f\u7528\u5176\u5b83apps\u65f6\u67e5\u770bnotification\uff0c\u5e76\u5728\u65b9\u4fbf\u7684\u65f6\u5019\u505a\u51fa\u56de\u5e94\u3002<br \/>\n\u8fd9\u91cc\u6211\u4eec\u6765\u4e00\u8d77\u5b66\u4e60\u901a\u77e5\u76f8\u5173\u77e5\u8bc6<br \/>\n<!--more--><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-914\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/07\/QQ\u255c\u256a\u2550\u255d20150723114003.png\" alt=\"QQ\u255c\u256a\u2550\u255d20150723114003\" width=\"349\" height=\"62\" \/><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-915\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/07\/QQ\u255c\u256a\u2550\u255d20150723113938.png\" alt=\"QQ\u255c\u256a\u2550\u255d20150723113938\" width=\"348\" height=\"106\" \/><br \/>\n<strong>\u5efa\u7acb\u4e00\u4e2aNotification<\/strong><br \/>\n\u5b66\u4e60\u5982\u4f55\u521b\u5efa\u4e00\u4e2anotification Builder\uff0c\u8bbe\u7f6e\u9700\u8981\u7684\u7279\u5f81\uff0c\u4ee5\u53ca\u53d1\u5e03notification\u3002<\/p>\n<p>[java]<br \/>\nNotificationCompat.Builder builder = new NotificationCompat.Builder(this);<br \/>\n\/\/\u8bbe\u7f6eUI\u754c\u9762\u7279\u5f81<br \/>\nbuilder.setSmallIcon(R.drawable.m4);   \/\/\u901a\u77e5\u56fe\u6807<br \/>\nbuilder.setContentTitle(&quot;\u901a\u77e5\u6807\u9898&quot;);<br \/>\nbuilder.setContentText(&quot;1\u6761\u65b0\u6d88\u606f&quot;);   \/\/\u901a\u77e5\u5185\u5bb9<br \/>\nbuilder.setTicker(&quot;\u6536\u52301\u6761\u65b0\u6d88\u606f&quot;);    \/\/\u521a\u6536\u5230\u901a\u77e5\u65f6\u63d0\u793a<br \/>\nbuilder.setNumber(1);                 \/\/\u6d88\u606f\u4e2a\u6570<br \/>\nbuilder.setAutoCancel(true);          \/\/ \u70b9\u51fb\u53d6\u6d88\u901a\u77e5<br \/>\nbuilder.setDefaults(Notification.DEFAULT_ALL);\/\/ requires VIBRATE permission<br \/>\nbuilder.setWhen(System.currentTimeMillis());<br \/>\nbuilder.setSound(uri);               \/\/\u901a\u77e5\u58f0\u97f3<\/p>\n<p>\/\/\u8bbe\u7f6e\u884c\u4e3a\u7279\u5f81<br \/>\nIntent intent = new Intent(this, BaseActivity.class);<br \/>\nPendingIntent pendingIntent = PendingIntent.getActivity(this, 0,intent, PendingIntent.FLAG_UPDATE_CURRENT);<br \/>\nbuilder.setContentIntent(pendingIntent);  \/\/\u901a\u77e5\u70b9\u51fb\u884c\u4e3a<\/p>\n<p>NotificationManager mNotifyManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);<br \/>\nNotification notification = mBuilder.build();<br \/>\nint notificationId = 10;          \/\/\u80fd\u77e5ID,\u552f\u4e00\u6807\u8bc6\u5f53\u524d\u901a\u77e5<br \/>\n\/\/\u53d1\u5e03\u901a\u77e5<br \/>\nmNotifyManager.notify(notificationId, notification); <\/p>\n<p>[\/java]<\/p>\n<p>\u6ce8: pendingIntent\u5b57\u9762\u610f\u4e49\uff1a\u7b49\u5f85\u7684\uff0c\u672a\u51b3\u5b9a\u7684Intent\u3002<br \/>\n\u8981\u5f97\u5230\u4e00\u4e2apendingIntent\u5bf9\u8c61\uff0c\u4f7f\u7528\u65b9\u6cd5\u7c7b\u7684\u9759\u6001\u65b9\u6cd5 getActivity(Context, int, Intent, int),getBroadcast(Context, int, Intent, int),getService(Context, int, Intent, int) \u5206\u522b\u5bf9\u5e94\u7740Intent\u76843\u4e2a\u884c\u4e3a\uff0c\u8df3\u8f6c\u5230\u4e00\u4e2aactivity\u7ec4\u4ef6\u3001\u6253\u5f00\u4e00\u4e2a\u5e7f\u64ad\u7ec4\u4ef6\u548c\u6253\u5f00\u4e00\u4e2a\u670d\u52a1\u7ec4\u4ef6\u3002<br \/>\n\u53ef\u4ee5\u770b\u5230\uff0c\u8981\u5f97\u5230\u8fd9\u4e2a\u5bf9\u8c61\uff0c\u5fc5\u987b\u4f20\u5165\u4e00\u4e2aIntent\u4f5c\u4e3a\u53c2\u6570\uff0c\u5fc5\u987b\u6709context\u4f5c\u4e3a\u53c2\u6570\u3002<\/p>\n<p><strong>\u66f4\u65b0notifications<\/strong><\/p>\n<p>\u5b66\u4e60\u5982\u4f55\u66f4\u65b0\u4e0e\u79fb\u9664notifications<br \/>\n\u60f3\u8981\u8bbe\u7f6e\u4e00\u4e2a\u53ef\u4ee5\u88ab\u66f4\u65b0\u7684Notification\uff0c\u9700\u8981\u5728\u53d1\u5e03\u5b83\u7684\u65f6\u5019\u8c03\u7528NotificationManager.notify(ID, notification))\u65b9\u6cd5\u4e3a\u5b83\u6307\u5b9a\u4e00\u4e2anotification ID\u3002\u66f4\u65b0\u4e00\u4e2a\u5df2\u7ecf\u53d1\u5e03\u7684Notification\uff0c\u9700\u8981\u66f4\u65b0\u6216\u8005\u521b\u5efa\u4e00\u4e2aNotificationCompat.Builder\u5bf9\u8c61\uff0c\u5e76\u4ece\u8fd9\u4e2a\u5bf9\u8c61\u521b\u5efa\u4e00\u4e2aNotification\u5bf9\u8c61\uff0c\u7136\u540e\u7528\u4e0e\u5148\u524d\u4e00\u6837\u7684ID\u53bb\u53d1\u5e03\u8fd9\u4e2aNotification\u3002<\/p>\n<p>\u79fb\u9664Notification<br \/>\n\u4f60\u5728\u521b\u5efanotification\u65f6\u8c03\u7528\u4e86 setAutoCancel(true)\u70b9\u51fb\u901a\u77e5\u65f6\u79fb\u9664<br \/>\n\u6267\u884ccancel(notificationId)\u6216cancelAll()<\/p>\n<p><strong>\u5f53Activity\u542f\u52a8\u65f6\u4fdd\u7559\u5bfc\u822a<\/strong><\/p>\n<p>\u5b66\u4e60\u5982\u4f55\u4e3a\u4e00\u4e2a\u4ecenotification\u542f\u52a8\u7684Activity\u6267\u884c\u9002\u5f53\u7684\u5bfc\u822a\u3002<\/p>\n<p>\u901a\u77e5\u542f\u52a8\u7684\u662f\u4f60application\u5de5\u4f5c\u6d41\u4e2d\u7684\u4e00\u90e8\u5206Activity\u3002<br \/>\n\u6b65\u9aa4\uff1a<br \/>\n1 \u5728manifest\u4e2d\u5b9a\u4e49\u4f60application\u7684Activity\u5c42\u6b21\uff0c\u6700\u7ec8\u7684manifest\u6587\u4ef6\u5e94\u8be5\u50cf\u8fd9\u4e2a\uff1a<\/p>\n<p>[java]<br \/>\n&lt;activity<br \/>\n\u00a0\u00a0\u00a0 android:name=&quot;.MainActivity&quot;<br \/>\n\u00a0\u00a0\u00a0 android:label=&quot;@string\/app_name&quot; &gt;<br \/>\n\u00a0\u00a0\u00a0 &lt;intent-filter&gt;<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;action android:name=&quot;android.intent.action.MAIN&quot; \/&gt;<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; \/&gt;<br \/>\n\u00a0\u00a0\u00a0 &lt;\/intent-filter&gt;<br \/>\n&lt;\/activity&gt;<br \/>\n&lt;activity<br \/>\n\u00a0\u00a0\u00a0 android:name=&quot;.ResultActivity&quot;<br \/>\n\u00a0\u00a0\u00a0\u00a0android:parentActivityName=&quot;.MainActivity&quot;&gt;<br \/>\n\u00a0\u00a0\u00a0 &lt;meta-data<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 android:name=&quot;android.support.PARENT_ACTIVITY&quot;<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 android:value=&quot;.MainActivity&quot;\/&gt;<br \/>\n&lt;\/activity&gt;[\/java]<\/p>\n<p>2 \u5728\u57fa\u4e8e\u542f\u52a8Activity\u7684Intent\u4e2d\u521b\u5efa\u4e00\u4e2a\u8fd4\u56de\u6808\uff0c\u6bd4\u5982\uff1a<\/p>\n<p>[java]<br \/>\nint id = 1;<br \/>\n&#8230;<br \/>\nIntent resultIntent = new Intent(this, ResultActivity.class);<br \/>\nTaskStackBuilder stackBuilder = TaskStackBuilder.create(this);<br \/>\n\/\/ Adds the back stack<br \/>\nstackBuilder.addParentStack(ResultActivity.class);<br \/>\n\/\/ Adds the Intent to the top of the stack<br \/>\nstackBuilder.addNextIntent(resultIntent);<br \/>\n\/\/ Gets a PendingIntent containing the entire back stack<br \/>\nPendingIntent resultPendingIntent =<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);<br \/>\n&#8230;<br \/>\nNotificationCompat.Builder builder = new NotificationCompat.Builder(this);<br \/>\nbuilder.setContentIntent(resultPendingIntent);<br \/>\nNotificationManager mNotificationManager =<br \/>\n\u00a0\u00a0\u00a0     (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);<br \/>\nmNotificationManager.notify(id, builder.build());<br \/>\n[\/java]<\/p>\n<p><strong>\u5728notification\u4e2d\u5c55\u793a\u8fdb\u5ea6<\/strong><\/p>\n<p>\u5b66\u4e60\u5728notification\u4e2d\u663e\u793a\u67d0\u4e2a\u64cd\u4f5c\u7684\u8fdb\u5ea6\uff0c\u65e2\u53ef\u4ee5\u7528\u4e8e\u90a3\u4e9b\u4f60\u53ef\u4ee5\u4f30\u7b97\u5df2\u7ecf\u5b8c\u6210\u591a\u5c11\uff08\u786e\u5b9a\u8fdb\u5ea6\uff0cdeterminate\uff09\u7684\u64cd\u4f5c\uff0c\u4e5f\u53ef\u4ee5\u7528\u4e8e\u90a3\u4e9b\u4f60\u65e0\u6cd5\u77e5\u9053\u5b8c\u6210\u4e86\u591a\u5c11\uff08\u4e0d\u786e\u5b9a\u8fdb\u5ea6\uff0cindefinite \uff09\u7684\u64cd\u4f5c<\/p>\n<p>\u5c55\u793a\u56fa\u5b9a\u957f\u5ea6\u7684\u8fdb\u5ea6\u6307\u793a\u5668<br \/>\n\u8c03\u7528NotificationCompat.Builder \u7684setProgress(max, progress, false))\u65b9\u6cd5\u5c06\u8fdb\u5ea6\u6761\u6dfb\u52a0\u8fdbnotification\uff0c<br \/>\n\u8c03\u7528setProgress(0, 0, false))\u65b9\u6cd5\u79fb\u9664\u8fdb\u5ea6\u6761\uff0c<br \/>\n\u663e\u793a\u8fdb\u5ea6\u9700\u4e0d\u4f46\u6539\u53d8progress\u503c\uff0c\u540c\u65f6\u66f4\u65b0\u901a\u77e5<br \/>\n\u6bd4\u5982\uff1a<\/p>\n<p>[java]int id = 1;<br \/>\n&#8230;<br \/>\nmNotifyManager =<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);<br \/>\nmBuilder = new NotificationCompat.Builder(this);<br \/>\nmBuilder.setContentTitle(&quot;Picture Download&quot;)<br \/>\n\u00a0\u00a0\u00a0 .setContentText(&quot;Download in progress&quot;)<br \/>\n\u00a0\u00a0\u00a0 .setSmallIcon(R.drawable.ic_notification);<br \/>\n\/\/ Start a lengthy operation in a background thread<br \/>\nnew Thread(<br \/>\n\u00a0\u00a0\u00a0 new Runnable() {<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 @Override<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 public void run() {<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 int incr;<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ Do the &quot;lengthy&quot; operation 20 times<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 for (incr = 0; incr &lt;= 100; incr+=5) {<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ Sets the progress indicator to a max value, the<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ current completion percentage, and &quot;determinate&quot;<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ state<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 mBuilder.setProgress(100, incr, false);<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ Displays the progress bar for the first time.<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 mNotifyManager.notify(id, mBuilder.build());<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ Sleeps the thread, simulating an operation<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ that takes time<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 try {<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ Sleep for 5 seconds<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Thread.sleep(5*1000);<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 } catch (InterruptedException e) {<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Log.d(TAG, &quot;sleep failure&quot;);<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ When the loop is finished, updates the notification<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 mBuilder.setContentText(&quot;Download complete&quot;)<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ Removes the progress bar<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 .setProgress(0,0,false);<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 mNotifyManager.notify(id, mBuilder.build());<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<br \/>\n\u00a0\u00a0\u00a0 }<br \/>\n\/\/ Starts the thread by calling the run() method in its Runnable<br \/>\n).start();[\/java]<\/p>\n<p><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/07\/pregress_notifiy.jpeg\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-911\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/07\/pregress_notifiy.jpeg\" alt=\"pregress_notifiy\" width=\"518\" height=\"84\" \/><\/a><\/p>\n<p><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/07\/progress_notification2.jpeg\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-912\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/07\/progress_notification2.jpeg\" alt=\"progress_notification2\" width=\"300\" height=\"99\" \/><\/a><\/p>\n<p><strong>\u521b\u5efa\u4e00\u4e2a\u81ea\u5b9a\u4e49Notification<\/strong><\/p>\n<p>[java]<br \/>\nNotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this);<br \/>\nmBuilder.setSmallIcon(R.drawable.m8);<br \/>\nmBuilder.setTicker(&quot;\u81ea\u5b9a\u4e49\u901a\u77e5\uff0c\u4f60\u6709\u65b0\u6d88\u606f&quot;);<br \/>\nmBuilder.setAutoCancel(true);<\/p>\n<p>\/\/ &#8212;&#8212;\u81ea\u5b9a\u4e49notification\u754c\u9762<br \/>\nRemoteViews view = new RemoteViews(getPackageName(),R.layout.view_notificaction_layout);<br \/>\nmBuilder.setContent(view);<\/p>\n<p>\/\/ &#8212;-\u81ea\u5b9a\u4e49notification\u4e8b\u4ef6\u5904\u7406<br \/>\nIntent intent = new Intent(this, RadioTabActivity.class);<br \/>\nPendingIntent pendingIntent = PendingIntent.getActivity(this, 01,intent, PendingIntent.FLAG_UPDATE_CURRENT);<br \/>\nview.setOnClickPendingIntent(R.id.player_notification, pendingIntent);<\/p>\n<p>Notification notification = mBuilder.build();<br \/>\nint notificationId = 29;<\/p>\n<p>NotificationManager mNotifyManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);<br \/>\nmNotifyManager.notify(notificationId, notification); \u00a0<br \/>\n[\/java]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Notification\u662f\u4e00\u79cd\u5728\u4f60APP\u5e38\u89c4UI\u5916\u7528\u6765\u6307\u793a\u67d0\u4e2a\u4e8b\u4ef6\u53d1\u751f\u7684\u7528\u6237\u4ea4\u4e92\u5143\u7d20\u3002\u7528\u6237\u53ef\u4ee5\u5728\u4f7f\u7528\u5176\u5b83app [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[65],"tags":[],"_links":{"self":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/910"}],"collection":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=910"}],"version-history":[{"count":4,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/910\/revisions"}],"predecessor-version":[{"id":918,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/910\/revisions\/918"}],"wp:attachment":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}