PayNotifyController.php 828 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace api\modules\v1\controllers\common;
  3. use Yii;
  4. use common\traits\PayNotify;
  5. use api\controllers\OnAuthController;
  6. /**
  7. * 支付回调
  8. *
  9. * Class PayNotifyController
  10. * @package frontend\controllers
  11. * @author jianyan74 <751393839@qq.com>
  12. */
  13. class PayNotifyController extends OnAuthController
  14. {
  15. use PayNotify;
  16. /**
  17. * @var string[]
  18. */
  19. public $authOptional = ['wechat', 'alipay', 'union', 'byte-dance', 'stripe'];
  20. /**
  21. * @param \yii\base\Action $action
  22. * @return bool
  23. * @throws \yii\base\InvalidConfigException
  24. * @throws \yii\web\BadRequestHttpException
  25. * @throws \yii\web\ForbiddenHttpException
  26. */
  27. public function beforeAction($action)
  28. {
  29. Yii::$app->params['triggerBeforeSend'] = false;
  30. return parent::beforeAction($action);
  31. }
  32. }
粤ICP备19079148号