方维购物分享系统采集天猫淘宝的功能分析

方维购物分享系统后台采集天猫淘宝商品并分享的流程;分四步;

主要的控制器/admin/lib/action/taobaocollect.action.php;

①在采集设置保存并采集之后执行 function collect();内执行/core/service/goods.service.php中的collect函数,数据写入taobao_collect表,这时候在采集商品管理中就有了数据;

②发布到分享之后,采集店铺,先采集店铺执行function shop();数据写入taobao_shop_temp,然后/core/service/goods.service.php中的collectShop函数 删除taobao_shop_temp,写入taobao_shop;

③采集商品,goods();然后/core/service/goods.service.php中的collectGoods函数,删除taobao_collect,写入taobao_share;

④发布分享,share();然后/core/service/goods.service.php中的share()函数,删除taobao_share;然后到/core/service/share.service.php的save()函数,写入share,share_photo,share_goods,shop,shop_match,shop_check,goods,goods_check,goods_match,share_goods,share_check,share_tags,share_user_images,share_category,share_color,share_match,share_images_index,share_user_goods,share_goods_match,share_goods_index,等分享数据表;

原文地址:https://www.cnblogs.com/wangtongphp/p/3026268.html