IndexController.class.php 637 Bytes
<?php
/**
 * 积分开始接口
 */
namespace Frontend\Controller\Index;

class IndexController extends AbstractController
{

    /**
     * 不是必须登录
     * @var string $_require_login
     */
    protected $_require_login = false;

    public function Index()
    {
        $appDir = '';
        // 学分
        if (I('request.miType') == self::MI_TYPE_IS_CREDIT) {
            $url = '/app/page/my/my-credit';
            $appDir = 'My';
        // 积分
        } else {
            $url = '/app/page/integral/my-integral';
        }
        redirectFront($url, array('_identifier' => APP_IDENTIFIER), $appDir);
    }

}