|
@@ -94,7 +94,7 @@ router.put('/status/:code', ctx => {
|
|
|
const { code } = params
|
|
|
const { index } = request.body
|
|
|
const list = cache.get(code) || []
|
|
|
- if (!index) {
|
|
|
+ if (!index && index !== 0) {
|
|
|
throw new Error('index is not find')
|
|
|
}
|
|
|
if (!list || !list.length) {
|