This website works better with JavaScript.
Home
Explore
Help
Sign In
tgo
/
siterpc
Watch
6
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
20
Wiki
Activity
Browse Source
修复bug
master
v0.7.5
listen
3 years ago
parent
31ade9a301
commit
609515783b
1 changed files
with
9 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
bankCo
de
,
nil
}
Write
Preview
Loading…
Cancel
Save