cli, err := kingdee.New(config.Conf.Kingdee.ApiPath, nil)
accountInfoBytes,_ :=cli.GetDataCenterList()
panic: session interface undefined
// 获取session数据
func (c *Core) GetSessionData() (*SessionData, error) {
if c.Session == nil {
return nil, errors.New("session interface undefined")
}
return c.Session.GetSession()
}
new 的时候传递nil panic 是样例问题 还是我哪里搞错了
accountInfoBytes,_ :=cli.GetDataCenterList()
panic: session interface undefined
// 获取session数据
func (c *Core) GetSessionData() (*SessionData, error) {
if c.Session == nil {
return nil, errors.New("session interface undefined")
}
return c.Session.GetSession()
}
new 的时候传递nil panic 是样例问题 还是我哪里搞错了