miniQRCodeRoute.js
488 Bytes
import Promise from '../vendors/es6-promise';
import config from './config';
import api from './api';
export function getQRCodeSource(code) {
let param = {
md5Param: code,
miniapp_type: 4
}
return api.get({
url: '/wechat/miniapp/getMiniAppRealParam',
data: param
}).then(data => {
if (data.code === 200) {
if (data.data) {
return JSON.parse(data.data);
}
} else {
return {};
}
}).catch(error => {
return error;
});
}