删除调试信息
This commit is contained in:
parent
38cf9933be
commit
afcce4d649
@ -115,7 +115,6 @@ func initConfig(opt *gojs.Obj, logger *log.Logger, vm *goja.Runtime) {
|
|||||||
// 身份验证和Session
|
// 身份验证和Session
|
||||||
authAccessToken := len(s.Config.AccessTokens) > 0
|
authAccessToken := len(s.Config.AccessTokens) > 0
|
||||||
s.SetClientKeys(serviceConfig.DeviceKey, serviceConfig.ClientKey, serviceConfig.SessionKey)
|
s.SetClientKeys(serviceConfig.DeviceKey, serviceConfig.ClientKey, serviceConfig.SessionKey)
|
||||||
fmt.Println(u.BMagenta("=====>>>>> 1"), serviceConfig.SessionKey)
|
|
||||||
if serviceConfig.SessionKey != "" {
|
if serviceConfig.SessionKey != "" {
|
||||||
s.SetAuthChecker(func(authLevel int, logger *log.Logger, url *string, args map[string]any, request *s.Request, response *s.Response, options *s.WebServiceOptions) (pass bool, object any) {
|
s.SetAuthChecker(func(authLevel int, logger *log.Logger, url *string, args map[string]any, request *s.Request, response *s.Response, options *s.WebServiceOptions) (pass bool, object any) {
|
||||||
var session *Session
|
var session *Session
|
||||||
|
Loading…
Reference in New Issue
Block a user