Skip to content

Commit ad051d7

Browse files
committed
1 parent 6380214 commit ad051d7

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

‎Task/moji.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
const $ = new Env('墨迹天气')
77
const City = encodeURIComponent($.getdata('city')||"北京")
88
const j = $.getdata('citynum')||"1"
9+
const reduction = $.getdata('cut') || true
910

1011
!(async() => {
1112
await SearchCity();
@@ -137,7 +138,10 @@ for ( Hourlyweather of $.weather.data.hourly){
137138
indexLevelDesc =indexdata.indexLevelDesc
138139
indexDesc = indexdata.indexDesc
139140
console.log("\n "+indexType+" "+indexLevel+"级 "+ indexLevelDesc+"\n"+indexDesc )
140-
$.desc += " "+indexType+": "+indexLevel+"级 "+ indexLevelDesc+"\n "+indexDesc+"\n"
141+
$.desc += " "+indexType+": "+indexLevel+"级 "+ indexLevelDesc+"\n"
142+
if (!reduction){
143+
$.desc +=indexDesc+"\n"
144+
}
141145
}
142146
}
143147
$.sub = "【今日天气】"

‎Task/sunert.boxjs.json‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,17 @@
145145
"type": "text",
146146
"desc": "请填写中文地区"
147147
},
148+
{
149+
"id": "cut",
150+
"name": "精简模式",
151+
"val": true,
152+
"type": "boolean",
153+
"desc": "取消详情描述,默认打开"
154+
},
148155
{
149156
"id": "citynum",
150157
"name": "城市序号",
151-
"val": "1",
158+
"val": "",
152159
"type": "number",
153160
"placeholder": "默认1 (点击以展开说明)",
154161
"desc": "选择地区,请填写日志内冒号前的数字序号"

0 commit comments

Comments
 (0)