wang hou sheng 8 months ago
parent fb38c8aab5
commit 554eef0a66
  1. 6
      app/api/controller/Wxserver.php
  2. 2
      app/common/library/wxserver/Server.php

@ -12,10 +12,8 @@ class Wxserver extends BaseController
{
public function index()
{
$ext_json['extAppid'] = '123456';
$ext_json['ext']['attr']['store_id'] = 1001;
$ext_json['window'] = [];
$data['ext_json'] = $ext_json;
$obj = new \app\common\library\wxserver\Server();
$data = $obj->getAllCategory('wxe3ed157849bd07b5');
return $this->renderSuccess($data);
}

@ -533,7 +533,7 @@ class Server
return false;
}
private function getAllCategory($appid): array
public function getAllCategory($appid): array
{
$data = [];
$access_token = $this->authorizerAccessToken($appid);

Loading…
Cancel
Save