From f222c159d9ff95cc70640c791733fd4837d6558e Mon Sep 17 00:00:00 2001 From: "li.zhaoguang" Date: Sun, 22 Sep 2019 16:25:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=20=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=20&=20=E6=8F=90=E9=86=92=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=20=E5=88=B0v2=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/util/api.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/api.js b/src/util/api.js index e1d8543..9c5e978 100644 --- a/src/util/api.js +++ b/src/util/api.js @@ -140,7 +140,7 @@ async function syncSplash() { } async function getSelfInfo() { - return call('GET', '/users/my'); + return callV2('GET', '/users/my'); } async function getSelfInfoByStore() { @@ -148,7 +148,7 @@ async function getSelfInfoByStore() { } async function getUserInfo(id) { - return call('GET', '/users/' + id) + return callV2('GET', '/users/' + id) } async function updateUserIcon(photoUri) { @@ -267,7 +267,7 @@ async function getMessages() { } async function getMessagesHistory() { - return call('GET', '/tip/history'); + return callV2('GET', '/tips/history'); } async function deleteMessage(ids) {