This commit is contained in:
cdle 2021-08-17 22:37:20 +08:00
parent 92ebe5152d
commit c3660eb4d1

View File

@ -121,7 +121,7 @@ func (c *Container) write(cks []JdCookie) error {
if len(cks) != 0 {
for _, ck := range cks {
if ck.Available == True {
hh = append(hh, fmt.Sprintf(`{"name":"JD_COOKIE","value":"pt_key=%s;pt_pin=%s;","remarks":"%s"}`, ck.PtKey, ck.PtPin, ck.Note))
hh = append(hh, fmt.Sprintf(`{"name":"JD_COOKIE","value":"pt_key=%s;pt_pin=%s;","remarks":"%s"}`, ck.PtKey, ck.PtPin, ck.Nickname))
}
}
c.request("/api/envs", POST, fmt.Sprintf(`[%s]`, strings.Join(hh, ",")))