mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-31 21:25:33 +08:00
35 lines
642 B
PHP
35 lines
642 B
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
|
||
class ome_rpc_result{
|
||
|
||
function __construct($response){
|
||
$this->response = $response;
|
||
}
|
||
|
||
function set_callback_params($params){
|
||
$this->callback_params = $params;
|
||
}
|
||
|
||
function get_callback_params(){
|
||
return $this->callback_params;
|
||
}
|
||
|
||
function get_status(){
|
||
return $this->response['rsp'];
|
||
}
|
||
|
||
function get_data(){
|
||
return json_decode($this->response['data'],1);
|
||
}
|
||
|
||
function get_result(){
|
||
return $this->response['res'];
|
||
}
|
||
|
||
}
|