Browse Source

修复bug

master v0.7.5
listen 3 years ago
parent
commit
609515783b
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      code_bank.go

+ 9
- 1
code_bank.go View File

@ -1,6 +1,7 @@
package siterpc
import (
"encoding/json"
"errors"
)
@ -41,9 +42,16 @@ func GetOneCode(site_id, dbname string, url ...string) (string, error) {
return "", err
}
var bankCode string
err = json.Unmarshal([]byte(res_data_de),&bankCode)
if err != nil {
return "", err
}
if res_data_de == "" {
return "", nil
}
return res_data_de, nil
return bankCode, nil
}

Loading…
Cancel
Save