Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (18 sloc) 404 Bytes
import { getWxacodeUnlimit } from '../util/wechat'
// 获取用户信息
export const getWxacode = async (ctx: any) => {
const { page, scene } = ctx.query
const buffer = await getWxacodeUnlimit({
page,
scene,
})
ctx.body = {
data: {
imgUrl: buffer.toString('base64'),
},
code: 0,
msg: 'ok',
}
// ctx.set('Content-Type', 'image/jpeg')
// ctx.body = buffer
}
You can’t perform that action at this time.