| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\modules\client\controllers\v1\alipay;
- use app\modules\client\models\v1\alipay\AuthForm;
- use yii\base\BaseObject;
- class PassportController extends BaseController
- {
- public function actionAuth()
- {
- $from = new AuthForm();
- $from->attributes = all_params();
- $from->socialite = $this->socialite;
- $from->store_id = get_store_id();
- return $this->asJson($from->codeAnalysis());
- }
- public function actionPhone() {
- $from = new AuthForm();
- $from->mini_id = get_params('mini_id');
- $from->attributes = post_params();
- $from->socialite = $this->socialite;
- $from->store_id = get_store_id();
- return $this->asJson($from->analysisPhone());
- }
- public function actionLogin()
- {
- $from = new AuthForm();
- $from->mini_id = get_params('mini_id');
- $from->attributes = post_params();
- $from->socialite = $this->socialite;
- $from->store_id = get_store_id();
- return $this->asJson($from->login());
- }
- }
|