array(
'label' => '商派矩阵对接',
'desc' => '
'
. '- 商派矩阵是商派提供的统一对接平台,快速对接主流电商平台(淘宝、天猫、京东、拼多多、抖音、快手等)。
'
. '- 自动处理订单同步、库存同步、发货回传等核心功能,安全稳定,无需自研接口。
'
. '- 首次使用赠送 500条订单流量,超出部分按增量包购买。
'
. '- 订单流量价格:
'
. '• 部署在商派聚石塔:1万订单/300元/年、10万订单/2000元/年、100万订单/10000元/年
'
. '• 非部署在商派聚石塔:1万订单/1500元/年、10万订单/10000元/年、100万订单/50000元/年 '
. '- 依据法律法规要求,使用商派矩阵需完成 企业实名认证。
'
. '
',
),
'openapi' => array(
'label' => '商家自研对接',
'platform' => array(),
'desc' => ''
. '- 通过 API 接口自研对接各电商平台及其他渠道,灵活控制。
'
. '- OMS 订单接口字段映射参考
'
. '- 更多内容参考各电商开放平台官方指导,技术问题请咨询对应平台。
'
. '- 主要开放平台链接:
'
. ''
. '
',
),
);
/**
* __construct
* @return mixed 返回值
*/
public function __construct()
{
$openapi_platform = array(
'website' =>
array(
'label' => 'website',
'desc' => 'desc',
'params' =>
array(
'website_url' => 'API地址',
'website_response_secret' => 'SECRET',
'node_id' => '节点',
),
),
'website_d1m' =>
array(
'label' => 'website_d1m',
'desc' => 'desc',
'params' =>
array(
'website_d1m_url' => 'API地址',
'website_d1m_request_appkey' => 'D1M APPKEY',
'website_d1m_request_secret' => 'D1M SECRET',
'd1m_response_secret' => 'SECRET',
'node_id' => '节点',
),
),
'website_v2' =>
array(
'label' => 'website_v2',
'desc' => '支持接收未支付订单',
'params' =>
array(
'website_url' => 'API地址',
'website_response_secret' => 'SECRET',
'node_id' => '节点',
),
),
'b2b' =>
array(
'label' => 'B2B',
'desc' => 'B2B平台对接',
'params' =>
array(
'b2b_url' => 'API地址',
'b2b_response_secret' => 'RESPONSE SECRET',
'node_id' => '节点',
),
),
);
foreach (ome_shop_type::get_shop_type() as $key => $value) {
if (isset($openapi_platform[$key])) {
continue;
}
$openapi_platform[$key] = array(
'label' => $key,
'desc' => $value,
'params' =>
array(
'website_url' => 'API地址',
'website_response_secret' => 'SECRET',
'node_id' => '节点',
),
);
}
$this->__config['openapi']['platform'] = $openapi_platform;
}
/**
* 获取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, $shop_type = '')
{
$platform = array();
foreach ($this->__config[$adapter]['platform'] as $key => $value) {
if ($shop_type && $key != $shop_type) {
continue;
}
$platform[] = array('value' => $key, 'label' => $value['label']);
}
return $platform;
}
/**
* 获取PlatformParam
* @param mixed $platform platform
* @return mixed 返回结果
*/
public function getPlatformParam($platform)
{
return $this->__config['openapi']['platform'][$platform]['params'];
}
}