/** * * 构建消息返回值(失败) * * @param mixed $data * 扩展包含数据 * @param int $code * 代码 * * @return RPCMessageReturn */ public static function createFail($code = 0, $data = null, $code_string = '') { return RPCMessageReturn::Ret(false, $code, $data, $code_string); }
/** * 返回RPC调用 * @return RPCMessageReturn */ public function toRpcMessageReturn() { return RPCMessageReturn::createWithRPCMessage($this); }