| | |
| | | switch ($retData["rspCode"]){ |
| | | case "e00000": |
| | | $userApi = new UserApi(); |
| | | switch (getUrl($_SERVER['REQUEST_URI'])) |
| | | { |
| | | case "getUserList": |
| | | $retData["rspData"] = $userApi->getUserList($retData["repData"]); |
| | | break; |
| | | case "getUserOrderList": |
| | | $retData["rspData"] = $userApi->getUserOrderList($retData["repData"]); |
| | | break; |
| | | default: http_response_code(404); |
| | | } |
| | | try { |
| | | switch (getUrl($_SERVER['REQUEST_URI'])) |
| | | { |
| | | case "getUserList": |
| | | $retData["rspData"] = $userApi->getUserList($retData["repData"]); |
| | | break; |
| | | case "getUserOrderList": |
| | | $retData["rspData"] = $userApi->getUserOrderList($retData["repData"]); |
| | | break; |
| | | default: http_response_code(404); |
| | | } |
| | | } catch (Exception $e){ |
| | | $retData["rspCode"] = "e99999"; |
| | | $retData["rspData"] = $e->getMessage(); |
| | | } |
| | | break; |
| | | case "e00001": |
| | | $retData["rspMsg"]="接入平台不存在"; |