12345678910111213141516171819202122232425 |
- <?php
- namespace app\common\model;
- use think\Cache;
- use think\Model;
- /**
- * 地区数据模型
- */
- class Message extends Model
- {
- protected $name = 'park_message';
- public function getImageAttr($value)
- {
- return config('site.httpurl').$value;
- }
- public function getContentAttr($value)
- {
- return str_replace('src="','src="'.config('site.httpurl'),$value);
- }
- }
|