Authored by 于良

接口地址更新为测试环境地址 review by yewanwan

module.exports = {
dev: {
// baseUrl: 'http://testapi.yoho.cn:28078',
baseUrl: 'http://192.168.102.205:8080',
baseUrl: 'http://123.206.1.104:28078',
// baseUrl: 'http://192.168.102.205:8080/gateway',
httpTimeout: 30000, //毫秒
},
prd: {
baseUrl: 'http://testapi.yoho.cn:28078',
baseUrl: 'http://123.206.1.104:28078',
HTTPTimeout: 30000, //毫秒
},
... ...
... ... @@ -12,7 +12,7 @@ export default class UserService {
async overview(brandId) {
let dateId = moment().format('YYYYMMDD'); //20160524
return await this.api.get({
url: '/gateway',
url: '',
body: {
method: 'app.shops.shopbusinessoverview',
brandId,
... ... @@ -30,7 +30,7 @@ export default class UserService {
async brandRank(brandId) {
let dateId = moment().format('YYYYMMDD'); //20160524
return await this.api.get({
url: '/gateway',
url: '',
body: {
method: 'app.shops.shopbrandrank',
brandId,
... ... @@ -47,7 +47,7 @@ export default class UserService {
async accountSettlementData(params) {
return await this.api.get({
url:'/gateway',
url:'',
body: {
method: 'app.shops.balance',
...params,
... ... @@ -64,7 +64,7 @@ export default class UserService {
async saleStats(params) {
return await this.api.get({
url:'/gateway',
url:'',
body: {
method: 'app.shops.sales',
...params,
... ... @@ -80,7 +80,7 @@ export default class UserService {
async refoundStats(params) {
return await this.api.get({
url:'/gateway',
url:'',
body: {
method: 'app.shops.refund',
...params,
... ...
... ... @@ -10,7 +10,7 @@ export default class MessageService {
async getMsgList(shopsId) {
return this.api.get({
url: '/gateway',
url: '',
body: {
shopsId: shopsId,
method: 'app.shopInbox.getList',
... ... @@ -26,7 +26,7 @@ export default class MessageService {
async setMsgIsRead(shopsId, ids) {
return this.api.get({
url: '/gateway',
url: '',
body: {
shopsId: shopsId,
ids: ids,
... ... @@ -43,7 +43,7 @@ export default class MessageService {
async requestUnreadMsgNum(shopsId, isRead) {
return this.api.get({
url: '/gateway',
url: '',
body: {
shopsId: shopsId,
isRead: isRead,
... ...
... ... @@ -13,7 +13,7 @@ export default class UserService {
async login(account, password) {
return this.api.get({
url: '/gateway',
url: '',
body: {
account: account,
password: password,
... ... @@ -31,7 +31,7 @@ export default class UserService {
async modifyPassword(pid, oldPwd,newPwd,newPwdConfirm) {
return this.api.get({
url: '/gateway',
url: '',
body: {
pid: pid,
oldPwd: oldPwd,
... ... @@ -52,7 +52,7 @@ export default class UserService {
async checkUpdate() {
return this.api.get({
url: '/gateway',
url: '',
body: {
method: 'app.shops.checkAppVersion',
debug: 'XYZ',
... ...