|
|
@ -67,11 +67,13 @@ class DeveloperView(APIView): |
|
|
|
if act: |
|
|
|
if act: |
|
|
|
res = BaseResponse() |
|
|
|
res = BaseResponse() |
|
|
|
logger.info("user %s iosdeveloper %s act %s" % (request.user, developer_obj, act)) |
|
|
|
logger.info("user %s iosdeveloper %s act %s" % (request.user, developer_obj, act)) |
|
|
|
if act == "preactive": |
|
|
|
if act == "checkauth": |
|
|
|
status, result = IosUtils.active_developer(developer_obj) |
|
|
|
status, result = IosUtils.active_developer(developer_obj) |
|
|
|
if status: |
|
|
|
if status: |
|
|
|
if not developer_obj.certid: |
|
|
|
if not developer_obj.certid: |
|
|
|
IosUtils.get_device_from_developer(developer_obj, request.user) |
|
|
|
IosUtils.get_device_from_developer(developer_obj, request.user) |
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
IosUtils.check_developer_cert(developer_obj, request.user) |
|
|
|
return self.get(request) |
|
|
|
return self.get(request) |
|
|
|
else: |
|
|
|
else: |
|
|
|
res.code = 1008 |
|
|
|
res.code = 1008 |
|
|
@ -111,14 +113,6 @@ class DeveloperView(APIView): |
|
|
|
res.code = 1008 |
|
|
|
res.code = 1008 |
|
|
|
res.msg = result.get("err_info") |
|
|
|
res.msg = result.get("err_info") |
|
|
|
return Response(res.dict) |
|
|
|
return Response(res.dict) |
|
|
|
elif act == "checkauth": |
|
|
|
|
|
|
|
status, result = IosUtils.active_developer(developer_obj) |
|
|
|
|
|
|
|
if status: |
|
|
|
|
|
|
|
return self.get(request) |
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
res.code = 1008 |
|
|
|
|
|
|
|
res.msg = result.get("return_info") |
|
|
|
|
|
|
|
return Response(res.dict) |
|
|
|
|
|
|
|
else: |
|
|
|
else: |
|
|
|
logger.info("user %s iosdeveloper %s update input data %s" % (request.user, developer_obj, data)) |
|
|
|
logger.info("user %s iosdeveloper %s update input data %s" % (request.user, developer_obj, data)) |
|
|
|
logger.info("user %s iosdeveloper %s update old data %s" % ( |
|
|
|
logger.info("user %s iosdeveloper %s update old data %s" % ( |
|
|
|