LeagueController.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace app\modules\admin\controllers;
  3. use app\models\SaaSLeaguePriceLog;
  4. use app\models\SaasUser;
  5. use app\models\Store;
  6. use app\modules\admin\models\LeagueForm;
  7. class LeagueController extends BaseController
  8. {
  9. //获取用户联盟券
  10. public function actionUserLeague()
  11. {
  12. $form = new LeagueForm();
  13. $form->attributes = get_params();
  14. return $this->asJson($form->userLeague());
  15. }
  16. //获取用户联盟券
  17. public function actionUserLeagueInfo()
  18. {
  19. $form = new LeagueForm();
  20. $form->attributes = get_params();
  21. return $this->asJson($form->userLeagueInfo());
  22. }
  23. //获取商家联盟券
  24. public function actionStoreLeague() {
  25. $form = new LeagueForm();
  26. $form->attributes = get_params();
  27. return $this->asJson($form->storeLeague());
  28. }
  29. //获取商家联盟券记录
  30. public function actionStoreLeagueLog() {
  31. $form = new LeagueForm();
  32. $form->attributes = get_params();
  33. return $this->asJson($form->storeLeagueLog());
  34. }
  35. //商家联盟券信息
  36. public function actionStoreLeagueInfo()
  37. {
  38. $form = new LeagueForm();
  39. $form->attributes = get_params();
  40. return $this->asJson($form->storeLeagueInfo());
  41. }
  42. //
  43. }