Skip to content

Commit

Permalink
获取json内容时进行类型转换
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickyxing committed Jan 5, 2016
1 parent c29558a commit 54181f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aimijia.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class DNS:
jsonfile = file('key.json')
s = json.load(jsonfile)
aliyun.setDefaultAppInfo(s['id'],s['secret'])
aliyun.setDefaultAppInfo(str(s["id"]),str(s["secret"]))
def getDNSIp(self):
b = aliyun.api.Dns20150109DescribeDomainRecordInfoRequest()
try:
Expand Down

0 comments on commit 54181f4

Please sign in to comment.