正在显示
1 个修改的文件
包含
31 行增加
和
0 行删除
| @@ -9,6 +9,7 @@ | @@ -9,6 +9,7 @@ | ||
| 9 | 9 | ||
| 10 | namespace App\Models\Geo; | 10 | namespace App\Models\Geo; |
| 11 | 11 | ||
| 12 | +use App\Helper\Arr; | ||
| 12 | use App\Models\Base; | 13 | use App\Models\Base; |
| 13 | 14 | ||
| 14 | /** | 15 | /** |
| @@ -21,4 +22,34 @@ use App\Models\Base; | @@ -21,4 +22,34 @@ use App\Models\Base; | ||
| 21 | class GeoQuestionResult extends Base | 22 | class GeoQuestionResult extends Base |
| 22 | { | 23 | { |
| 23 | protected $table = 'gl_geo_question_result'; | 24 | protected $table = 'gl_geo_question_result'; |
| 25 | + /** | ||
| 26 | + * @remark :geo提交关键字获取器 | ||
| 27 | + * @name :getUrlAttribute | ||
| 28 | + * @author :lyh | ||
| 29 | + * @method :post | ||
| 30 | + * @time :2025/7/3 9:53 | ||
| 31 | + */ | ||
| 32 | + public function getKeywordsAttribute($value) | ||
| 33 | + { | ||
| 34 | + if($value){ | ||
| 35 | + $value = Arr::s2a($value); | ||
| 36 | + } | ||
| 37 | + return $value; | ||
| 38 | + } | ||
| 39 | + | ||
| 40 | + /** | ||
| 41 | + * @remark :geo提交网址获取器 | ||
| 42 | + * @name :getUrlAttribute | ||
| 43 | + * @author :lyh | ||
| 44 | + * @method :post | ||
| 45 | + * @time :2025/7/3 9:52 | ||
| 46 | + */ | ||
| 47 | + public function getUrlAttribute($value) | ||
| 48 | + { | ||
| 49 | + if($value){ | ||
| 50 | + $value = Arr::s2a($value); | ||
| 51 | + } | ||
| 52 | + return $value; | ||
| 53 | + } | ||
| 54 | + | ||
| 24 | } | 55 | } |
-
请 注册 或 登录 后发表评论