|
- def return_info(ret, guid):
- if ret is None:
- result = {"guid": guid}
- elif ret == -1:
- result = {"guid": guid, "error_code": ret,
- "error_msg": "The model file dose not match the current option."}
- elif ret == -2:
- result = {"guid": guid, "error_code": ret,
- "error_msg": "The model file dose not match the current option."}
- elif ret == -3:
- result = {"guid": guid, "error_code": ret,
- "error_msg": "No such file or directory."}
- elif ret == -4:
- result = {"guid": guid, "error_code": ret,
- "error_msg": "The model file dose not match the current option."}
- elif ret == -5:
- result = {"guid": guid, "error_code": ret,
- "error_msg": "The model file dose not match the current option."}
- elif ret == -6:
- result = {"guid": guid, "error_code": ret,
- "error_msg": "The model file dose not match the current option."}
- elif ret == -7:
- result = {"guid": guid, "error_code": ret,
- "error_msg": "The model file dose not match the current option."}
- elif ret == -8:
- result = {"guid": guid, "error_code": ret,
- "error_msg": "The model file dose not match the current option."}
- elif ret == -9:
- result = {"guid": guid, "error_code": ret,
- "error_msg": "please input correct model data."}
- elif ret == -10:
- result = {"guid": guid, "error_code": ret,
- "error_msg": "The model data is Error."}
- else:
- result = {"guid": guid, "error_code": ret,
- "error_msg": "import failure!"}
- return result
|