コード例 #1
0
 /**
  *
  * 构建消息返回值(失败)
  *
  * @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);
 }
コード例 #2
0
 /**
  * 返回RPC调用
  * @return RPCMessageReturn
  */
 public function toRpcMessageReturn()
 {
     return RPCMessageReturn::createWithRPCMessage($this);
 }