修正了更多功能

This commit is contained in:
2026-06-24 23:12:43 +08:00
parent 56af6ab269
commit b9266dfc1f
4 changed files with 1082 additions and 38 deletions

View File

@@ -457,7 +457,7 @@ async function main() {
r = await req('POST', '/api/customers', {
name: 'CRUD测试加盟商', phone: '13800007777', province: '河南', city: '郑州',
customer_type: 'VIP', email: 'test@mixue.com',
email: 'test@mixue.com',
}, tokens.admin)
check('admin POST /api/customers (创建)', r, 200)
const custCrudId = r.body?.data?.id
@@ -478,9 +478,6 @@ async function main() {
r = await req('GET', '/api/customers?name=CRUD', null, tokens.admin)
check('GET /api/customers?name=CRUD (搜索)', r, 200)
r = await req('GET', '/api/customers?customer_type=VIP', null, tokens.admin)
check('GET /api/customers?customer_type=VIP (筛选)', r, 200)
}
r = await req('GET', '/api/customers/99999', null, tokens.admin)