@@ -22,4 +22,24 @@ class GongdengFoxiangModel extends BaseModel
{
// 设置数据表
protected $table = 'gongdeng_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']);
+ }
+ return $info;
}