提交 1d8293a6 编写于 作者: 陈帅

Modify the address location algorithm of the mock

上级 0bf63802
......@@ -6,7 +6,7 @@ import { getProfileBasicData } from './mock/profile';
import { getProfileAdvancedData } from './mock/profile';
import { getNotices } from './mock/notices';
import { format, delay } from 'roadhog-api-doc';
import { getProvince, getCity, getArea } from './mock/geographic/geographic';
import { getProvince, getCity } from './mock/geographic';
// 是否禁用代理
const noProxy = process.env.NO_PROXY === 'true';
......
const fs = require('fs');
function getJson(infoType) {
const json = fs.readFileSync(`${__dirname}/${infoType}.json`, 'utf8');
return JSON.parse(json);
const json = require(`${__dirname}/geographic/${infoType}.json`); // eslint-disable-line
return json;
}
export function getProvince(req, res) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册