PassportController.php 870 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\modules\alliance\controllers\alipay;
  8. use app\modules\alliance\models\alipay\AuthForm;
  9. use yii\base\BaseObject;
  10. class PassportController extends BaseController
  11. {
  12. public function actionAuth()
  13. {
  14. $from = new AuthForm();
  15. $from->attributes = post_params();
  16. $from->socialite = $this->socialite;
  17. $from->store_id = get_store_id();
  18. return $this->asJson($from->codeAnalysis());
  19. }
  20. public function actionPhone() {
  21. $from = new AuthForm();
  22. $from->attributes = post_params();
  23. $from->socialite = $this->socialite;
  24. $from->store_id = get_store_id();
  25. return $this->asJson($from->analysisPhone());
  26. }
  27. }