21 lines
390 B
PHP
21 lines
390 B
PHP
<?php
|
|
|
|
namespace app\common\model;
|
|
|
|
use app\common\basics\Models;
|
|
use think\facade\Config;
|
|
|
|
class BusinessSchool extends Models
|
|
{
|
|
public function category()
|
|
{
|
|
return $this->hasOne('BusinessSchoolCategory', 'id', 'cid');
|
|
}
|
|
|
|
public function getVideoAttr($value)
|
|
{
|
|
if ($value) {
|
|
return Config::get('aliyunoss.domain') . $value;
|
|
}
|
|
}
|
|
} |