|
|
@@ -2115,11 +2115,13 @@ class PublicRpcService implements PublicRpcServiceInterface
|
|
|
Db::beginTransaction();
|
|
|
try{
|
|
|
if (empty($website_template_info)) {
|
|
|
- $result['template_info'] = WebsiteTemplateInfo::create([
|
|
|
+ $result['template_info'] = WebsiteTemplateInfo::insertGetId([
|
|
|
'website_id' => $data['website_id'],
|
|
|
'page_type' => $page_type,
|
|
|
- 'user_id' => $data['user_id']
|
|
|
- ])->id;
|
|
|
+ 'user_id' => $data['user_id'],
|
|
|
+ 'status' => 0,
|
|
|
+ 'action_id' => 1,
|
|
|
+ ]);
|
|
|
} else {
|
|
|
if ($website_template_info['status'] == 2) {
|
|
|
Db::rollBack();
|