fix: change photos path
This commit is contained in:
parent
c221437618
commit
c7d56c8110
6 changed files with 42 additions and 50 deletions
|
|
@ -38,6 +38,7 @@ const NEVER = new Date(Date.now() + 100 * T.years)
|
|||
const REAUTHENTICATE_INTERVAL = T.minute
|
||||
const idPhotoCardBasedir = _.get('idPhotoCardDir', options)
|
||||
const frontCameraBasedir = _.get('frontCameraDir', options)
|
||||
const operatorDataBasedir = _.get('operatorDataDir', options)
|
||||
|
||||
const devMode = argv.dev
|
||||
|
||||
|
|
@ -236,8 +237,13 @@ if (!fs.existsSync(frontCameraBasedir)) {
|
|||
makeDir.sync(frontCameraBasedir)
|
||||
}
|
||||
|
||||
if (!fs.existsSync(operatorDataBasedir)) {
|
||||
makeDir.sync(operatorDataBasedir)
|
||||
}
|
||||
|
||||
app.use('/id-card-photo', serveStatic(idPhotoCardBasedir, {index: false}))
|
||||
app.use('/front-camera-photo', serveStatic(frontCameraBasedir, {index: false}))
|
||||
app.use('/operator-data', serveStatic(operatorDataBasedir, {index: false}))
|
||||
|
||||
function register (req, res, next) {
|
||||
const otp = req.query.otp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue