错误提示为:panic: please set API's serverURL for China region or legacy app
代码如下:
options := leancloud.ClientOptions{
AppID: "nmrFz4I9iErKFR47Hbr2zRo8-gzGzoHsz",
AppKey: "xxxxxxxxxx",
MasterKey: "xxxxxxxxxxxx",
ServerURL: "https://dmapi.shunfengche.fun",
}
util.Println("options:",options.AppID)
util.Println("options:",options.AppKey)
util.Println("options:",options.MasterKey)
util.Println("options:",options.ServerURL)
client := leancloud.NewClient(&options)