|
|
@@ -4573,7 +4573,7 @@ class PublicRpcService implements PublicRpcServiceInterface
|
|
|
*/
|
|
|
public function addTemplateCates(array $data): array
|
|
|
{
|
|
|
- $website_template = TemplateDraftbox::where('id',$data['template_id'])->first();
|
|
|
+ $website_template = TemplateDraftbox::where('session_id',$data['session_id'])->first();
|
|
|
if(empty($website_template)){
|
|
|
return Result::error('此网站模板不存在!');
|
|
|
}
|
|
|
@@ -4601,7 +4601,7 @@ class PublicRpcService implements PublicRpcServiceInterface
|
|
|
if(count($all_cate) == 0){
|
|
|
return Result::error('栏目不存在!');
|
|
|
}
|
|
|
- foreach ($all_cate as $key => $item) {
|
|
|
+ foreach ($template_index as $key => $item) {
|
|
|
|
|
|
}
|
|
|
return Result::success($all_cate);
|