| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\modules\admin\controllers\quanzi;
- use app\modules\admin\models\quanzi\QuanziForm;
- class QuanziController extends BaseController {
- public function actionTest() {
- QuanziForm::conf();
- $id = '22528';
- }
- public function actionConf() {
- $conf = QuanziForm::conf(get_store_id());
- return $this->asJson([
- 'code' => 0,
- 'data' => $conf,
- 'url' => [
- 'url_doc_baidu_app' => 'https://console.bce.baidu.com/qianfan/ais/console/applicationConsole/application/v1', //创建应用:
- 'url_doc_baidu_api' => 'https://cloud.baidu.com/doc/WENXINWORKSHOP/s/jlil56u11', //接口调试
- ]
- ]);
- }
- public function actionConfSave() {
- QuanziForm::confSave(get_store_id(), input_params('conf'));
- return $this->asJson([
- 'code' => 0,
- 'msg' => 'ok',
- ]);
- }
- public function actionContentsList() {
- $form = new QuanziForm();
- $params = all_params();
- return $this->asJson($form->contentsList(array_merge($params, ['orderByAdmin' => 1])));
- }
- public function actionContentsAdd() {
- $form = new QuanziForm();
- return $this->asJson($form->contentsAdd(0, 0, all_params()));
- }
- public function actionContentsSaveKey() {
- $form = new QuanziForm();
- $id = input_params('id');
- $key = input_params('key');
- $val = input_params('val');
- return $this->asJson($form->contentsSaveKey($id, $key, $val));
- }
- public function actionCommentsList() {
- $form = new QuanziForm();
- $params = all_params();
- return $this->asJson($form->commentsList($params));
- }
- public function actionCatList() {
- $form = new QuanziForm();
- return $this->asJson($form->catList(all_params()));
- }
- public function actionCatSelectList() {
- $form = new QuanziForm();
- return $this->asJson($form->catSelectList(0));
- }
- public function actionCatSave() {
- $form = new QuanziForm();
- return $this->asJson($form->catSave(all_params()));
- }
- public function actionCatSaveKey() {
- $form = new QuanziForm();
- $id = input_params('id');
- $key = input_params('key');
- $val = input_params('val');
- return $this->asJson($form->catSaveKey($id, $key, $val));
- }
- public function actionLabelList() {
- $form = new QuanziForm();
- return $this->asJson($form->labelList(all_params()));
- }
- public function actionLabelSelectList() {
- $form = new QuanziForm();
- return $this->asJson($form->labelSelectList(0));
- }
- public function actionLabelSave() {
- $form = new QuanziForm();
- return $this->asJson($form->labelSave(all_params()));
- }
- public function actionLabelSaveKey() {
- $form = new QuanziForm();
- $id = input_params('id');
- $key = input_params('key');
- $val = input_params('val');
- return $this->asJson($form->labelSaveKey($id, $key, $val));
- }
- public function actionBgmList() {
- $form = new QuanziForm();
- return $this->asJson($form->bgmList(all_params()));
- }
- public function actionBgmSelectList() {
- $form = new QuanziForm();
- return $this->asJson($form->bgmSelectList(0));
- }
- public function actionBgmSave() {
- $form = new QuanziForm();
- return $this->asJson($form->bgmSave(all_params()));
- }
- public function actionBgmSaveKey() {
- $form = new QuanziForm();
- $id = input_params('id');
- $key = input_params('key');
- $val = input_params('val');
- return $this->asJson($form->bgmSaveKey($id, $key, $val));
- }
- public function actionRoomList() {
- $form = new QuanziForm();
- return $this->asJson($form->roomList(all_params()));
- }
- public function actionRoomSaveKey() {
- $form = new QuanziForm();
- $id = input_params('id');
- $key = input_params('key');
- $val = input_params('val');
- return $this->asJson($form->roomSaveKey($id, $key, $val));
- }
- public function actionGoodsExtList() {
- $form = new QuanziForm();
- return $this->asJson($form->goodsExtList(all_params()));
- }
- public function actionGoodsExtSave() {
- $form = new QuanziForm();
- return $this->asJson($form->goodsExtSave(all_params()));
- }
- public function actionGoodsExtSaveKey() {
- $form = new QuanziForm();
- $id = input_params('id');
- $key = input_params('key');
- $val = input_params('val');
- return $this->asJson($form->goodsExtSaveKey($id, $key, $val));
- }
- }
|