Beispiel #1
0
export function getTryList(pageNum, status) {
  const url = 'https://tryapi.yoka.com/yokatry/gettrylist';
  const data = Object.assign({}, commonParams, {
    status: status,
    page: pageNum
  });
  return jsonp(url, data, options);
};
Beispiel #2
0
export function getHotKey() {
	const url = 'https://c.y.qq.com/splcloud/fcgi-bin/gethotkey.fcg'
	const data = Object.assign({}, commonParams, {
		g_tk: 1928093487,
		platform: 'h5',
		needNewCode: 1
	})
	return jsonp(url, data, options)
}
Beispiel #3
0
export function getRecommend(){
    const url = 'https://c.y.qq.com/musichall/fcgi-bin/fcg_yqqhomepagerecommend.fcg';
    const data = Object.assign({},commonParams,{
        platform: 'h5',
        uin: 0,
        needNewCode: 1
    });
    return jsonp(url,data,options)
}
Beispiel #4
0
export function getTryDetail(status, id) {
  const url = 'https://tryapi.yoka.com/trydetail/gettrydetail';
  const data = Object.assign({}, commonParams, {
    status: status,
    try_id: id
  });

  return jsonp(url, data, options);
};
Beispiel #5
0
export function getApplyList(pageNum, type, id) {
  const url = 'http://tryapi.yoka.com/yokatry/getuserlist';
  const data = Object.assign({}, commonParams, {
    page: pageNum,
    type: type,
    try_id: id
  });

  return jsonp(url, data, options);
};
Beispiel #6
0
export function getTopList() {
  const url = 'https://c.y.qq.com/v8/fcg-bin/fcg_myqq_toplist.fcg'

  const data = Object.assign({}, commonParams, {
    uin: 0,
    needNewCode: 1,
    platform: 'h5'
  })

  return jsonp(url, data, options)
}
Beispiel #7
0
export function getSingerDetail(singerId) {
	const url = 'https://c.y.qq.com/v8/fcg-bin/fcg_v8_singer_track_cp.fcg'
	const data = Object.assign({}, commonParams, {
		hostUin: 0,
		needNewCode: 0,
		platform: 'yqq',
		order: 'listen',
		begin: 0,
		num: 0,
		songstatus: 1,
		singermid: singerId
	})
	return jsonp(url, data, options)
}
Beispiel #8
0
export function getSingerList() {
  var url = 'https://c.y.qq.com/v8/fcg-bin/v8.fcg'
  const data = Object.assign({}, commonParams, {
    channel: 'singer',
    page: 'list',
    key: 'all_all_all',
    pagesize: 100,
    pagenum: 1,
    hostUin: 0,
    needNewCode: 0,
    platform: 'yqq'
  })
  return jsonp(url, data, options)
}
Beispiel #9
0
export function getMusicList(topid) {
  const url = 'https://c.y.qq.com/v8/fcg-bin/fcg_v8_toplist_cp.fcg'

  const data = Object.assign({}, commonParams, {
    topid,
    needNewCode: 1,
    uin: 0,
    tpl: 3,
    page: 'detail',
    type: 'top',
    platform: 'h5'
  })

  return jsonp(url, data, options)
}
export function getSongList(disstid) {
	const url = 'https://c.y.qq.com/qzone/fcg-bin/fcg_ucc_getcdinfo_byids_cp.fcg'
	const data = Object.assign({}, commonParams, {
		disstid,
	    type: 1,
	    json: 1,
	    utf8: 1,
	    onlysong: 0,
	    platform: 'yqq',
	    hostUin: 0,
	    needNewCode: 0
	})
	options.prefix = ''
	options.name = 'taogeDataCallback'
	return jsonp(url, data, options)
}
Beispiel #11
0
export function getSingerList () {
  var url = 'https://c.y.qq.com/v8/fcg-bin/v8.fcg'
  var data02 = JSON.stringify({'comm': {'ct': 24, 'cv': 10000}, 'singerList': {'module': 'Music.SingerListServer', 'method': 'get_singer_list', 'param': {'area': 200, 'sex': -100, 'genre': -100, 'index': 1, 'sin': 0, 'cur_page': 1}}})
  var data = Object.assign({}, commonParams, {
    hostUin: 0,
    format: 'jsonp',
    platform: 'yqq',
    needNewCode: 0,
    channel: 'singer',
    page: 'list',
    key: 'all_all_all',
    pagesize: 100,
    pagenum: 1,
    callback: 'jsonpCallback',
    data: data02
  })
  return jsonp(url, data, options)
}
Beispiel #12
0
export function getSongList(disstid) {
  const url = 'https://c.y.qq.com/qzone/fcg-bin/fcg_ucc_getcdinfo_byids_cp.fcg'

  const data = Object.assign({}, commonParams, {
    disstid: disstid,
    type: 1,
    json: 1,
    utf8: 1,
    onlysong: 0,
    hostUin: 0,
    platform: 'yqq',
    needNewCode: 0
  })

  let options = Object.assign({}, options, {
    param: 'jsonpCallback',
    name: 'playlistinfoCallback'
  })

  return jsonp(url, data, options)
}
Beispiel #13
0
export function search(query, page, zhida, perpage) {
	const url = 'https://c.y.qq.com/soso/fcgi-bin/search_for_qq_cp'
	const data = Object.assign({}, commonParams, {
		w: query,
		p: page,
		catZhida: zhida ? 1 : 0,
		zhidaqu: 1,
		t: 0,
		flag: 1,
		ie: 'utf-8',
		sem: 1,
		aggr: 0,
		perpage,
		n: perpage,
		remoteplace: 'txt.mqq.all',
		uid: 0,
		needNewCode: 1,
		platform: 'h5', 
		g_tk: 1928093487
	})
	return jsonp(url, data, options)
}
Beispiel #14
0
export function search(query,page,zhida,perpage) {
    const url = 'https://c.y.qq.com/soso/fcgi-bin/search_for_qq_cp'

    const data = Object.assign({},commonParams,{
        w:query,
        p:page,
        catZhida:zhida ? 1 : 0,
        g_tk:1756559080,
        format:'jsonp',
        platform:'h5',
        needNewCode:1,
        zhidaqu:1,
        t:0,
        flag:1,
        sem:1,
        aggr:0,
        remoteplace:'txt.mqq.all',
        perpage:perpage || 20,
        n:perpage
    })

    return jsonp(url,data,options)
}