Files
OMS/app/wmsmgr/lib/auth/config.php
2025-12-28 23:13:25 +08:00

158 lines
4.6 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.
*/
/**
* CONFIG
*
* @category
* @package
* @author chenping<chenping@shopex.cn>
* @version $Id: Z
*/
class wmsmgr_auth_config
{
private $__config = array(
'selfwms' => array(
'label' => '系统自有仓储',
'desc' => '使用系统自带自有仓储发货',
),
'matrixwms' => array(
'label' => '商派矩阵',
'desc' => '通过WEBSERVICE和第三方仓储进行对接,如(科捷,酷武,伊藤忠)',
'platform' => array(
'other' => array(
'label' => '其他',
'desc' => '未指定具体仓储,需在绑定时指定',
'params' => array(),
),
'bms' => array(
'label'=>'菜鸟BMS',
'desc'=>'对接菜鸟BMS系统需先创建店铺绑定',
'params' => array(),
),
'bim' => array(
'label'=>'菜鸟保税',
'desc'=>'对接菜鸟保税&GFC需先创建店铺绑定',
'params' => array(),
),
'yph' => array(
'label'=>'京东一盘货',
'desc'=>'对接京东一盘货,需先创建店铺绑定',
'params' => array(),
),
// 'yjdf' => array(
// 'label'=>'京东一件代发',
// 'desc'=>'对接京东一键代发先联系商派获取node_id',
// 'params' => array(
// 'node_id' => 'node_id'
// ),
// ),
),
),
'openapiwms' => array(
'label' => '本地API直联',
'platform' => array(),
'desc' => '可通过API接口直接对接第三方仓储',
),
'ilcwms' => array(
'label' => '通过FTP直联',
'desc' => '通过配置,使用FTP方式和第三方仓储进行系统对接(如伊藤忠FTP)'
),
'mixturewms'=>array(
'label'=>'FTP云对接混合模式',
'desc' => '通过配置,使用FTP方式和WEBSERVICE和第三方仓储对接,如(伊藤忠FTP)'
),
);
/**
* __construct
* @return mixed 返回值
*/
public function __construct()
{
$openapi_platform = array (
'cnss' =>
array (
'label' => '镜宴',
'desc' => 'desc',
),
'publicwms' =>
array (
'label' => '标准',
'desc' => 'desc',
'params' =>
array (
),
),
'sku360' =>
array (
'label' => 'sku360',
'desc' => 'desc',
'params' =>
array (
'appkey' => 'appkey',
'owner' => 'owner',
),
),
);
$this->__config['openapiwms']['platform'] = $openapi_platform;
}
/**
* 获取Config
* @return mixed 返回结果
*/
public function getConfig()
{
return $this->__config;
}
/**
* 获取AdapterList
* @return mixed 返回结果
*/
public function getAdapterList()
{
$adapter = array();
foreach ($this->__config as $key => $value) {
$adapter[] = array('value'=>$key, 'label'=>$value['label'], 'desc'=>$value['desc']);
}
return $adapter;
}
/**
* 获取PlatformList
* @param mixed $adapter adapter
* @return mixed 返回结果
*/
public function getPlatformList($adapter)
{
$platform = array();
foreach ($this->__config[$adapter]['platform'] as $key => $value) {
$platform[] = array('value'=>$key, 'label'=>$value['label']);
}
return $platform;
}
/**
* 获取PlatformParam
* @param mixed $platform platform
* @return mixed 返回结果
*/
public function getPlatformParam($platform)
{
return $this->__config['openapiwms']['platform'][$platform]['params'];
}
}