docs: 补充基建排班协议中period字段不存在时的计划切换动作 (#6998)

This commit is contained in:
status102
2023-10-19 10:56:37 +08:00
committed by GitHub
parent 95940c2aa0
commit df8d7b7a7b
5 changed files with 7 additions and 2 deletions

View File

@@ -24,6 +24,7 @@ icon: material-symbols:view-quilt-rounded
"description_post": "", // 计划执行完时显示的描述,可选
"period": [ // 换班时间段,可选
// 若当前时间在该区间内,则自动选择该计划(整个 json 文件中可能包含多个计划)
// 如果该字段不存在,则每次换班结束后,自动切换为下一个计划
// core 不处理该字段,若您使用接口集成 maa请自行实现该逻辑
[
"22:00", // 要求格式 hh:mm目前只是简单的比较数字大小如果要跨天请仿照该示例中写法

View File

@@ -20,7 +20,8 @@ Usage and Field Description for `resource/custom_infrast/*.json` files
"description": "lol", // Plan description, optional
"description_post": "", // The description to display after executing the plan, optional
"period": [ // Shift change period, optional
// // If the current time is within this interval, the plan will be automatically selected (there may be multiple plans in the entire JSON file)
// If the current time is within this interval, the plan will be automatically selected (there may be multiple plans in the entire JSON file)
// If this field does not exist, it will automatically switch to the next plan after each running.
// Core does not process this field. If you are using interface integration with MAA, please implement this logic on your own
[
"22:00", // In the format of hh:mm, currently only simple numerical comparison is used. If it crosses midnight, please refer to the example in this file

View File

@@ -16,6 +16,7 @@
"description": "lol", // 説明,オプション
"period": [ // シフト時間の間隔,オプション
// 現在時刻がこの間隔内にある場合、プランが自動的に選択されます (jsonファイル全体が複数のプランを含む場合もあります)
// このフィールドが存在しない場合は、実行のたびに自動的に次のプランに切り替わります。
// core ではこのフィールドを扱わないので、maa を統合するためにインターフェイスを使用する場合は、このロジックを自分で実装してください。
[
"22:00", // 必須 記述のフォーマットは hh:mm 日をまたぐ場合はこの例のように記述してください。

View File

@@ -20,7 +20,8 @@
"description": "lol", // 계획 설명, 선택 사항
"description_post": "", // 계획 실행 후에 표시할 설명, 선택 사항
"period": [ // 교대 기간, 선택 사항
// // 현재 시간이 이 범위 안에 있는 경우, 계획은 자동으로 선택됩니다 (전체 JSON 파일에 여러 계획이 있을 수 있음)
// 현재 시간이 이 범위 안에 있는 경우, 계획은 자동으로 선택됩니다 (전체 JSON 파일에 여러 계획이 있을 수 있음)
// 이 필드가 없으면 각 실행 후 자동으로 다음 계획으로 전환됩니다.
// Core에서 이 필드를 처리하지 않습니다. MAA와 인터페이스 통합을 사용하는 경우, 이 논리를 직접 구현하십시오.
[
"22:00", // hh:mm 형식으로 표시되며 현재는 단순 숫자 비교만 사용됩니다. 자정을 넘어가는 경우 이 파일의 예시를 참조하십시오.

View File

@@ -24,6 +24,7 @@ icon: material-symbols:view-quilt-rounded
"description_post": "", // 計劃執行完時顯示的描述,可選
"period": [ // 換班時間段,可選
// 若當前時間在該區間內,則自動選擇該計劃(整個 json 檔案中可能包含多個計劃)
// 如果該欄位不存在,則每次換班結束後,自動切換為下一個計劃
// core 不處理該欄位,若您使用接口集成 maa請自行實現該邏輯
[
"22:00", // 要求格式 hh:mm目前只是簡單的比較數字大小如果要跨天請仿照該範例中寫法