|
|
@@ -87,8 +87,11 @@ func GetOptionByServiceDescriptor(sd *desc.ServiceDescriptor, serviceName, metho
|
|
|
// 不需要认证的
|
|
|
if len(operation.Security) == 0 {
|
|
|
option.NotAuth = true
|
|
|
+ } else {
|
|
|
+ if len(operation.Security[0].AdditionalProperties) != 0 {
|
|
|
+ option.AuthorizationsName = operation.Security[0].AdditionalProperties[0].Name
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
// 解析自定义option [操作记录]
|
|
|
customOptions := proto.GetExtension(methodOptions, ku_annotations.E_Options).(*ku_annotations.Options)
|
|
|
if customOptions.GetOperationRecord().GetEnabled() {
|