mirror of https://github.com/testerSunshine/12306
pull/66/head
parent
de76b2c8ab
commit
75f88a4c1a
|
@ -34,6 +34,7 @@ class RClient(object):
|
||||||
params.update(self.base_params)
|
params.update(self.base_params)
|
||||||
files = {'image': ('a.jpg', im)}
|
files = {'image': ('a.jpg', im)}
|
||||||
r = requests.post('http://api.ruokuai.com/create.json', data=params, files=files, headers=self.headers)
|
r = requests.post('http://api.ruokuai.com/create.json', data=params, files=files, headers=self.headers)
|
||||||
|
print(r)
|
||||||
return r.json()
|
return r.json()
|
||||||
|
|
||||||
def rk_report_error(self, im_id):
|
def rk_report_error(self, im_id):
|
||||||
|
|
Loading…
Reference in New Issue