wang hou sheng 10 months ago
parent 0db1f48794
commit 0e239bcedc
  1. 2
      app/api/controller/Wxserver.php
  2. 2
      app/common/library/wxserver/Server.php

@ -17,7 +17,7 @@ class Wxserver extends BaseController
{ {
$obj = new \app\common\library\wxserver\Server(); $obj = new \app\common\library\wxserver\Server();
$domain = $this->request->domain(true); $domain = $this->request->domain(true);
$arr = $obj->setDomain($this->request->domain(true), 'wxe3ed157849bd07b5'); $arr = $obj->setDomain($domain, 'wxe3ed157849bd07b5');
return $this->renderSuccess(['domain' => $domain, 'arr' => $arr]); return $this->renderSuccess(['domain' => $domain, 'arr' => $arr]);
} }

@ -298,7 +298,7 @@ class Server
public function authorizerAccessToken($appid) public function authorizerAccessToken($appid)
{ {
if (Cache::has($appid . '_authorizer_access_token')) { if (Cache::has($appid . '_authorizer_access_token')) {
return Cache::get($appid . '_authorizer_access_token'); //return Cache::get($appid . '_authorizer_access_token');
} }
$refresh_token = $this->getRefreshToken($appid); $refresh_token = $this->getRefreshToken($appid);
if ($refresh_token) { if ($refresh_token) {

Loading…
Cancel
Save