Commit a33f5484 authored by 杨成林's avatar 杨成林

Merge branch 'ycl/fix' into 'test'

fix

See merge request alpha/sun!393
parents fd49a9b3 88bd4fa7
...@@ -203,10 +203,10 @@ class KOLPoolRm(APIView): ...@@ -203,10 +203,10 @@ class KOLPoolRm(APIView):
def post(self, request): def post(self, request):
user_ids = json.loads(request.GET.get('user_ids', "[]")) user_ids = json.loads(request.POST.get('user_ids', "[]"))
try: try:
res = self.rpc['venus/sun/user/kol_pool_rm']( res = self.rpc['venus/sun/user/kol_pool/delete'](
user_ids=user_ids user_ids=user_ids
).unwrap() ).unwrap()
...@@ -221,10 +221,10 @@ class KOLPoolAdd(APIView): ...@@ -221,10 +221,10 @@ class KOLPoolAdd(APIView):
def post(self, request): def post(self, request):
user_ids = json.loads(request.GET.get('user_ids', "[]")) user_ids = json.loads(request.POST.get('user_ids', "[]"))
try: try:
self.rpc['venus/sun/user/kol_pool_add']( self.rpc['venus/sun/user/kol_pool/add'](
user_ids=user_ids user_ids=user_ids
).unwrap() ).unwrap()
...@@ -237,10 +237,10 @@ class KOLPoolEdit(APIView): ...@@ -237,10 +237,10 @@ class KOLPoolEdit(APIView):
def post(self, request): def post(self, request):
data = json.loads(request.GET.get('data', "{}")) data = json.loads(request.POST.get('data', "{}"))
try: try:
self.rpc['venus/sun/user/kol_pool_edit']( self.rpc['venus/sun/user/kol_pool/edit'](
user_ids=data user_ids=data
).unwrap() ).unwrap()
......
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