update
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user