Compare commits
No commits in common. "main" and "v0.0.9" have entirely different histories.
@ -115,6 +115,7 @@ 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