统一状态码,优化对应逻辑

This commit is contained in:
not-like-juvenile
2026-02-09 16:53:20 +08:00
parent 3ea0f008b5
commit f46ec4c461
19 changed files with 591 additions and 236 deletions

View File

@@ -57,7 +57,7 @@
</template>
<script uts>
import { mockService } from './mock-service.uts'
import { mockService, LogisticsConstants } from './mock-service.uts'
export default {
data() {
@@ -68,11 +68,15 @@
webhookSecret: '********',
autoPush: mockService.autoPush
},
carriers: [
{ name: '韵达快递', code: 'YUNDA', enabled: true, callback_status: true, polling: true },
{ name: '圆通速递', code: 'YTO', enabled: true, callback_status: true, polling: false },
{ name: '中通快递', code: 'ZTO', enabled: false, callback_status: false, polling: false }
]
carriers: LogisticsConstants.CARRIERS.map((c : UTSJSONObject) : UTSJSONObject => {
return {
name: c['label'],
code: c['value'],
enabled: true,
callback_status: true,
polling: false
} as UTSJSONObject
})
}
},
methods: {