Compare commits
2 Commits
c38944e948
...
b223feb441
Author | SHA1 | Date |
---|---|---|
Lykin | b223feb441 | |
Lykin | 469a62333f |
|
@ -1243,7 +1243,7 @@ func (b *browserService) SetKeyValue(param types.SetKeyParam) (resp types.JSResp
|
||||||
if len(param.Format) <= 0 {
|
if len(param.Format) <= 0 {
|
||||||
param.Format = types.FORMAT_RAW
|
param.Format = types.FORMAT_RAW
|
||||||
}
|
}
|
||||||
var savedValue string
|
var savedValue any
|
||||||
switch strings.ToLower(param.KeyType) {
|
switch strings.ToLower(param.KeyType) {
|
||||||
case "string":
|
case "string":
|
||||||
if str, ok := param.Value.(string); !ok {
|
if str, ok := param.Value.(string); !ok {
|
||||||
|
@ -1352,9 +1352,11 @@ func (b *browserService) SetKeyValue(param types.SetKeyParam) (resp types.JSResp
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
resp.Success = true
|
resp.Success = true
|
||||||
resp.Data = map[string]any{
|
respData := map[string]any{}
|
||||||
"value": strutil.EncodeRedisKey(savedValue),
|
if val, ok := savedValue.(string); ok {
|
||||||
|
respData["value"] = strutil.EncodeRedisKey(val)
|
||||||
}
|
}
|
||||||
|
resp.Data = respData
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>iconfile</string>
|
<string>iconfile</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>10.13.0</string>
|
<string>11.7.0</string>
|
||||||
<key>NSHighResolutionCapable</key>
|
<key>NSHighResolutionCapable</key>
|
||||||
<string>true</string>
|
<string>true</string>
|
||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>iconfile</string>
|
<string>iconfile</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>10.13.0</string>
|
<string>11.7.0</string>
|
||||||
<key>NSHighResolutionCapable</key>
|
<key>NSHighResolutionCapable</key>
|
||||||
<string>true</string>
|
<string>true</string>
|
||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
|
|
Loading…
Reference in New Issue