10 lines
352 B
JavaScript
10 lines
352 B
JavaScript
import { httpFetch } from '../request.js'
|
|
|
|
export default {
|
|
getPic({ songmid }) {
|
|
const requestObj = httpFetch(`http://artistpicserver.kuwo.cn/pic.web?corp=kuwo&type=rid_pic&pictype=500&size=500&rid=${songmid}`)
|
|
requestObj.promise = requestObj.promise.then(({ body }) => /^http/.test(body) ? body : null)
|
|
return requestObj.promise
|
|
},
|
|
}
|