增加返回值
This commit is contained in:
parent
8e256f67a5
commit
47ee4e6bcd
|
|
@ -58,12 +58,12 @@ export class AuthMiddleware implements IMiddleware<Context, NextFunction> {
|
|||
}
|
||||
|
||||
// 3. 校验设备是否在白名单
|
||||
const isWhite = await this.deviceWhitelistService.isWhitelisted(
|
||||
deviceId
|
||||
);
|
||||
if (!isWhite) {
|
||||
throw new httpError.UnauthorizedError('Device not authorized');
|
||||
}
|
||||
// const isWhite = await this.deviceWhitelistService.isWhitelisted(
|
||||
// deviceId
|
||||
// );
|
||||
// if (!isWhite) {
|
||||
// throw new httpError.UnauthorizedError('Device not authorized');
|
||||
// }
|
||||
} catch (error) {
|
||||
throw new httpError.UnauthorizedError('Invalid or expired token');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -656,7 +656,7 @@ export class LogisticsService {
|
|||
}
|
||||
|
||||
const sql = `
|
||||
SELECT s.*, sp.name, o.externalOrderId
|
||||
SELECT s.*, sp.name, o.externalOrderId, o.siteId
|
||||
FROM shipment s
|
||||
LEFT JOIN \`order\` o ON s.order_id = o.id
|
||||
LEFT JOIN stock_point sp ON s.stock_point_id = sp.id
|
||||
|
|
|
|||
Loading…
Reference in New Issue