From 7b15a686b5e206a8c5b816c4b4a03c929b1f2f9f Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Thu, 2 Jul 2020 14:16:45 +0200 Subject: [PATCH] kk --- config.js | 4 ++-- manual.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config.js b/config.js index a772af6..802b99c 100644 --- a/config.js +++ b/config.js @@ -138,7 +138,7 @@ module.exports = function(){ return get_tracking(ids).then(res=>{ var text = "*Tracking*\n\n"; for(var rr of res){ - text+=`*[${rr.id}](${tracking.getTrackingUrl(rr.id)})*\n_${rr.date?rr.date:'Unknown'} - ${rr.loc?rr.loc:'Unknown'}_\n${rr.status}\n\n`; + text+=`[*${rr.id}*](${tracking.getTrackingUrl(rr.id)})\n_${rr.date?rr.date:'Unknown'} - ${rr.loc?rr.loc:'Unknown'}_\n${rr.status}\n\n`; } return event.reply( text, {"reply_markup":Markup.inlineKeyboard(kb),"parse_mode":"Markdown"}); }); @@ -172,7 +172,7 @@ module.exports = function(){ return get_tracking(res).then(res=>{ var text = `*Tracking* (Updated: ${new Date().toLocaleString()})\n\n`; for(var rr of res){ - text+=`*[${rr.id}](${tracking.getTrackingUrl(rr.id)})*\n_${rr.date?rr.date:'Unknown'} - ${rr.loc?rr.loc:'Unknown'}_\n${rr.status}\n\n`; + text+=`[*${rr.id}*](${tracking.getTrackingUrl(rr.id)})\n_${rr.date?rr.date:'Unknown'} - ${rr.loc?rr.loc:'Unknown'}_\n${rr.status}\n\n`; } return event.editMessageText( text, {"reply_markup":Markup.inlineKeyboard(kb),"parse_mode":"Markdown"}); }); diff --git a/manual.js b/manual.js index 5591f71..51729f1 100644 --- a/manual.js +++ b/manual.js @@ -79,11 +79,11 @@ async function get_tracking(trck_ids, guid){ .then(res => res.json()); } -get_tracking(['993711592316210394'],'').then(res=>{ +get_tracking(['99'],'').then(res=>{ console.log(res.dat); console.log(res.dat[0].track.zex); console.log(res.dat[0].track.z0); console.log(res.dat[0].track.z1); - console.log(tracking.getTrackingUrl('993711592316210394')); + console.log(tracking.getTrackingUrl('99')); });