Blame view

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

namespace app\wx\controllers;

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

2f37a45c   曹明   防伪标签接口调用调整。
10
class TestController extends Controller
753bd90e   曹明   1.APP-wx 代码初始化。
11
{
753bd90e   曹明   1.APP-wx 代码初始化。
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
    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();
        $sms->sendGetCode("15999944931", "333333");
2f37a45c   曹明   防伪标签接口调用调整。
29
30
31
        $fileName = "IMG_iGavHy6K1TIqPba6888879_1577200522.jpg";
        $fileFullName = "https://smart-anti-fake.oss-cn-hongkong.aliyuncs.com/check/20191224/8/IMG_iGavHy6K1TIqPba6888879_1577200522.jpg";
        var_dump(CheckActiveHelper::checkAppQrv($fileFullName, $fileName, ""));
753bd90e   曹明   1.APP-wx 代码初始化。
32
33
    }
}