Skip to content

Commit 53ecd5e

Browse files
committed
add inject
1 parent 49f4bef commit 53ecd5e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

api/.nextRelease/data/RS/inject.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
const {random, randomItem, include,} = require('../../api');
3+
4+
module.exports = (inc, contents) => {
5+
const district = ['1', '2', '3'];
6+
const pic = contents.picture;
7+
delete contents.picture;
8+
9+
include(inc, contents, 'phone', '0' + randomItem(district) + random(3, 1) + '-' + random(3, 4) + '-' + random(3, 3));
10+
include(inc, contents, 'cell', '06' + random(3, 1) + '-' + random(3, 4) + '-' + random(3, 3));
11+
include(inc, contents, 'id', {
12+
name: '',
13+
value: null
14+
});
15+
include(inc, contents, 'picture', pic);
16+
};

0 commit comments

Comments
 (0)