2637309949 4 anni fa
parent
commit
4ba32ced5d

+ 0 - 2
internal/logic/base_organ_school/get_erp_sch_perm_logic.go

@@ -2,7 +2,6 @@ package base_organ_school
 
 import (
 	"context"
-	"fmt"
 
 	"git.i2edu.net/i2/i2-bill-api/model"
 
@@ -29,7 +28,6 @@ func NewGetErpSchPermLogic(ctx context.Context, svcCtx *svc.ServiceContext) GetE
 func (l *GetErpSchPermLogic) GetErpSchPerm() (*types.Response, error) {
 	// todo: add your logic here and delete this line
 	erpUser, err := model.GetAcquirePerm(l.svcCtx.GetUserIdByJwt(l.ctx), l.svcCtx.Transformer, l.svcCtx.DB, l.ctx)
-	fmt.Println("----------", err)
 	if err != nil {
 		logx.Error(err.Error())
 		return &types.Response{500, err.Error(), nil}, nil

+ 0 - 1
model/i2bill_mkt_part_time_user_model.go

@@ -116,7 +116,6 @@ func (m *defaultI2billMktPartTimeUserModel) Delete(id int64) error {
 func GetPartTimeXormByUserId(userId int64, engine *xorm.Engine) (*I2billMktPartTimeXorm, error) {
 	partUser := new(I2billMktPartTimeXorm)
 	_, err := engine.SQL("select * from i2bill_mkt_part_time_user where del_flag = 0 and check_state = 57 and user_id = ?", userId).Get(partUser)
-	fmt.Println("----------", err)
 	if err != nil {
 		return nil, err
 	}

+ 2 - 1
model/i2bill_user_model.go

@@ -227,12 +227,12 @@ func GetI2bilUserInfo(userId int64, engine *xorm.Engine) (*UserXorm, error) {
 func GetAcquirePerm(userId int64, rpcClient transformclient.Transform, engine *xorm.Engine, ctx context.Context) (*transform.GetErpRoleRes, error) {
 	var res = new(transform.GetErpRoleRes)
 	partUser, err := GetPartTimeXormByUserId(userId, engine)
-	fmt.Println("----------", err)
 
 	if err != nil {
 		return nil, err
 	}
 	if partUser.Id != 0 && partUser.MkId != "" {
+		fmt.Println("----------1", err)
 		res, err = GetErpUser("", partUser.MkId, rpcClient, ctx)
 		if err != nil {
 			return nil, err
@@ -245,6 +245,7 @@ func GetAcquirePerm(userId int64, rpcClient transformclient.Transform, engine *x
 	}
 
 	resMobile, err := GetErpUser(user.Mobile, "", rpcClient, ctx)
+	fmt.Println("----------2", resMobile)
 	if err != nil {
 		return nil, err
 	}