提交 48ed65c5 编写于 作者: yanghye's avatar yanghye

Fix: v8value bug, string value error

上级 a194a616
......@@ -311,12 +311,15 @@ func (m *ICefV8Value) GetDateValue() time.Time {
return common.DDateTimeToGoDateTime(result)
}
func (m *ICefV8Value) GetStringValue() string {
func (m *ICefV8Value) GetStringValue() (value string) {
if !m.IsValid() {
return ""
}
r1, _, _ := imports.Proc(def.CefV8Value_GetStringValue).Call(m.Instance())
return api.GoStr(r1)
val := NewTString()
imports.Proc(def.CefV8Value_GetStringValue).Call(m.Instance(), val.Instance())
value = val.Value()
val.Free()
return
}
func (m *ICefV8Value) IsUserCreated() bool {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册