feat: 迁移项目到 yjyf-app 目录并更新首页路由配置
这个提交包含在:
@@ -124,7 +124,7 @@ const sql = (s) => execFileSync('ssh', ['-o', 'BatchMode=yes', 'root@8.137.181.6
|
||||
chk(r.data.merchant.contact === '新经理', '资料已更新');
|
||||
|
||||
r = await api('/auth/switchRole', { method: 'POST', token: token, data: { role: 'user' } });
|
||||
chk(r.code === 1 && r.data.redirect === '/YJYF/YJYF', '切回个人用户', r.data && r.data.redirect);
|
||||
chk(r.code === 1 && r.data.redirect === '/pages/index/index', '切回个人用户', r.data && r.data.redirect);
|
||||
r = await api('/auth/profile', { token: token });
|
||||
chk(r.data.is_merchant === true && Number(r.data.merchant.id) === Number(merchantId), 'profile 携带商家身份', 'merchant_id=' + r.data.merchant.id);
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户