Commit 1d8293a6 authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

Modify the address location algorithm of the mock

parent 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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment