摘要 |
Disclosed in embodiments of the present invention are an interface invoking method and terminal. The method comprises: receiving an interface invoking request, the interface invoking request carrying an interface identifier and an interface parameter corresponding to a target interface required to be invoked by a client script; determining, according to the interface identifier, an invoking mode of the target interface; determining, according to the invoking mode and the interface parameter, a first parameter in input parameters of a target interface function corresponding to the target interface; invoking the target interface function by utilizing a request identifier of the interface invoking request and the first parameter as the input parameters of the target interface function; acquiring output parameters returned after invoking the target interface function, the output parameters comprising the request identifier and a second parameter; and returning, based on the second parameter, an invoking result of the interface invoking request corresponding to the request identifier to the client script. The embodiments of the present invention improve a development efficiency of an expansion interface. |