diff --git a/Server/application/cunkebao/controller/plan/PostCreateAddFriendPlanV1Controller.php b/Server/application/cunkebao/controller/plan/PostCreateAddFriendPlanV1Controller.php index a2f9d3db..21befd30 100644 --- a/Server/application/cunkebao/controller/plan/PostCreateAddFriendPlanV1Controller.php +++ b/Server/application/cunkebao/controller/plan/PostCreateAddFriendPlanV1Controller.php @@ -62,7 +62,7 @@ class PostCreateAddFriendPlanV1Controller extends Controller return ResponseHelper::error('计划名称不能为空', 400); } - if (empty($params['scenario'])) { + if (empty($params['sceneId'])) { return ResponseHelper::error('场景ID不能为空', 400); } @@ -126,7 +126,9 @@ class PostCreateAddFriendPlanV1Controller extends Controller 'updateTime'=> time(), ]; - + + print_r($data); + exit; try { diff --git a/Server/application/cunkebao/controller/plan/PosterWeChatMiniProgram.php b/Server/application/cunkebao/controller/plan/PosterWeChatMiniProgram.php index da954377..13fe3e74 100644 --- a/Server/application/cunkebao/controller/plan/PosterWeChatMiniProgram.php +++ b/Server/application/cunkebao/controller/plan/PosterWeChatMiniProgram.php @@ -146,8 +146,8 @@ class PosterWeChatMiniProgram extends Controller $sceneConf = json_decode($task['sceneConf'], true); - if(isset($sceneConf['posters'][0]['preview'])) { - $posterUrl = $sceneConf['posters'][0]['preview']; + if(isset($sceneConf['posters'][0]['url'])) { + $posterUrl = $sceneConf['posters'][0]['url']; } else { $posterUrl = ''; }