feat(activity): 发单页统一组局与平台派单入口,接单大厅展示附近组局
- 移除附近活动页顶部单独的派单按钮(入口重复) - 「我要发单」新增发布类型切换:发起组局 / 平台派单,派单模式填预算与时长并内联拉起支付,支付成功进入待接单池 - 接单大厅新增「附近组局(可报名)」区块,展示招募中的组局并可进入详情报名 - 113 套件/738 用例全绿
这个提交包含在:
@@ -36,4 +36,22 @@ describe('第九十八批后台余额调整闸门', () => {
|
||||
expect(adminPage).toContain('/api/admin/users/${balanceTarget.value.id}/balance');
|
||||
expect(adminPage).toContain('调整用户钱包余额');
|
||||
});
|
||||
|
||||
it('后台判断接口成功必须读取 interceptor 解包后的 res.code,禁止误判 res.data.code', () => {
|
||||
expect(adminPage).toContain('res && res.code === 20000');
|
||||
const adminRoot = path.resolve(root, 'admin/arco-design-pro-vite/src');
|
||||
const offenders: string[] = [];
|
||||
const walk = (dir: string) => {
|
||||
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
||||
const full = path.join(dir, entry.name);
|
||||
if (entry.isDirectory()) walk(full);
|
||||
else if (entry.name.endsWith('.vue') || entry.name.endsWith('.ts')) {
|
||||
const text = fs.readFileSync(full, 'utf-8');
|
||||
if (text.includes('.data.code === 20000')) offenders.push(path.relative(adminRoot, full));
|
||||
}
|
||||
}
|
||||
};
|
||||
walk(adminRoot);
|
||||
expect(offenders).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
在新工单中引用
屏蔽一个用户