ApiController.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Author: 芸众商城 www.yunzshop.com
  5. * Date: 2017/3/28
  6. * Time: 上午10:49
  7. */
  8. namespace app\common\components;
  9. use app\common\exceptions\ShopException;
  10. use app\common\exceptions\UniAccountNotFoundException;
  11. use app\common\helpers\Client;
  12. use app\common\helpers\Url;
  13. use app\common\middleware\AuthenticateFrontend;
  14. use app\common\middleware\BasicInformation;
  15. use app\common\models\Member;
  16. use app\common\models\UniAccount;
  17. use app\common\modules\shop\models\Shop;
  18. use app\frontend\modules\member\services\factory\MemberFactory;
  19. class ApiController extends BaseController
  20. {
  21. protected $publicController = [];
  22. protected $publicAction = [];
  23. protected $ignoreAction = [];
  24. public function __construct()
  25. {
  26. parent::__construct();
  27. $this->middleware([AuthenticateFrontend::class]);
  28. }
  29. /**
  30. * @throws ShopException
  31. * @throws UniAccountNotFoundException
  32. */
  33. public function preAction()
  34. {
  35. parent::preAction();
  36. }
  37. public function getPublicController(): array
  38. {
  39. return $this->publicController;
  40. }
  41. public function getPublicAction(): array
  42. {
  43. return $this->publicAction;
  44. }
  45. public function getIgnoreAction(): array
  46. {
  47. return $this->ignoreAction;
  48. }
  49. }