fix(consignment): 寄售价支持低于1元并按分类校验寄售数量上限
This commit is contained in:
@@ -19,9 +19,10 @@ const router = Router()
|
||||
* GET /api/v1/worker/consignment/profiles
|
||||
* 打手端寄卖页按已发布的分类配置动态生成 tab。
|
||||
*/
|
||||
router.get('/consignment/profiles', async (_req, res) => {
|
||||
router.get('/consignment/profiles', async (req, res) => {
|
||||
try {
|
||||
const result = await listWorkerConsignmentProfiles()
|
||||
const session = getRequiredWorkerSession(req)
|
||||
const result = await listWorkerConsignmentProfiles(session.workerId)
|
||||
res.json({ ok: true, data: { profiles: result } })
|
||||
} catch (error) {
|
||||
sendRouteError(res, error, '获取寄卖配置失败', '[worker/consignment/profiles]')
|
||||
|
||||
Reference in New Issue
Block a user