|
@@ -7,6 +7,7 @@ use Catch\Base\CatchController;
|
|
use Illuminate\Foundation\Validation\ValidatesRequests;
|
|
use Illuminate\Foundation\Validation\ValidatesRequests;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
+use Modules\Manage\Services\WechatMiniprogramService;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 微信提审
|
|
* 微信提审
|
|
@@ -24,11 +25,14 @@ class WechatCheckController extends CatchController
|
|
'producer' => 'required|string|max:256',
|
|
'producer' => 'required|string|max:256',
|
|
'playwright' => 'required|string|max:256',
|
|
'playwright' => 'required|string|max:256',
|
|
'production_license_img' => 'required|url',
|
|
'production_license_img' => 'required|url',
|
|
- 'authorized_img' => 'required|url'
|
|
|
|
|
|
+ 'authorized_img' => 'required|url',
|
|
|
|
+ 'registration_number' => 'required'
|
|
]);
|
|
]);
|
|
|
|
|
|
$data = $request->all();
|
|
$data = $request->all();
|
|
|
|
+ $appid = WechatMiniprogramService::getDuanjuCheckAppid();
|
|
$data['created_at'] = $data['updated_at'] = date('Y-m-d H:i:s');
|
|
$data['created_at'] = $data['updated_at'] = date('Y-m-d H:i:s');
|
|
|
|
+ $data['appid'] = $appid;
|
|
DB::table('video_wechat_check')
|
|
DB::table('video_wechat_check')
|
|
->insert($data);
|
|
->insert($data);
|
|
|
|
|
|
@@ -82,7 +86,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.check_at', 'check.check_reason', 'check.registration_number')
|
|
->orderBy('check.id','desc')
|
|
->orderBy('check.id','desc')
|
|
->paginate($request->input('limit', 10));
|
|
->paginate($request->input('limit', 10));
|
|
|
|
|