CashController.php 852 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace app\modules\admin\controllers;
  3. use app\modules\admin\models\CashForm;
  4. //基础设置
  5. class CashController extends BaseController
  6. {
  7. public function actionGetCashSetting() {
  8. $form = new CashForm();
  9. $form->attributes = post_params();
  10. $form->store_id = get_store_id();
  11. return $this->asJson($form->getCashSetting());
  12. }
  13. public function actionEditCashSetting() {
  14. $form = new CashForm();
  15. $form->attributes = post_params();
  16. $form->store_id = get_store_id();
  17. return $this->asJson($form->editCashSetting());
  18. }
  19. public function actionCashList()
  20. {
  21. $form = new CashForm();
  22. $form->attributes = all_params();
  23. $form->store_id = get_store_id();
  24. return $this->asJson($form->getCashList());
  25. }
  26. }