| 1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace app\modules\admin\controllers;
- use app\modules\admin\models\CashForm;
- //基础设置
- class CashController extends BaseController
- {
- public function actionGetCashSetting() {
- $form = new CashForm();
- $form->attributes = post_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->getCashSetting());
- }
- public function actionEditCashSetting() {
- $form = new CashForm();
- $form->attributes = post_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->editCashSetting());
- }
- public function actionCashList()
- {
- $form = new CashForm();
- $form->attributes = all_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->getCashList());
- }
- }
|