From 34947478c7bb1f995da7ee69ff51ad1abfd10dc8 Mon Sep 17 00:00:00 2001 From: luoyang Date: Thu, 20 Feb 2020 14:03:55 +0800 Subject: [PATCH] fix login $http --- src/main/ui/login.html | 4 ++-- src/main/ui/login_v1.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/ui/login.html b/src/main/ui/login.html index 0620a3554..432a0a419 100644 --- a/src/main/ui/login.html +++ b/src/main/ui/login.html @@ -357,12 +357,12 @@ url: '/client/partner_info/incremental_service/RP跨境商城/login_token', method: 'get', success: function (res) { - url += res.data.token; + url += res.token; window.open(url, '_blank'); location.href = '/index.html'; }, error: function (resp) { - console.log(resp.data.message) + console.log(resp.message) location.href = '/index.html'; } }) diff --git a/src/main/ui/login_v1.html b/src/main/ui/login_v1.html index 4cb94828d..d878eca6d 100644 --- a/src/main/ui/login_v1.html +++ b/src/main/ui/login_v1.html @@ -338,12 +338,12 @@ url: '/client/partner_info/incremental_service/RP跨境商城/login_token', method: 'get', success: function (res) { - url += res.data.token; + url += res.token; window.open(url, '_blank'); location.href = '/index.html'; }, error: function (resp) { - console.log(resp.data.message) + console.log(resp.message) location.href = '/index.html'; } })