Blame view

app-wx/controllers/TestController.php 652 Bytes
753bd90e   曹明   1.APP-wx 代码初始化。
1
2
3
4
<?php

namespace app\wx\controllers;

753bd90e   曹明   1.APP-wx 代码初始化。
5
use Yii;
2f37a45c   曹明   防伪标签接口调用调整。
6
use domain\system\message\SmsMessage;
310f6425   曹明   1.完善短信提示“提取码”功能。
7

2f37a45c   曹明   防伪标签接口调用调整。
8
class TestController extends AppController
753bd90e   曹明   1.APP-wx 代码初始化。
9
{
2f37a45c   曹明   防伪标签接口调用调整。
10
    const __APP_ID__ = '15270368';
753bd90e   曹明   1.APP-wx 代码初始化。
11
    const __API_KEY__= 'U1s0TOBLP0WdtwWo7ufTONiX';
753bd90e   曹明   1.APP-wx 代码初始化。
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
    const __SECRET_KEY__= 'ZwMEk12GrBiD8md9GCEXWz3fw2VYB8Df';
    public $layout = 'test';

    public function actionIndex()
    {
        echo "index1";
    }

    public function actionLogout()
    {
        $appUser = Yii::$app->getUser();
        $appUser->logout();
        echo "logout";
    }
    public function actionTestMsg()
ad1d0f9b   曹明   1. 去除UUID中的@版本号,调...
27
28
    {
        $sms = new SmsMessage();
2f37a45c   曹明   防伪标签接口调用调整。
29
30
31
        $sms->sendGetCode("15999944931", "333333");
    }
}
753bd90e   曹明   1.APP-wx 代码初始化。