fix
This commit is contained in:
		| @@ -140,7 +140,11 @@ func (l *ApplyForAgentLogic) ApplyForAgent(req *types.AgentApplyReq) (resp *type | ||||
|  | ||||
| 		// 关联上级 | ||||
| 		if req.Ancestor != "" { | ||||
| 			ancestorAgentModel, findAgentModelErr := l.svcCtx.AgentModel.FindOneByMobile(transCtx, encryptedMobile) | ||||
| 			ancestorEncryptedMobile, err := crypto.EncryptMobile(req.Ancestor, secretKey) | ||||
| 			if err != nil { | ||||
| 				return errors.Wrapf(xerr.NewErrCode(xerr.SERVER_COMMON_ERROR), "加密手机号失败: %v", err) | ||||
| 			} | ||||
| 			ancestorAgentModel, findAgentModelErr := l.svcCtx.AgentModel.FindOneByMobile(transCtx, ancestorEncryptedMobile) | ||||
| 			if findAgentModelErr != nil { | ||||
| 				return errors.Wrapf(xerr.NewErrCode(xerr.DB_ERROR), "代理申请, 查找上级代理失败: %+v", findAgentModelErr) | ||||
| 			} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user