12345678910111213141516171819202122232425262728293031323334353637383940 |
- js:
- log(input);
- let d = [];
- let body = {
- "mform": MY_CATE,
- "mcountry": MY_FL.mcountry||'all',
- "tag_arr%5B%5D": MY_FL.mtag||'all',
-
- "page": MY_PAGE,
- "sort": MY_FL.sort||'updatetime',
- "album": MY_FL.album||'all',
- "title": '',
- };
- fetch_params.body = body;
- fetch_params.headers['x-requested-with'] = 'XMLHttpRequest';
- let url = input.split('?')[0];
- let html = post(url,fetch_params);
- print(html);
- let data = JSON.parse(html);
- data.mlist.forEach(function (it){
- d.push({
- title: it.title,
- desc: it.definition+' '+it.grade,
- url:it.id,
- img:it.cover_img,
- });
- });
- setResult(d);
|