PlusstarData.php 777 Bytes
<?php
namespace LibModels\Web\Guang;
use Api\Yohobuy;
use Api\Sign;
class PlusstarData {
    const URI_BRANDLIST = 'guang/api/v3/plustar/getlist';
    
    /**
     * 获取品牌列表
     * 
     * @param int $brandType
     * @param string $gender
     * @param string $type
     * @return array
     */
    public static function getList($brandType, $gender = '', $type = 'h5') {
        // 公共的参数
        $param = Yohobuy::param();
        $param['gender'] = $gender;
        $param['brand_type'] = $brandType;
        $param['gender'] = $gender;
        $param['client_type'] = $type;
        $param['client_secret'] = Sign::getSign($param);
        return Yohobuy::get(Yohobuy::SERVICE_URL . self::URI_BRANDLIST, $param);
    }
    
}