当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
8 Star 23 Fork 5

云中有鹿来 / yiban_lovewall
关闭

 / 详情

demo 访问错误

待办的
创建于  
2019-02-27 20:39

[0] ThrowableError in Yiban.php line 13
致命错误: Using $this when not in object context

use think\Model;
use likecy\yiban\YBOpenApi;
class Yiban
{

public static function yibanLogin(){

    if(!isset($_GET['verify_request'])){
        $this->redirect(\config('yibanCallBackUrl'));
    }
    $yibanAPi= YBOpenApi::getInstance()->init(\config('yibanAppID'),\config('yibanAppSecret'),\config('yibanCallBackUrl'));
    $iapp = $yibanAPi->getIApp();
    try{
        $info = $iapp->perform();
    }catch (YBException $ex){
        echo $ex->getMessage();
    }
    $token = $info['visit_oauth']['access_token'];//轻应用获取的token

评论 (0)

wsqstar 创建了任务

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
1616510 wsqstar 1578956024
PHP
1
https://gitee.com/likecy/yiban_lovewall.git
git@gitee.com:likecy/yiban_lovewall.git
likecy
yiban_lovewall
yiban_lovewall

搜索帮助