|
@@ -53,9 +53,8 @@ class WechatCheckController extends CatchController
|
|
'registration_number' => 'required'
|
|
'registration_number' => 'required'
|
|
]);
|
|
]);
|
|
|
|
|
|
- $data = $request->all();
|
|
|
|
|
|
+ $data = $request->only(['producer', 'playwright', 'production_license_img', 'authorized_img', 'registration_number']);
|
|
$data['updated_at'] = date('Y-m-d H:i:s');
|
|
$data['updated_at'] = date('Y-m-d H:i:s');
|
|
- unset($data['id']);
|
|
|
|
DB::table('video_wechat_check')
|
|
DB::table('video_wechat_check')
|
|
->where('id', $request->input('id'))
|
|
->where('id', $request->input('id'))
|
|
->where('is_enabled', 1)
|
|
->where('is_enabled', 1)
|
|
@@ -90,11 +89,11 @@ class WechatCheckController extends CatchController
|
|
$videoId = $request->input('video_id');
|
|
$videoId = $request->input('video_id');
|
|
$producer = $request->input('producer');
|
|
$producer = $request->input('producer');
|
|
$playwright = $request->input('playwright');
|
|
$playwright = $request->input('playwright');
|
|
- $status = $request->input('status',[0]);
|
|
|
|
|
|
+ $status = $request->input('status','');
|
|
|
|
|
|
return DB::table('video_wechat_check as check')
|
|
return DB::table('video_wechat_check as check')
|
|
->join('videos', 'videos.id', 'check.video_id')
|
|
->join('videos', 'videos.id', 'check.video_id')
|
|
- ->whereIn('check.status', $status)
|
|
|
|
|
|
+ ->whereIn('check.status', explode(',', $status))
|
|
->where([
|
|
->where([
|
|
'check.is_enabled' => 1,
|
|
'check.is_enabled' => 1,
|
|
])->when($videoId, function ($query, $videoId) {
|
|
])->when($videoId, function ($query, $videoId) {
|
|
@@ -106,7 +105,7 @@ class WechatCheckController extends CatchController
|
|
})->select('check.id', 'videos.name', 'videos.note', 'videos.total_episode_num',
|
|
})->select('check.id', 'videos.name', 'videos.note', 'videos.total_episode_num',
|
|
'videos.cover_image','check.status','check.producer',
|
|
'videos.cover_image','check.status','check.producer',
|
|
'check.playwright', 'check.production_license_img', 'check.authorized_img', 'check.apply_at',
|
|
'check.playwright', 'check.production_license_img', 'check.authorized_img', 'check.apply_at',
|
|
- 'check.check_at', 'check.check_reason', 'check.registration_number')
|
|
|
|
|
|
+ 'check.check_at', 'check.check_reason', 'check.registration_number', 'check.video_id')
|
|
->orderBy('check.id','desc')
|
|
->orderBy('check.id','desc')
|
|
->paginate($request->input('limit', 20));
|
|
->paginate($request->input('limit', 20));
|
|
|
|
|
|
@@ -116,7 +115,7 @@ class WechatCheckController extends CatchController
|
|
* 微信提审
|
|
* 微信提审
|
|
* @param Request $request
|
|
* @param Request $request
|
|
*/
|
|
*/
|
|
- public function wechatCheck(Request $request) {
|
|
|
|
|
|
+ public function check(Request $request) {
|
|
$this->validate($request, [
|
|
$this->validate($request, [
|
|
'ids' => 'required|array'
|
|
'ids' => 'required|array'
|
|
]);
|
|
]);
|