|
@@ -165,7 +165,7 @@ class InfoController extends Controller
|
|
$data = (array) request('data');
|
|
$data = (array) request('data');
|
|
if ($data['status']==2) { //审核不过
|
|
if ($data['status']==2) { //审核不过
|
|
$info = [
|
|
$info = [
|
|
- 'user_id' => $data['user_id'],
|
|
|
|
|
|
+ 'to_user_id' => $data['user_id'],
|
|
'message' => ' 你的梦想被暂停,客服会在短时间内联络你',
|
|
'message' => ' 你的梦想被暂停,客服会在短时间内联络你',
|
|
'type_id' => 1,
|
|
'type_id' => 1,
|
|
'attr_id' => 5,
|
|
'attr_id' => 5,
|
|
@@ -210,8 +210,16 @@ class InfoController extends Controller
|
|
}
|
|
}
|
|
if (!$file = VideoUpload::mvFile('file')) return back()->with('error','上传失败');
|
|
if (!$file = VideoUpload::mvFile('file')) return back()->with('error','上传失败');
|
|
$data["video"] = $file;
|
|
$data["video"] = $file;
|
|
|
|
+ }else{
|
|
|
|
+// 更新是视频不存在则删除
|
|
|
|
+ $dream = $this->repository->find(request('id'));
|
|
|
|
+ $dream->video = '';
|
|
|
|
+ $dream->save();
|
|
|
|
+ dd($dream);
|
|
}
|
|
}
|
|
|
|
+ dd(request("file"));
|
|
if (!empty($pics)) {
|
|
if (!empty($pics)) {
|
|
|
|
+// 图片不为空
|
|
$old_data_pics = $this->repository->find(request('id'))->imgs->toArray();
|
|
$old_data_pics = $this->repository->find(request('id'))->imgs->toArray();
|
|
$old_pics = array_column($old_data_pics,'pic');
|
|
$old_pics = array_column($old_data_pics,'pic');
|
|
$a = array_diff($pics['url'],$old_pics);
|
|
$a = array_diff($pics['url'],$old_pics);
|