Merge pull request 'by Robin at 20240325; nil' (#202) from BUG-20240322-0001-Robin into main
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/202
This commit is contained in:
commit
7c490e1a50
|
@ -40,14 +40,14 @@ func (interceptor *CryptoTagInterceptor) Intercept(p any, tags ...string) (err e
|
|||
//开始遍历标签
|
||||
for interceptor.cryptoEleQueue.Len() != 0 {
|
||||
ele := interceptor.cryptoEleQueue.Remove(interceptor.cryptoEleQueue.Front())
|
||||
if ele == nil {
|
||||
continue
|
||||
}
|
||||
cryptoElement, ok := ele.(*CryptoElement)
|
||||
if !ok {
|
||||
logger.Error("crypto element assertion failed, element is: %v, type is: %v", ele, reflect.TypeOf(ele).String())
|
||||
continue
|
||||
}
|
||||
if cryptoElement == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
if cryptoElement.eleType == StructPtr { // *struct
|
||||
if err = interceptor.parse(cryptoElement.eleValue.Interface(), tags...); err != nil {
|
||||
|
|
Loading…
Reference in New Issue