UserCenterController.php 724 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\modules\admin\controllers;
  8. use app\modules\admin\models\UserCenterForm;
  9. class UserCenterController extends BaseController
  10. {
  11. public function actionList ()
  12. {
  13. $form = new UserCenterForm();
  14. $form->store_id = get_store_id();
  15. return $this->asJson($form->getData());
  16. }
  17. public function actionEdit ()
  18. {
  19. $form = new UserCenterForm();
  20. $form->store_id = get_store_id();
  21. $form->data = post_params('data') ?: get_params('data');
  22. return $this->asJson($form->saveData());
  23. }
  24. }