import storage from '../../utils/storage'

const api = {
  'localhost:8080': 'http://43.247.184.50:8280/mythverse-admin',
  // 'localhost:8080': 'http://192.168.123.181:9000',
  // 'localhost:8080': 'http://www.thinkium.io/api'
};


export const baseUrlByEnv = {
  dev: 'http://portal-int.chainopen.cn/api',
  pro: 'http://www.thinkium.io/api'
};

export function getAppBaseUrl() {
  return storage.temp('session','baseUrl') || api[location.host] ||  '/api'
}

