增加没有店铺id时的日志
This commit is contained in:
parent
cc5ecd665c
commit
7f9431274e
@ -14,7 +14,7 @@ class ExamController extends BaseController {
|
||||
async list(req) {
|
||||
let { shop, accountid, eid, delay } = req.params
|
||||
if (!shop || !validShopId(shop)) {
|
||||
throw new ZError(10, '没有店铺id或者店铺id格式不正确, 测试使用: 607ff59d4a4e16687a3b7079')
|
||||
throw new ZError(10, `begin exam 没有店铺id或者店铺id格式不正确, ${shop}`)
|
||||
}
|
||||
const now = Date.now()
|
||||
if (!eid) {
|
||||
|
@ -49,7 +49,7 @@ class PuzzleController extends BaseController {
|
||||
let { shop, level, accountid, type } = req.params
|
||||
level = +level || 1
|
||||
if (!shop || !validShopId(shop)) {
|
||||
throw new ZError(10, '没有店铺id或者店铺id格式不正确, 测试使用: 607ff59d4a4e16687a3b7079')
|
||||
throw new ZError(10, `type: ${type} 没有店铺id或者店铺id格式不正确, ${shop}`)
|
||||
}
|
||||
const cfg = fetchLevelCfg(level)
|
||||
let params = {}
|
||||
|
@ -83,7 +83,7 @@ class ShopController extends BaseController {
|
||||
async shopInfo(req) {
|
||||
let { sid } = req.params
|
||||
if (!sid || !validShopId(sid)) {
|
||||
throw new ZError(10, '没有店铺id或者店铺id格式不正确, 测试使用: 607ff59d4a4e16687a3b7079')
|
||||
throw new ZError(10, `shopInfo 没有店铺id或者店铺id格式不正确: ${sid}`)
|
||||
}
|
||||
let rspData: any = {}
|
||||
let shop = await Shop.fetchByID(sid)
|
||||
|
Loading…
x
Reference in New Issue
Block a user