-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
打了包 setenv也不行,找不到dat路径,放到项目根目录也不行 #56
Comments
@54huige func init() {
//注释掉这几行
//dir := os.Getenv("PHONE_DATA_DIR")
//if dir == "" {
//_, fulleFilename, _, _ := runtime.Caller(0)
//dir = path.Dir(fulleFilename)
//}
var err error
content, err = ioutil.ReadFile("/root/phone.dat") //在这里直接修改为你的dat文件路径,
if err != nil {
panic(err)
}
total_len = int32(len(content))
firstoffset = get4(content[INT_LEN : INT_LEN*2])
} |
感谢反馈
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2023年10月2日(星期一) 上午10:09
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [xluohome/phonedata] 打了包 setenv也不行,找不到dat路径,放到项目根目录也不行 (Issue #56)
@sndnvaps
有个小bug 区号00479 应该是0479
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
可以修改文件phonedata.go
然后把phone.dat丢到打包文件的同级目录,就可以正常运行了,我测试是无误的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
有啥好办法不,必须设置系统变量才行吗?
The text was updated successfully, but these errors were encountered: