GeoQuestion.php 1.6 KB
<?php
/**
 * @remark :
 * @name   :GeoQuestion.php
 * @author :lyh
 * @method :post
 * @time   :2025/7/3 9:05
 */

namespace App\Models\Geo;

use App\Helper\Arr;
use App\Models\Base;

/**
 * @remark :geo设置问题表
 * @name   :GeoQuestion
 * @author :lyh
 * @method :post
 * @time   :2025/7/3 9:05
 */
class GeoQuestion extends Base
{
    protected $table = 'gl_geo_question';

    /**
     * @remark :geo提交网址获取器
     * @name   :getUrlAttribute
     * @author :lyh
     * @method :post
     * @time   :2025/7/3 9:52
     */
    public function getUrlAttribute($value)
    {
        if($value){
            $value = Arr::s2a($value);
        }
        return $value;
    }

    /**
     * @remark :geo提交问题获取器
     * @name   :getUrlAttribute
     * @author :lyh
     * @method :post
     * @time   :2025/7/3 9:53
     */
    public function getQuestionAttribute($value)
    {
        if($value){
            $value = Arr::s2a($value);
        }
        return $value;
    }

    /**
     * @remark :geo提交关键字获取器
     * @name   :getUrlAttribute
     * @author :lyh
     * @method :post
     * @time   :2025/7/3 9:53
     */
    public function getKeywordsAttribute($value)
    {
        if($value){
            $value = Arr::s2a($value);
        }
        return $value;
    }

    /**
     * @remark :品牌类型
     * @name   :brandType
     * @author :lyh
     * @method :post
     * @time   :2025/7/3 9:43
     */
    public function brandType(){
        return [
            1=>'品牌数据',
            2=>'营销数据'
        ];
    }
}