This commit is contained in:
toom1996
2025-07-02 16:44:04 +08:00
parent f060934b86
commit 716e20675e
4 changed files with 24 additions and 9 deletions

View File

@ -37,6 +37,11 @@ class WebsiteController extends AbstractController
$model->app_description = $this->request->post('app_description');
$model->app_name = $this->request->post('app_name');
$model->app_domain = $this->request->post('app_domain');
$model->app_filing = $this->request->post('app_filing');
$model->app_filing_url = $this->request->post('app_filing_url');
$model->app_logo = $this->request->post('app_logo');
$model->app_extra = $this->request->post('app_extra');
$model->app_template = $this->request->post('template');
$model->save();
return $this->response->json([]);
@ -77,7 +82,7 @@ class WebsiteController extends AbstractController
if (!$query) {
return $this->response->json(['code' => 400, 'msg' => 'id 有误']);
}
$query['template'] = $query['app_template'];
return $this->response->json(['code' => 0, 'msg' => 'ok', 'data' => $query]);
}
@ -100,6 +105,11 @@ class WebsiteController extends AbstractController
$query->app_name = $this->request->post('app_name');
$query->app_domain = $this->request->post('app_domain');
$query->app_keywords = $this->request->post('app_keywords');
$query->app_filing = $this->request->post('app_filing');
$query->app_filing_url = $this->request->post('app_filing_url');
$query->app_logo = $this->request->post('app_logo');
$query->app_extra = $this->request->post('app_extra');
$query->app_template = $this->request->post('template');
$query->save();