Files
OMS/app/ome/lib/order/abstract.php
2025-12-28 23:13:25 +08:00

45 lines
874 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
/**
* 抽象类
*
* @author wangbiao@shopex.cn
* @version 2025.02.28
*/
abstract class ome_order_abstract
{
public $page_size = 100;
public function __construct()
{
//--
}
/**
* 成功输出
*
* @param string $msg
* @param string $data
* @return array
*/
final public function succ($msg='', $data=null)
{
return array('rsp'=>'succ', 'msg'=>$msg, 'data'=>$data);
}
/**
* 失败输出
*
* @param string $msg
* @param string $data
* @return array
*/
final public function error($error_msg, $data=null)
{
return array('rsp'=>'fail', 'msg'=>$error_msg, 'error_msg'=>$error_msg, 'data'=>$data);
}
}