新版本,代理功能上线
This commit is contained in:
		| @@ -60,7 +60,7 @@ func (l *QueryExampleLogic) QueryExample(req *types.QueryExampleReq) (resp *type | ||||
| 	secretKey := l.svcCtx.Config.Encrypt.SecretKey | ||||
| 	key, decodeErr := hex.DecodeString(secretKey) | ||||
| 	if decodeErr != nil { | ||||
| 		return nil, errors.Wrapf(xerr.NewErrCode(xerr.SERVER_COMMON_ERROR), "示例报告, 获取AES解密解药失败, %+v", err) | ||||
| 		return nil, errors.Wrapf(xerr.NewErrCode(xerr.SERVER_COMMON_ERROR), "示例报告, 获取AES解密解药失败, %v", err) | ||||
| 	} | ||||
| 	processParamsErr := ProcessQueryParams(queryModel.QueryParams, &query.QueryParams, key) | ||||
| 	if processParamsErr != nil { | ||||
| @@ -77,11 +77,11 @@ func (l *QueryExampleLogic) QueryExample(req *types.QueryExampleReq) (resp *type | ||||
| 	// 复制报告数据 | ||||
| 	err = copier.Copy(&query, queryModel) | ||||
| 	if err != nil { | ||||
| 		return nil, errors.Wrapf(xerr.NewErrCode(xerr.SERVER_COMMON_ERROR), "示例报告, 报告结构体复制失败, %+v", err) | ||||
| 		return nil, errors.Wrapf(xerr.NewErrCode(xerr.SERVER_COMMON_ERROR), "示例报告, 报告结构体复制失败, %v", err) | ||||
| 	} | ||||
| 	product, err := l.svcCtx.ProductModel.FindOne(l.ctx, queryModel.ProductId) | ||||
| 	if err != nil { | ||||
| 		return nil, errors.Wrapf(xerr.NewErrCode(xerr.SERVER_COMMON_ERROR), "示例报告, 获取商品信息失败, %+v", err) | ||||
| 		return nil, errors.Wrapf(xerr.NewErrCode(xerr.SERVER_COMMON_ERROR), "示例报告, 获取商品信息失败, %v", err) | ||||
| 	} | ||||
| 	query.ProductName = product.ProductName | ||||
| 	return &types.QueryExampleResp{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user