作者 王晓刚
1 个管道 的构建 通过 耗费 0 秒

服务器配置

... ... @@ -36,6 +36,7 @@ class OpenServerController extends HomeBaseController
dump(cache('ccc'));
dump(cache('admin_id'));
dump(cache('user_data'));
dump(cache('user_id'));
exit();
dump(cache('result'));
dump(cache('result1'));
... ... @@ -75,6 +76,7 @@ class OpenServerController extends HomeBaseController
$url = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=$token&openid=$openid&lang=zh_CN";
$user_data = json_decode($this->http_get($url),true);
$user_id = $this->new_user($user_data,$openid,$options['app_id']);
cache('user_id',$user_id);
}
// cache('third_party_user',$third_party_user);
... ...