You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
109 lines
4.2 KiB
PHP
109 lines
4.2 KiB
PHP
<?php
|
|
|
|
class SearchSameGoodsConst {
|
|
|
|
const searchTypeSearchByTitle = 'searchByTitle';
|
|
const searchTypeSearchByImage = 'searchByImage';
|
|
|
|
const platformTaobao = 'taobao';
|
|
const platformEtao = 'etao';
|
|
const platformPdd = 'yangkeduo';
|
|
const platformTmall = 'tmall';
|
|
const platform1688 = '1688';
|
|
const platformJd = 'jd';
|
|
const platformWsy = 'wsy';
|
|
const platformZhe800 = 'zhe800';
|
|
const platformSooxie = 'sooxie';
|
|
const platformVvic = 'vvic';
|
|
const platform17qcc = '17qcc';
|
|
|
|
public static function getSearchSameGoodsTypeAndNameMap() {
|
|
return [
|
|
self::searchTypeSearchByTitle => '搜标题同款',
|
|
self::searchTypeSearchByImage => '搜图片同款',
|
|
];
|
|
}
|
|
|
|
public static function getSearchSamePlatformList() {
|
|
return [
|
|
[
|
|
'platform' => self::platformTaobao,
|
|
'name' => '淘宝',
|
|
'logo' => 'http://pub.chengji-inc.com/static_common/image/shop/taobao.png',
|
|
'sameItemUrl' => 'https://s.taobao.com/search?q=',
|
|
'searchTypes' => [self::searchTypeSearchByTitle, self::searchTypeSearchByImage],
|
|
],
|
|
[
|
|
'platform' => self::platformEtao,
|
|
'name' => '一淘网',
|
|
'logo' => 'http://pub.chengji-inc.com/static_common/image/shop/etao.png',
|
|
'sameItemUrl' => 'https://www.etao.com/search.htm?nq=',
|
|
'searchTypes' => [self::searchTypeSearchByTitle],
|
|
],
|
|
[
|
|
'platform' => self::platformTmall,
|
|
'name' => '天猫',
|
|
'logo' => 'http://pub.chengji-inc.com/static_common/image/shop/tmall.png',
|
|
'sameItemUrl' => 'https://list.tmall.com/search_product.htm?q=',
|
|
'searchTypes' => [self::searchTypeSearchByTitle],
|
|
],
|
|
[
|
|
'platform' => self::platform1688,
|
|
'name' => '1688',
|
|
'logo' => 'http://pub.chengji-inc.com/static_common/image/shop/1688.png',
|
|
'sameItemUrl' => 'https://s.1688.com/selloffer/offer_search.htm?charset=utf8&keywords=',
|
|
'searchTypes' => [self::searchTypeSearchByTitle, self::searchTypeSearchByImage],
|
|
],
|
|
[
|
|
'platform' => self::platformJd,
|
|
'name' => '京东',
|
|
'logo' => 'http://pub.chengji-inc.com/static_common/image/shop/jd.png',
|
|
'sameItemUrl' => 'https://search.jd.com/Search?enc=utf-8&keyword=',
|
|
'searchTypes' => [self::searchTypeSearchByTitle, self::searchTypeSearchByImage],
|
|
],
|
|
[
|
|
'platform' => self::platformPdd,
|
|
'name' => '拼多多',
|
|
'logo' => 'http://pub.chengji-inc.com/static_common/image/shop/yangkeduo.png',
|
|
'sameItemUrl' => 'https://mobile.yangkeduo.com/search_result.html?search_key=',
|
|
'searchTypes' => [self::searchTypeSearchByTitle],
|
|
],
|
|
[
|
|
'platform' => self::platformWsy,
|
|
'name' => '网商园',
|
|
'logo' => 'http://pub.chengji-inc.com/static_common/image/shop/wsy.png',
|
|
'sameItemUrl' => 'https://www.wsy.com/search.htm?accurate=&search_type=item&q=',
|
|
'searchTypes' => [self::searchTypeSearchByTitle, self::searchTypeSearchByImage],
|
|
],
|
|
[
|
|
'platform' => self::platformZhe800,
|
|
'name' => '折800',
|
|
'logo' => 'http://pub.chengji-inc.com/static_common/image/shop/zhe800.png',
|
|
'sameItemUrl' => 'https://search.zhe800.com/search?keyword=',
|
|
'searchTypes' => [self::searchTypeSearchByTitle],
|
|
],
|
|
[
|
|
'platform' => self::platform17qcc,
|
|
'name' => '青创网',
|
|
'logo' => 'http://pub.chengji-inc.com/static_common/image/shop/17qcc.png',
|
|
'sameItemUrl' => 'https://www.17qcc.com/list.html?keyword=',
|
|
'searchTypes' => [self::searchTypeSearchByTitle],
|
|
|
|
],
|
|
[
|
|
'platform' => self::platformSooxie,
|
|
'name' => '搜鞋网',
|
|
'logo' => 'http://pub.chengji-inc.com/static_common/image/shop/sooxie.png',
|
|
'sameItemUrl' => 'https://www.sooxie.com/?s=',
|
|
'searchTypes' => [self::searchTypeSearchByTitle, self::searchTypeSearchByImage],
|
|
],
|
|
[
|
|
'platform' => self::platformVvic,
|
|
'name' => '搜款网',
|
|
'logo' => 'http://pub.chengji-inc.com/static_common/image/shop/vvic.png',
|
|
'sameItemUrl' => 'https://www.vvic.com/gz/search/index.html?q=',
|
|
'searchTypes' => [self::searchTypeSearchByTitle, self::searchTypeSearchByImage],
|
|
],
|
|
];
|
|
}
|
|
} |