查看内容

Magento2 Mirasvit家扩展开心方法

2019-5-22 09:57| 发布者: lutish| 查看: 288| 评论: 0

app/code/Mirasvit/Core/Model/License.php
文件下
    public function load($className = '')
    {
       
        return true;
    }
这行必须要为true;
    private function request()
    {
        $params        = [];
        $params['v']   = 3;
        $params['d']   = $this->getDomain();
        $params['ip']  = $this->getIP();
        $params['mv']  = $this->getVersion();
        $params['me']  = $this->getEdition();
        $params['l']   = $this->license;
        $params['k']   = $this->key;
        $params['uid'] = $this->getUID();

       // $result = $this->sendRequest('https://lc.mirasvit.com/lc/check/', $params);  //此行注释掉

        $result['time'] = time();
        $this->saveFlagData($this->license, $result);

        return $this;
    }
返回顶部