forked from gxwebsoft/mp-10550
fix(dealer): 解决经销商申请注册流程中的角色分配问题
- 添加了对用户ID存在性的检查,避免注册时用户信息缺失导致的错误 - 实现了更健壮的角色查询逻辑,当查询不到角色时使用默认角色ID进行兜底 - 新增了addUserRole API方法用于在用户无角色时创建默认角色 - 优化了角色分配逻辑,支持upsert操作以处理不同后端实现方式 - 将页面跳转从navigateBack改为switchTab,确保注册后正确返回到"我的"页面 - 更新了API基础URL配置,统一指向新的mp-api域名 - 修复了二维码组件中的API地址引用,保持与新域名的一致性
This commit is contained in:
@@ -81,7 +81,7 @@ const SimpleQRCodeModal: React.FC<SimpleQRCodeModalProps> = ({
|
||||
{qrContent ? (
|
||||
<View className={'flex flex-col justify-center'}>
|
||||
<img
|
||||
src={`https://cms-api.websoft.top/api/qr-code/create-encrypted-qr-image?size=300x300&expireMinutes=60&businessType=gift&data=${encodeURIComponent(qrContent)}`}
|
||||
src={`https://mp-api.websoft.top/api/qr-code/create-encrypted-qr-image?size=300x300&expireMinutes=60&businessType=gift&data=${encodeURIComponent(qrContent)}`}
|
||||
alt="二维码"
|
||||
style={{width: '200px', height: '200px'}}
|
||||
className="mx-auto"
|
||||
|
||||
Reference in New Issue
Block a user