| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- // +----------------------------------------------------------------------
- // | Laravel框架 [ Laravel ]
- // +----------------------------------------------------------------------
- // | 版权所有 2017~2021 Laravel研发中心
- // +----------------------------------------------------------------------
- // | 官方网站: http://www.laravel.cn
- // +----------------------------------------------------------------------
- // | Author: wesmiler <12345678@qq.com>
- // +----------------------------------------------------------------------
- namespace App\Models;
- /**
- * 佛像管理-模型
- * @author wesmiler
- * @since 2020/11/11
- * Class FoxiangModel
- * @package App\Models
- */
- class FoxiangModel extends BaseModel
- {
- // 设置数据表
- protected $table = 'foxiang';
- /**
- * 获取记录信息
- * @param int $id 记录ID
- * @return array|string
- * @author wesmiler
- * @since 2020/11/11
- */
- public function getInfo($id)
- {
- $info = parent::getInfo($id); // TODO: Change the autogenerated stub
- if ($info) {
- // 图片
- if ($info['thumb']) {
- $info['thumb'] = get_image_url($info['thumb']);
- }
- if ($info['image']) {
- $info['image'] = get_image_url($info['image']);
- }
- if ($info['file_url']) {
- $info['file_url'] = get_image_url($info['file_url']);
- }
- }
- return $info;
- }
- }
|