Files
OMS/app/tbo2o/lib/shop/service/factory.php
2025-12-28 23:13:25 +08:00

46 lines
986 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 0.1
*/
class tbo2o_shop_service_factory
{
function __construct(&$app)
{
$this->app = $app;
}
/**
* 工厂方法
* @todo 只支持淘宝类型店铺
*
* @return void
* @author
*/
public static function createFactory($shop_type, $business_type='zx')
{
switch ($shop_type)
{
case 'taobao':
if ($business_type == 'fx')
{
return kernel::single('tbo2o_shop_service_tbfx');
}
else
{
return kernel::single('tbo2o_shop_service_taobao');
}
break;
default:
return false;
break;
}
}
}