Skip to content

Commit

Permalink
fix:优化
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhan258 committed Jul 4, 2023
1 parent f3c7a68 commit 6dfbafa
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions apps/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,14 @@ export class text extends plugin {
let url = `https://api.qqsuu.cn/api/dm-oilprice?prov=${encode}`
let response = await axios.get(url) // 调用接口获取数据
if (response.data.code == 200) {
sendmsg.push('省份:', response.data.data.prov, '\n')
sendmsg.push('0号:', response.data.data.p0, '\n')
sendmsg.push('89号:', response.data.data.p89, '\n')
sendmsg.push('92号:', response.data.data.p92, '\n')
sendmsg.push('95号:', response.data.data.p95, '\n')
sendmsg.push('98号:', response.data.data.p98, '\n')
sendmsg.push(response.data.data.time)
sendmsg.push('=====查询省份:', response.data.data.prov, '=====\n')
sendmsg.push('0#柴油:', response.data.data.p0, '\n')
sendmsg.push('89#汽油:', response.data.data.p89, '\n')
sendmsg.push('92#汽油:', response.data.data.p92, '\n')
sendmsg.push('95#汽油:', response.data.data.p95, '\n')
sendmsg.push('98#汽油:', response.data.data.p98, '\n')
sendmsg.push(response.data.data.time, '\n')
sendmsg.push('======================')
await this.reply(sendmsg)
} else {
await this.reply('查询失败,可能接口失效力~,请联系憨憨捏~')
Expand Down

0 comments on commit 6dfbafa

Please sign in to comment.