| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace app\modules\admin\controllers;
- use app\modules\admin\models\WechatThirdAuthForm;
- class WechatMiniAuthController extends BaseController
- {
- /**
- * @return \yii\web\Response
- * 获取认证信息
- */
- public function actionGetApplyData() {
- $form = new WechatThirdAuthForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- $form->mini_id = get_params('mini_id');
- return $this->asJson($form->getApplyData());
- }
- /**
- * @return \yii\web\Response
- * 申请小程序认证
- */
- public function actionApplyWxaauth() {
- $form = new WechatThirdAuthForm();
- $form->attributes = post_params();
- $form->store_id = get_store_id();
- $form->mini_id = input_params('mini_id');
- return $this->asJson($form->applyWxaauth());
- }
- }
|