Authored by 陈峰

登录接口

@@ -32,7 +32,7 @@ let domainApis = { @@ -32,7 +32,7 @@ let domainApis = {
32 uploads: '/fileupload/uploads' 32 uploads: '/fileupload/uploads'
33 }, 33 },
34 shop: { 34 shop: {
35 - login: '/login' 35 + login: '/loginInter'
36 } 36 }
37 }; 37 };
38 38
@@ -29,7 +29,7 @@ class UserController extends Context { @@ -29,7 +29,7 @@ class UserController extends Context {
29 shops: result.data, 29 shops: result.data,
30 currentShop: currentShop 30 currentShop: currentShop
31 }), sess); 31 }), sess);
32 -console.log(result.data) 32 +
33 return res.json({ 33 return res.json({
34 code: 200, 34 code: 200,
35 data: { 35 data: {
@@ -33,7 +33,7 @@ class UserService extends Context { @@ -33,7 +33,7 @@ class UserService extends Context {
33 } 33 }
34 34
35 shopLogin(account, password) { 35 shopLogin(account, password) {
36 - return rp.post({ 36 + return rp.get({
37 url: apiDomain.shop.login, 37 url: apiDomain.shop.login,
38 resolveWithFullResponse: true, 38 resolveWithFullResponse: true,
39 formData: { 39 formData: {