|
@@ -25,7 +25,7 @@ class Caozuoguifan extends Apic
|
|
|
$list = Db::name($this->table)->field('content',true)->where('company_id',$this->auth->company_id)->where($where)->paginate();
|
|
|
$total = $list->total();
|
|
|
$list = $list->items();
|
|
|
- $list = list_domain_image($list,['image']);
|
|
|
+ $list = list_domain_image($list,['image','videofile']);
|
|
|
|
|
|
$rs = [
|
|
|
'list' => $list,
|
|
@@ -42,6 +42,7 @@ class Caozuoguifan extends Apic
|
|
|
'type_id' => input('type_id',0),
|
|
|
'image' => input('image',''),
|
|
|
'content' => input('content',''),
|
|
|
+ 'videofile' => input('videofile',''),
|
|
|
'createtime' => time(),
|
|
|
'updatetime' => time(),
|
|
|
];
|
|
@@ -54,7 +55,7 @@ class Caozuoguifan extends Apic
|
|
|
public function info(){
|
|
|
$id = input('id',0);
|
|
|
$info = Db::name($this->table)->where('id',$id)->where('company_id',$this->auth->company_id)->find();
|
|
|
- $info = info_domain_image($info,['image']);
|
|
|
+ $info = info_domain_image($info,['image','videofile']);
|
|
|
|
|
|
$this->success(1,$info);
|
|
|
}
|
|
@@ -71,6 +72,7 @@ class Caozuoguifan extends Apic
|
|
|
'type_id' => input('type_id',0),
|
|
|
'image' => input('image',''),
|
|
|
'content' => input('content',''),
|
|
|
+ 'videofile' => input('videofile',''),
|
|
|
'updatetime' => time(),
|
|
|
];
|
|
|
|