Authored by cailing

PHP接口调用修改解决冲突

... ... @@ -12,7 +12,6 @@
namespace Api;
use Plugin\Cache;
class Yohobuy
{
/* 正式环境 */
... ... @@ -66,8 +65,10 @@ class Yohobuy
*/
public static function clientType()
{
if(self::isMobile()) {
return 'h5';
}
else {
return 'web';
... ... @@ -486,6 +487,7 @@ class Yohobuy
return $result;
}
/**
* 获取用户User-Agent
* @return bool
... ...
... ... @@ -338,7 +338,7 @@ class Helpers
$result = array();
$result['id'] = $articleData['id'];
$result['showTags'] = $showTag;
$result['img'] = self::getImageUrl($articleData['src'], 640, 640);
$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');
$result['title'] = $articleData['title'];
$result['text'] = $articleData['intro'];
... ...