GeoQuestion.php
1.6 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
<?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];//类型
/**
* @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=>'营销数据'
];
}
}