Commit 61af6094 by 柴鹏飞

dmp接口调整

parent ed769b35
......@@ -127,7 +127,7 @@ class UserCFRecommender(Recommender):
}
try:
response = requests.request('POST', self.dmp_url, headers=headers, json=payload)
response = requests.request('POST', self.dmp_url + user_id, headers=headers, json=payload)
resp = response.json()
return resp['data']['objects'][0]
except Exception as e:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment