MaiyatianController.php 875 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\modules\common\controllers;
  8. use app\models\Option;
  9. use app\models\Store;
  10. use yii\web\Controller;
  11. use app\modules\admin\models\maiyatian\MaiyatianForm;
  12. class MaiyatianController extends Controller
  13. {
  14. public function actionIndex()
  15. {
  16. $command = get_params('command');
  17. if($command){
  18. $data = all_params();
  19. return $this->asJson(MaiyatianForm::callbackCommand($command, $data));
  20. }
  21. }
  22. public function actionTest()
  23. {
  24. $command = get_params('command');
  25. if($command){
  26. $data = all_params();
  27. return $this->asJson(MaiyatianForm::callbackCommandTest($command, $data));
  28. }
  29. }
  30. }