new version qnc
This commit is contained in:
		| @@ -3,19 +3,19 @@ package agent | ||||
| import ( | ||||
| 	"context" | ||||
| 	"fmt" | ||||
| 	"qnc-server/app/user/model" | ||||
| 	jwtx "qnc-server/common/jwt" | ||||
| 	"qnc-server/common/xerr" | ||||
| 	"qnc-server/pkg/lzkit/crypto" | ||||
| 	"qnc-server/pkg/lzkit/lzUtils" | ||||
| 	"time" | ||||
| 	"tydata-server/app/user/model" | ||||
| 	jwtx "tydata-server/common/jwt" | ||||
| 	"tydata-server/common/xerr" | ||||
| 	"tydata-server/pkg/lzkit/crypto" | ||||
| 	"tydata-server/pkg/lzkit/lzUtils" | ||||
|  | ||||
| 	"github.com/pkg/errors" | ||||
| 	"github.com/zeromicro/go-zero/core/stores/redis" | ||||
| 	"github.com/zeromicro/go-zero/core/stores/sqlx" | ||||
|  | ||||
| 	"tydata-server/app/user/cmd/api/internal/svc" | ||||
| 	"tydata-server/app/user/cmd/api/internal/types" | ||||
| 	"qnc-server/app/user/cmd/api/internal/svc" | ||||
| 	"qnc-server/app/user/cmd/api/internal/types" | ||||
|  | ||||
| 	"github.com/zeromicro/go-zero/core/logx" | ||||
| ) | ||||
| @@ -64,9 +64,9 @@ func (l *ApplyForAgentLogic) ApplyForAgent(req *types.AgentApplyReq) (resp *type | ||||
| 		} | ||||
| 		if user == nil { | ||||
| 			user = &model.User{Mobile: encryptedMobile} | ||||
| 			if len(user.Nickname) == 0 { | ||||
| 				user.Nickname = encryptedMobile | ||||
| 			} | ||||
| 			// if len(user.Nickname) == 0 { | ||||
| 			// 	user.Nickname = encryptedMobile | ||||
| 			// } | ||||
| 			insertResult, userInsertErr := l.svcCtx.UserModel.Insert(transCtx, session, user) | ||||
| 			if userInsertErr != nil { | ||||
| 				return errors.Wrapf(xerr.NewErrCode(xerr.DB_ERROR), "代理申请, 数据库插入新用户失败, mobile%s, err: %+v", encryptedMobile, err) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user