'0', 'code' => $data['code'], 'message' => $data['message'] ); echo json_encode($result); return; } } //执行请求 echo json_encode($controller->$action($requestPayload)); } }