GeoQuestion.php
1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?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';
public $frequency = [1,2,3,4,5,6,7,8,9,10];//类型
const TYPE_BRAND = 1;
const TYPE_MARKET = 2;
const STATUS_CLOSE = 0;
const STATUS_OPEN = 1;
/**
* @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;
}
/**
* 品牌类型
* @return array
*/
public function brandType(){
return [
self::TYPE_BRAND => '品牌数据',
self::TYPE_MARKET => '营销数据'
];
}
}