- fix elmapi init bug.
This commit is contained in:
@@ -32,10 +32,12 @@ const (
|
||||
|
||||
const (
|
||||
// 饿了么生产
|
||||
// elmIsProd = true
|
||||
// elmToken = "" //"bab2a27f99562f394b411dbb9a6214da"
|
||||
// elmAppKey = "KLRDcOZGrk"
|
||||
// elmSecret = "1fc221f8265506531da36fb613d5f5ad673f2e9a"
|
||||
|
||||
elmIsProd = false
|
||||
elmToken = "2d2b583447b04b6bba5a6f3faed3559b"
|
||||
elmAppKey = "RwT214gAsS"
|
||||
elmSecret = "56afff4b9ebd8a7eb532d18fa33f17be57f9b9db"
|
||||
@@ -84,7 +86,7 @@ func initElm() {
|
||||
}
|
||||
token = tokenInfo2["accessToken"].(string)
|
||||
}
|
||||
ElmAPI = elmapi.NewELMAPI(token, elmAppKey, elmSecret, SugarLogger, true)
|
||||
ElmAPI = elmapi.NewELMAPI(token, elmAppKey, elmSecret, SugarLogger, elmIsProd)
|
||||
}
|
||||
|
||||
func initDB() {
|
||||
|
||||
Reference in New Issue
Block a user