<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/12/12/012
 * Time: 11:20
 */

namespace wechat\modules\cp\controllers;


class TestController extends BaseController
{
    /**
     * 测试方法
     */
    public function actionIndex()
    {
        $result = [
            'code' => 1,
            'data' => 'test',
            'message' => 'success',
        ];
        return $this->asJson($result);
    }
}