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

82 lines
1.3 KiB
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.
*/
abstract class erpapi_channel_abstract
{
/**
* 路由 matrix|openapi|prism
*
* @var string
**/
protected $__adapter = '';
/**
* 请求平台
*
* @var string
**/
protected $__platform = '';
protected $__platform_business = '';
/**
* 平台版本
*
* @var string
**/
protected $__ver = '1';
/**
*
*
* @return void
* @author
**/
public function get_adapter()
{
return $this->__adapter;
}
/**
* 请求平台
*
* @return void
* @author
**/
public function get_platform()
{
return $this->__platform;
}
/**
* 请求平台业务
*
* @return void
* @author
**/
public function get_platform_business()
{
return (string)$this->__platform_business;
}
/**
* 版本号
*
* @return void
* @author
**/
public function get_ver()
{
return $this->__ver;
}
/**
* 初始化请求配置
*
* @return void
* @author
**/
abstract public function init($node_id,$channel_id);
}