|
@@ -52,15 +52,15 @@ service.interceptors.response.use(
|
|
|
|
|
|
|
|
|
export function getSkillList (code) {
|
|
|
- if (code === 'XYYF') {
|
|
|
- return service({
|
|
|
- url: `${process.env.XYYF_API}//cms/course`,
|
|
|
- method: 'get',
|
|
|
- params: {
|
|
|
- code
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
+ // if (code === 'XYYF') {
|
|
|
+ // return service({
|
|
|
+ // url: `${process.env.XYYF_API}//cms/course`,
|
|
|
+ // method: 'get',
|
|
|
+ // params: {
|
|
|
+ // code
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // } else {
|
|
|
return service({
|
|
|
url: '/skillInfo',
|
|
|
method: 'get',
|
|
@@ -68,7 +68,7 @@ export function getSkillList (code) {
|
|
|
code
|
|
|
}
|
|
|
})
|
|
|
- }
|
|
|
+ // }
|
|
|
}
|
|
|
export function getSkillData (params) {
|
|
|
if (params.channel === 'BAIDU') {
|
|
@@ -77,8 +77,16 @@ export function getSkillData (params) {
|
|
|
method: 'get',
|
|
|
params
|
|
|
})
|
|
|
+ } else if (params.channel === 'XYYF') {
|
|
|
+ return service({
|
|
|
+ url: `http://yfxxt-api.ai160.com/statistics`,
|
|
|
+ method: 'get',
|
|
|
+ params: {
|
|
|
+ startDate: params.startDate,
|
|
|
+ endDate: params.endDate,
|
|
|
+ }
|
|
|
+ })
|
|
|
} else {
|
|
|
- console.log(123123123,params)
|
|
|
return service({
|
|
|
url: `${process.env.XYYF_API}/statistics`,
|
|
|
method: 'get',
|