...
|
...
|
@@ -88,9 +88,14 @@ class Helpers |
|
|
{
|
|
|
$url = strtr($url, array('.m.yohobuy.com' => SUB_DOMAIN, OLD_MAIN => SITE_MAIN, 'www.yohobuy.com' => SITE_MAIN));
|
|
|
if (strrpos($url, 'm.yohobuy.com') && !strrpos($url, 'sale.m.yohobuy.com') && !strrpos($url, 'cuxiao.m.yohobuy.com')
|
|
|
&& !strrpos($url, 'activity.m.yohobuy.com') && !strrpos($url, 'huodong.m.yohobuy.com') && strrpos($url, 'cdn.yoho.cn') && strrpos($url, 'feature.yoho.cn') && !strrpos($url, '/home/orders/pay')) {
|
|
|
&& !strrpos($url, 'activity.m.yohobuy.com') && !strrpos($url, 'huodong.m.yohobuy.com') && strrpos($url, 'cdn.yoho.cn/myohobuy') && !strrpos($url, '/home/orders/pay')) {
|
|
|
$url = strtr($url, array('http://' => '//'));
|
|
|
}
|
|
|
|
|
|
if (strrpos($url, 'feature.yoho.cn')) {
|
|
|
$url = self::transHttpsUrl($url);
|
|
|
}
|
|
|
|
|
|
$filter = strstr($url, 'openby:yohobuy=', true);
|
|
|
if ($filter) {
|
|
|
return rtrim(rtrim($filter, '?'), '&');
|
...
|
...
|
@@ -349,6 +354,11 @@ class Helpers |
|
|
$result['showTags'] = $showTag;
|
|
|
$result['img'] = isset($articleData['src']) ? self::getImageUrl($articleData['src'], 640, 640) : '';
|
|
|
$result['url'] = $articleData['url']; //$isApp ? $articleData['url'] : self::url('/info/index', array('id' => $articleData['id']), 'guang');
|
|
|
|
|
|
if (strrpos($result['url'], 'feature.yoho.cn') || strrpos($result['url'], 'cdn.yoho.cn')) {
|
|
|
$result['url'] = self::transHttpsUrl($result['url']);
|
|
|
}
|
|
|
|
|
|
$result['title'] = $articleData['title'];
|
|
|
$result['text'] = $articleData['intro'];
|
|
|
$result['publishTime'] = $articleData['publish_time'];
|
...
|
...
|
|