devflag 분리 / gocommon으로 패키지 변경
This commit is contained in:
@ -7,8 +7,6 @@ import (
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
|
||||
common "repositories.action2quare.com/ayo/gocommon"
|
||||
)
|
||||
|
||||
type ApiCaller interface {
|
||||
@ -201,10 +199,6 @@ func (ac apiCaller) callByServer() bool {
|
||||
}
|
||||
|
||||
func (ac apiCaller) HasAuthority(authPath string) bool {
|
||||
if *common.Devflag {
|
||||
return true
|
||||
}
|
||||
|
||||
if ac.callByServer() {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user