push_data.go 548 字节
package constant

import "os"

//推送数据到字库

var PUSH_DATA_HOST string = "http://character-library-metadata-bastion-test.fjmaimaimai.com"

var PUSH_DATA_APPKEY string = "GnAmG4jybB"

var PUSH_DATA_APPSECRET string = "3Oo4dG64X0"

func init() {
	if os.Getenv("PUSH_DATA_HOST") != "" {
		PUSH_DATA_HOST = os.Getenv("PUSH_DATA_HOST")
	}
	if os.Getenv("PUSH_DATA_APPKEY") != "" {
		PUSH_DATA_APPKEY = os.Getenv("PUSH_DATA_APPKEY")
	}
	if os.Getenv("PUSH_DATA_APPSECRET") != "" {
		PUSH_DATA_APPSECRET = os.Getenv("PUSH_DATA_APPSECRET")
	}
}