diff --git a/Server/application/cunkebao/controller/plan/PosterWeChatMiniProgram.php b/Server/application/cunkebao/controller/plan/PosterWeChatMiniProgram.php index 7539e66ec..85bd2e064 100644 --- a/Server/application/cunkebao/controller/plan/PosterWeChatMiniProgram.php +++ b/Server/application/cunkebao/controller/plan/PosterWeChatMiniProgram.php @@ -150,8 +150,8 @@ class PosterWeChatMiniProgram extends Controller $sceneConf = json_decode($task['sceneConf'], true); - if(isset($sceneConf['posters'][0]['url'])) { - $posterUrl = $sceneConf['posters'][0]['url']; + if(isset($sceneConf['posters'][0]['url']) || isset($sceneConf['posters'][0]['preview'])) { + $posterUrl = !empty($sceneConf['posters'][0]['url']) ? $sceneConf['posters'][0]['url'] : $sceneConf['posters'][0]['preview']; } else { $posterUrl = ''; }