* Cleanup
This commit is contained in:
parent
3a0c24c4dc
commit
db842d507c
|
|
@ -48,5 +48,6 @@ class PoizonClient:
|
||||||
|
|
||||||
def get_good_info(self, spu_id):
|
def get_good_info(self, spu_id):
|
||||||
params = {'spuId': str(spu_id)}
|
params = {'spuId': str(spu_id)}
|
||||||
return self.request('GET', self.SPU_GET_DATA_ENDPOINT, params=params)
|
r = self.request('GET', self.SPU_GET_DATA_ENDPOINT, params=params)
|
||||||
|
return r.json()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -380,5 +380,5 @@ class PoizonAPI(viewsets.GenericViewSet):
|
||||||
if spu_id is None:
|
if spu_id is None:
|
||||||
raise CRMException('url or spuId is required')
|
raise CRMException('url or spuId is required')
|
||||||
|
|
||||||
r = self.client.get_good_info(spu_id)
|
data = self.client.get_good_info(spu_id)
|
||||||
return Response(r.json())
|
return Response(data)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user