|
@@ -42,7 +42,7 @@ class WechatCheck implements ShouldQueue
|
|
$record = DB::table('video_wechat_check')
|
|
$record = DB::table('video_wechat_check')
|
|
->join('videos', 'videos.id', 'video_wechat_check.video_id')
|
|
->join('videos', 'videos.id', 'video_wechat_check.video_id')
|
|
->where(['video_wechat_check.id' => $id,
|
|
->where(['video_wechat_check.id' => $id,
|
|
- 'video_wechat_check.is_enabled' => 1, 'video_wechat_check.status' => 0])
|
|
|
|
|
|
+ 'video_wechat_check.is_enabled' => 1, 'video_wechat_check.status' => 5])
|
|
->select('video_wechat_check.*', 'videos.name as video_name', 'videos.cover_image as video_cover_image')
|
|
->select('video_wechat_check.*', 'videos.name as video_name', 'videos.cover_image as video_cover_image')
|
|
->first();
|
|
->first();
|
|
if(!$record) {
|
|
if(!$record) {
|
|
@@ -101,6 +101,12 @@ class WechatCheck implements ShouldQueue
|
|
]);
|
|
]);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 上传临时图片素材
|
|
|
|
+ * @param string $url 图片http地址
|
|
|
|
+ * @param string $accessToken
|
|
|
|
+ * @return string media_id
|
|
|
|
+ */
|
|
public function getMaterialId($url, $accessToken){
|
|
public function getMaterialId($url, $accessToken){
|
|
$result = HttpRequestService::post(WechatURL::media_upload. $accessToken, [
|
|
$result = HttpRequestService::post(WechatURL::media_upload. $accessToken, [
|
|
'multipart' => [
|
|
'multipart' => [
|