File size: 870 Bytes
d757506
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import request from '@/axios/axios';
import api from '@/axios/apiNames';

// 搜索广告接口
export const getSearchCustomService = (key: string) => { 
    let params = {
      url: api.searchURL,
      data: {
        engine: "baidu",
        q: key,
        api_key: '83df36ff90429072fcd39b47811df999a8ed942f4f2492225fe6a7f494a07935'
      }
    }
  return request.get(params)
}

// 获取 item 图片 
export const getItemImageCustomService = (item_id: string) => {
    let params = {
      url:  `${api.itemFilterURL}/output-images/` ,
      data: {
        populate: 'images',
        ['filters[item_id][\$eq]']: item_id,
      },
      header: {
        Authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNjgwNDU1MTk2LCJleHAiOjE2ODMwNDcxOTZ9.aGgsBDn8uo5pxqINwms6doMU_EfF9rzkm96ZUsXuy0M'
      }
    }
  return request.get(params)
}