// lbs 对照表，不区分环境
const testAppIdInfo = {
  // 嘉里中国项目管理上海测试公众号
  appid: 'wxb81a622ed6d60adf',
};

const SKC = {
  qa: {
    ...testAppIdInfo,
    groupId: '8a8485497c9cafbc017c9cb90b9d0000',
    mallId: '8a84854a7cfd947d017d02861a9d0002',
    projectId: 'SKC',
  },
  prod: {
    // TODO: 等待对应公众号上线
    ...testAppIdInfo,
    groupId: '8a8884e77cc9e70a017cca1c77e80004',
    mallId: '8a888aed7d0295e5017d029ff1f40000',
    projectId: '187',
  },
};

const HKC = {
  qa: {
    ...testAppIdInfo,
    groupId: '8a84853b7c91ac5b017c962dab55030e',
    mallId: '8a84853b7c91ac5b017c961a9b2a030d',
    projectId: 'HKC',
  },
  prod: {
    // TODO: 等待对应公众号上线
    ...testAppIdInfo,
    groupId: '8a8884e77cc9e70a017cca1011970001',
    mallId: '8a8883557cca9463017ccb002b360001',
    projectId: '186',
  },
};

// 前海
const QHKC = {
  dev: {
    ...testAppIdInfo,
    groupId: '8aaa81947c6e1ca0017c73c13cc30006',
    mallId: '8aaa82ea804d07cd0180516ff03b0008',
    projectId: 'HKC',
  },
  qa: {
    ...testAppIdInfo,
    groupId: '8a84819f7c6e260e017c72669bbe01c2',
    mallId: '8a8486a37f48f7bd017f4e5bddd10000',
    projectId: 'HKC',
  },
  prod: {
    // TODO: 等待对应公众号上线
    ...testAppIdInfo,
    groupId: '8a888a087cc59dc0017cc622f9ad0000',
    mallId: '8a88a9fd7f73ffcd017f968739870006',
    projectId: '186',
  },
}

// 浦东
const PKC = {
  dev: {
    ...testAppIdInfo,
    groupId: '8aaa82ea804d07cd01805174dd3b000c',
    mallId: '8aaa81cb7c836c6b017c83e46b110001',
    projectId: 'PKC',
  },
  qa: {
    ...testAppIdInfo,
    groupId: '8a8480487c96d58f017c9b7bab7d0020',
    mallId: '8a8481f57cca9442017ce02875b8004a',
    projectId: '184',
  },
  prod: {
    // TODO: 等待对应公众号上线
    ...testAppIdInfo,
    groupId: '8a8884e77cc9e70a017cca14d07e0002',
    mallId: '8a88835c7cd96d31017cda3f77e80003',
    projectId: '184',
  },
}
// 静安
const JAKC = {
  dev: {
    ...testAppIdInfo,
    groupId: '8aaa82ea804d07cd01805174dd3b000c',
    mallId: '8aaa81cb7c836c6b017c83e2c76f0000',
    projectId: 'JAKC',
  },
  qa: {
    ...testAppIdInfo,
    groupId: '8a8480487c96d58f017c9b7bab7d0020',
    mallId: '8a8481f57cca9442017ce026ddd40049',
    projectId: 'JAKC',
  },
  prod: {
    // TODO: 等待对应公众号上线
    ...testAppIdInfo,
    groupId: '8a8884e77cc9e70a017cca14d07e0002',
    mallId: '8a88835c7cd96d31017cda2fd9910000',
    projectId: '189',
  },
}

export const lbsDictionary = {
  // 沈阳
  '8aaa87bc7ce98224017ce995fd8a0002': {
    ...SKC,
  },
  '8a84854a7cfd947d017d02861a9d0002': {
    ...SKC,
  },
  '8a84854a7cfd947d017d0289266a0003': {
    ...SKC,
  },
  "8a8883607d029a46017d02a2be880000": {
    ...SKC,
  },
  // 杭州
  '4028e3817bf860f3017bf86279b50001': {
    ...HKC,
  },
  '8a84853b7c91ac5b017c96bc8eab0310': {
    ...HKC,
  },
  '8a8883557cca9463017ccaedb04f0000': {
    ...HKC,
  },
  // 前海
  '8aaa83397bf7310e017bf7c8fb740009': {
    ...QHKC,
  },
  '8a84819f7c6e260e017c72315c9f01c1': {
    ...QHKC,
  },
  '8a8884e77cc9e70a017cca3ad6170006': {
    ...QHKC,
  },
  // 静安
  "8aaa80ae7c741565017c74ea1efe004d":{
    ...JAKC
  },
  "8a8481f57cca9442017ce3f4aebc0099":{
    ...JAKC
  },
  "8a88835c7cd96d31017cda3c148a0002":{
    ...JAKC
  },
  // 浦东
  "8aaa80ae7c741565017c74dbedd0004c":{
    ...PKC
  },
  "8a8481f57cca9442017ce3f5e0b0009a":{
    ...PKC
  },
  "8a88835c7cd96d31017cda47d11b0004":{
    ...PKC
  }
};

// 订单状态枚举数据
export const ORDER_STATUS = {
  CREATED: '已创建',
  TO_BE_PAID: '待支付',
  PAID: '已支付',
  REFUND: '已退款',
  TIME_OUT: '已超时',
  FAILED: '支付失败'
}

// 不同环境的基础数据
export const ENVIRONMENTS = {
  dev: {
    trackingBaseUrl: 'https://tq.kerryprops.com.cn/sa.gif',
    trackingRemarkPre: 'dev'
  },
  qa: {
    trackingBaseUrl: 'https://tq.kerryprops.com.cn/sa.gif',
    trackingRemarkPre: 'qa'
  },
  sl: {
    trackingBaseUrl: 'https://t.kerryplus.com/sa.gif',
    trackingRemarkPre: 'online'
  },
  lt: {
    trackingBaseUrl: 'https://tq.kerryprops.com.cn/sa.gif',
    trackingRemarkPre: 'qa'
  },
  prod: {
    trackingBaseUrl: 'https://t.kerryplus.com/sa.gif',
    trackingRemarkPre: 'online'
  },
};